Commit Graph

3565 Commits

Author SHA1 Message Date
Jon
c9c8cf6700 refactor(access): Update Test Suite for Company model
ref: #839 #845 #760
2025-07-04 08:40:36 +09:30
Jon
af868fcf4f feat(access): Add AuditHistory Serializer for Company model
ref: #839 #845 #760
2025-07-04 08:40:36 +09:30
Jon
e9fe6a2bdc feat(access): Add Notes Serializer for Entity model
ref: #839 #845 #760
2025-07-04 08:40:36 +09:30
Jon
595b232db9 feat(access): Change model to inherit from CenturionModel for Company model
ref: #839 #845 #760
2025-07-04 08:40:36 +09:30
Jon
87d0a5174f feat(access): Change model to inherit from CenturionModel for Entity model
ref: #839 closes #840
2025-07-04 08:40:36 +09:30
Jon
f074abefa7 refactor(access): Update URL route name for Entity model
ref: #839 #840 #841 #842 #843 #844 #845
2025-07-04 08:40:36 +09:30
Jon
b6dae72a07 refactor(access): Update Test Suite for Entity model
ref: #839 #840
2025-07-04 08:40:36 +09:30
Jon
847e4f93ea feat(access): Add AuditHistory Serializer for Entity model
ref: #839 #840
2025-07-04 08:40:36 +09:30
Jon
3943171534 feat(access): Add Notes Serializer for Entity model
ref: #839 #840
2025-07-04 08:40:36 +09:30
Jon
ef5d132ab3 feat(access): Change model to inherit from CenturionModel for Entity model
ref: #839 #840
2025-07-04 08:40:36 +09:30
Jon
874ce0c4f4 chore: enable creating reandom email field in model_kwarg_data fixture
ref: #839
2025-07-04 08:40:36 +09:30
Jon
ae20451033 chore: make model_instance a function fixture
ref: #839
2025-07-04 08:40:36 +09:30
Jon
fefb7e67a0 test(settings): for api checks for model AppSettings, make user super_user
required so that tests can run

ref: #839
2025-07-04 08:40:36 +09:30
Jon
41da9fb6a0 test(settings): Exclude inter-org tests for model AppSettings
perms for appsettings are global

