Commit Graph

4235 Commits

Author SHA1 Message Date
Jon
9ebf9bf3de refactor(api): dont query db for instance, use existing from response
ref: #849
2025-07-04 18:42:51 +09:30
Jon
57936073db feat(api): map notfound and perm denied django -> drf exceptions
ref: #849
2025-07-04 17:57:08 +09:30
Jon
638e2ba986 chore: add notation to capture unknwon exception for capture
ref: #849
2025-07-04 13:28:55 +09:30
Jon
6af615f918 test(devops): SoftwareEnableFeatureFlagging model does not use global org, so dont test global org return
ref: #849
2025-07-04 13:26:13 +09:30
Jon
37a69888b6 test(api): when testing create object, remove the actual created object prior to testing the add
ref: #849
2025-07-04 13:26:07 +09:30
Jon
c2255a5834 test(fixture): when creating object and it exists, rtn that object
ref: #849
2025-07-04 13:25:35 +09:30
Jon
77cf598e4d fix(api): Convert Django Exceptions to DRF API Exception equivilent
ref: #849 #854
2025-07-04 13:23:31 +09:30
Jon
1f4ce92623 test(devops): If test publically accessable, dont test by user org only as test is NA
ref: #849 #782
2025-07-04 10:10:15 +09:30
Jon
882ae90d83 fix(api): Ensure if exception DRF, message returned is from that exception
ref: #849
2025-07-04 10:03:48 +09:30
Jon
ea88076d7f test(settings): UserSettings perms tests are for the user that is accessing them
ref: #849 #836
2025-07-04 09:45:50 +09:30
Jon
6e925e8456 test(settings): UserSettings perms tests are not org based, skip those tests
ref: #849 #836
2025-07-04 09:38:34 +09:30
Jon
ffaac107f4 refactor(api): additional perms tests if they exist must be inc first
ref: #849
2025-07-04 09:38:26 +09:30
Jon
b282162a86 test(settings): AppSettings perms tests are not org based, skip those tests
ref: #849 #834
2025-07-04 09:38:07 +09:30
Jon
05fd82459a chore: Add makemigrations debug launch to vscode
ref: #849
2025-07-04 08:41:40 +09:30
Jon
b2383a2236 refactor(devops): remove ViewSet get_queryset function
not required as the model is set to the actual model

ref: #849 #809
2025-07-04 08:41:40 +09:30
Jon
bf1bb23dd5 chore(test): Add required fields to service fixture
ref: #849 #828
2025-07-04 08:41:40 +09:30
Jon
73a704d5e3 fix(devops): git repository is sub-model ViewSet must inherit from SubModel
ref: #848 #809 #810 #811
2025-07-04 08:40:36 +09:30
Jon
7b22541002 chore(access): Update common viewset test suite mock request
ref: #847 #840 #841 #842 #843 #845
2025-07-04 08:40:36 +09:30
Jon
1ba7661f07 refactor(access): Update Entity model ViewSet attribute model_kwarg to model_name
ref: #847 #840 #841 #842 #843 #845
2025-07-04 08:40:36 +09:30
Jon
2eb0ba674e refactor(access): Update Entity model ViewSet to inherit from submodel-rewrite
ref: #847 #840 #841 #842 #843 #845
2025-07-04 08:40:36 +09:30
Jon
6ae3b193fa chore(access): remove get_url_kwargs function as it's not required
ref: #847 #840 #841 #842 #843 #845
2025-07-04 08:40:36 +09:30
Jon
2b7eaace4d fix(access): entity field entity_type is an auto field
ref: #847
2025-07-04 08:40:36 +09:30
Jon
4f8fca9aff chore: Ensure employee fixture creates integer within max of field
ref: #847
2025-07-04 08:40:36 +09:30
Jon
53a474fa2a chore: update apifield test suit to set model class var and for the removal of fields property from models
ref: #847
2025-07-04 08:40:36 +09:30
Jon
b549059d15 chore(test): update db fixture
ref: #839
2025-07-04 08:40:36 +09:30
Jon
e7eb1442b7 docs(issue_template): remove notes and history requirements from new model issue template
ref: #839
2025-07-04 08:40:36 +09:30
Jon
6d2406ae1c chore(access): Add pytest mark for Model Entity Tests
ref: #839 closes #840
2025-07-04 08:40:36 +09:30
Jon
aa86f04aa2 chore(access): Add pytest mark for Model Company Tests
ref: #839 closes #845
2025-07-04 08:40:36 +09:30
Jon
6d33653db0 feat(human_resources): Add model tag for Employee model
ref: #839 closes #843
2025-07-04 08:40:36 +09:30
Jon
bc3545d53e refactor(access): Update Test Suite for Employee model
ref: #839 #843
2025-07-04 08:40:36 +09:30
Jon
3ea44aaabe feat(human_resources): Add AuditHistory Serializer for Employee model
ref: #839 #843
2025-07-04 08:40:36 +09:30
Jon
d7442cfff4 feat(human_resources): Add Notes Serializer for Employee model
ref: #839 #843
2025-07-04 08:40:36 +09:30
Jon
23832fff6a feat(human_resources): Change model to inherit from CenturionModel for Employee model
ref: #839 #843
2025-07-04 08:40:36 +09:30
Jon
c5f8412d46 feat(access): Add model tag for Person model
ref: #839 closes #841
2025-07-04 08:40:36 +09:30
Jon
a582cbbe59 refactor(access): Update Test Suite for Person model
ref: #839 #841
2025-07-04 08:40:36 +09:30
Jon
8c48fb6c37 feat(access): Add AuditHistory Serializer for Person model
ref: #839 #841
2025-07-04 08:40:36 +09:30
Jon
3c6589f07c feat(access): Add Notes Serializer for Person model
ref: #839 #841
2025-07-04 08:40:36 +09:30
Jon
d1fbead077 feat(access): Change model to inherit from CenturionModel for Person model
ref: #839 #841
2025-07-04 08:40:36 +09:30
Jon
3025c397b5 feat(access): Add model tag for Contact model
ref: #839 closes #842
2025-07-04 08:40:36 +09:30
Jon
43490b7407 refactor(access): Update Test Suite for Contact model
ref: #839 #842
2025-07-04 08:40:36 +09:30
Jon
e15bb11a76 feat(access): Add AuditHistory Serializer for Contact model
ref: #839 #842
2025-07-04 08:40:36 +09:30
Jon
1823cb4ec1 feat(access): Add Notes Serializer for Contact model
ref: #839 #842
2025-07-04 08:40:36 +09:30
Jon
9de99e07f7 feat(access): Change model to inherit from CenturionModel for Contact model
ref: #839 #842
2025-07-04 08:40:36 +09:30
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