ref: #839 #834
2025-07-04 08:40:36 +09:30
Jon
5234051538 refactor(access): Update is_tenancy_object to check for CenturionModel
ref: #839 #767
2025-07-04 08:40:36 +09:30
Jon
ebea2da906 test(settings): Remove old API Permission tests no longer required
ref: #833 #836
2025-07-04 08:40:36 +09:30
Jon
e233bf4487 test(settings): Ensure ExternalLink model hasrequired field template added
ref: #833 #835
2025-07-04 08:40:36 +09:30
Jon
ea1d6f4a20 chore(api): Add support to API Permission to include additional tests
ref: #833
2025-07-04 08:40:36 +09:30
Jon
0a9a26a43b refactor(access): For request middleware, use filter and first object so that testing can occur when mre than one exists
ref: #833
2025-07-04 08:40:36 +09:30
Jon
8f984e6c21 test(api): if model lacks list endpoint, check if method alllowed for test cases for Functional API perms test suite
ref: #833
2025-07-04 08:40:36 +09:30
Jon
7e3ae4c0bc test(api): if model lacks organization field, xfail returned orgs test cases for Functional API perms test suite
ref: #833
2025-07-04 08:40:36 +09:30
Jon
ef6ebcdcf4 fix(access): Ensure that if method not allowed, exception is thrown first before perms check
ref: #833
2025-07-04 08:40:36 +09:30
Jon
0b8b0bc850 test: Ensure service fixture assosiates with device
ref: #833 #828
2025-07-04 08:40:35 +09:30
Jon
e3804b4f9b test(api): if model lacks organization field, xfail returned orgs test cases for Functional API perms test suite
ref: #833 #820
2025-07-04 08:40:35 +09:30
Jon
ded80d4a8c fix(itam): Model software must be related linked to organization model
ref: #833 #820
2025-07-04 08:40:35 +09:30
Jon
2027f3fe97 test: Add depreciated models to be excluded from coverage
ref: #833
2025-07-04 08:40:35 +09:30
Jon
164aa21fad feat(settings): Add model tag for ExtrnalLink model
ref: #833 #835 closes #584
2025-07-04 08:40:35 +09:30
Jon
78539f2551 refactor(settings): Update URL route name for UserSettings model
ref: #833 closes #836
2025-07-04 08:40:35 +09:30
Jon
095239f199 refactor(settings): Update Test Suite for ExternalLink model
ref: #833 #836
2025-07-04 08:40:35 +09:30
Jon
ea8c81c64d feat(settings): Add AuditHistory Serializer for UserSettings model
ref: #833 #836
2025-07-04 08:40:35 +09:30
Jon
80770deafd feat(settings): Add Notes Serializer for UserSettings model
ref: #833 #836
2025-07-04 08:40:35 +09:30
Jon
05a32711b5 feat(settings): Change model to inherit from CenturionModel for UserSettings model
ref: #833 #836
2025-07-04 08:40:35 +09:30
Jon
1fe669e932 feat(settings): Add model ExternalLink to migrate for history and notes
ref: #833 closes #835
2025-07-04 08:40:35 +09:30
Jon
801bac9e6d refactor(settings): Update URL route name for ExternalLink model
ref: #833 #835
2025-07-04 08:40:35 +09:30
Jon
4a3f2ae6db refactor(settings): Update Test Suite for ExternalLink model
ref: #833 #835
2025-07-04 08:40:35 +09:30
Jon
fdbf9f81db feat(settings): Add AuditHistory Serializer for ExternalLink model
ref: #833 #835
2025-07-04 08:40:35 +09:30
Jon
b1fcc58741 feat(settings): Add Notes Serializer for ExternalLink model
ref: #833 #835
2025-07-04 08:40:35 +09:30
Jon
278b9e5c08 feat(settings): Change model to inherit from CenturionModel for ExternalSettings model
ref: #833 #835
2025-07-04 08:40:35 +09:30
Jon
cec4b39f5a feat(settings): Add model AppSettings to migrate for history and notes
ref: #833 closes #834
2025-07-04 08:40:35 +09:30
Jon
c264ab2cd4 refactor(settings): Update URL route name for AppSettings model
ref: #833 #834
2025-07-04 08:40:35 +09:30
Jon
44688c35df fix(access): if user has no orgs, dont filter by for query
ref: #833
2025-07-04 08:40:35 +09:30
Jon
f023901dc4 refactor(settings): Update Test Suite for AppSettings model
ref: #833 #834
2025-07-04 08:40:35 +09:30
Jon
c53a488a27 feat(settings): Add AuditHistory Serializer for AppSettings model
ref: #833 #834
2025-07-04 08:40:35 +09:30
Jon
51f7b94360 feat(settings): Add Notes Serializer for AppSettings model
ref: #833 #834
2025-07-04 08:40:35 +09:30
Jon
f7e71be426 feat(settings): Change model to inherit from CenturionModel for AppSettings model
ref: #833 #834
2025-07-04 08:40:35 +09:30
Jon
39bcd74c56 chore: Add support for testing tenant model to fixture model_instance
ref: #833
2025-07-04 08:40:35 +09:30
Jon
763836dd79 chore: skip depreciated linked ticket tests
ref: #833
2025-07-04 08:40:35 +09:30
Jon
3667ed76d3 feat(project_management): Add model ProjectType to migrate for history and notes
ref: #833 closes #832
2025-07-04 08:40:35 +09:30
Jon
f62fa6d166 refactor(project_management): Update URL route name for ProjectType model
ref: #833 #832
2025-07-04 08:40:35 +09:30
Jon
caf2fd0ad3 refactor(project_management): Update Test Suite for ProjectType model
ref: #833 #832
2025-07-04 08:40:35 +09:30