Commit Graph

3624 Commits

Author SHA1 Message Date
Jon
ade35d0e2d test(core): Unit Test Centurion Model method get_url_kwargs
ref: #775 #759 #767
2025-07-04 08:40:25 +09:30
Jon
212af84d28 test(core): Unite Tesxt Centurion Model method get_url attr _is_submodel set
ref: #775 #759 #767
2025-07-04 08:40:25 +09:30
Jon
7ed75fc3e9 test(core): Unite Tesxt Centurion Model method get_url attr model_name set
ref: #775 #767
2025-07-04 08:40:25 +09:30
Jon
e554923c0b feat(devops): Add model tag attribute to model
ref: #773 #515 #576
2025-07-04 08:40:25 +09:30
Jon
17f4295763 feat(core): Add to Centurion Model an attribute to set the models tag
ref: #773 #767 #576
2025-07-04 08:40:25 +09:30
Jon
8e81bc06db docs(user): Add AuditHsitory Docs
ref: #773 #759
2025-07-04 08:40:25 +09:30
Jon
0b30f3b70f feat(core): Add Context to model when ViewSet loads
ref: #773 #767
2025-07-04 08:40:25 +09:30
Jon
827894ef23 feat(devops): Add AuditHistory Serializer for GitGroup
ref: #773 #759
2025-07-04 08:40:25 +09:30
Jon
7a2e77cba6 feat(core): Add AuditHistory Serializer
ref: #773 #759
2025-07-04 08:40:25 +09:30
Jon
187ad724a2 feat(core): Add AuditHistory ViewSet
ref: #773 #759
2025-07-04 08:40:25 +09:30
Jon
9e2587d6c3 feat(core): Add URL route for AuditHistory
ref: #773 #759
2025-07-04 08:40:25 +09:30
Jon
21e7d7b444 feat(core): Add audithistory URL to serializer for models with _audit_enabled=True
ref: #773 #767 #759
2025-07-04 08:40:25 +09:30
Jon
26b5aa7f45 docs(development): Initial Serializer docs
ref: #773 #767
2025-07-04 08:40:25 +09:30
Jon
37ff9d38cb fix(core): Conduct kwargs check fr ticket comment serializer during init
ref: #773
2025-07-04 08:40:25 +09:30
Jon
f440788dae refactor(api): Update Common ViewSet methds for re-write
ref: #773 #767
2025-07-04 08:40:25 +09:30
Jon
279ea1991d feat(core): Models url kwarg helper
ref: #773 #767
2025-07-04 08:40:25 +09:30
Jon
6b899e477d feat(core): Support setting custom model name for url basename
ref: #773 #767
2025-07-04 08:40:25 +09:30
Jon
9a3e17a6d3 feat(api): Add sub-model filter to get_queryset method
ref: #773 #767
2025-07-04 08:40:25 +09:30
Jon
851d6e8b2f chore: correct test so it works
ref: #773 #759
2025-07-04 08:40:25 +09:30
Jon
114b2e1ae3 test(core): Ensure model that has audit enableed has audit model
ref: #773 #515
2025-07-04 08:40:25 +09:30
Jon
2b6a15cf8f test(core): Add Functional model Test Suite for CenturionAuditModel
ref: #773 #515
2025-07-04 08:40:25 +09:30
Jon
a46187f36e test(devops): Ensure that a Github group cant have a parent/"be nested"
ref: #773 #515 #249
2025-07-04 08:40:25 +09:30
Jon
fc256445db test(devops): Ensure that when create a child git group that the tenancy matches the parent git group
ref: #773 #515
2025-07-04 08:40:25 +09:30
Jon
60f6269a71 test(devops): Add Functional model Test Suite
ref: #773 #515
2025-07-04 08:40:25 +09:30
Jon
660da485cd test(core): Add Base Centurion model Functional Test Suite
ref: #773 #767
2025-07-04 08:40:25 +09:30
Jon
d86b07b4fa test(access): Add Base Tenancy model Functional Test Suite
ref: #773 #767
2025-07-04 08:40:25 +09:30
Jon
ea7cea2aa9 test(base): Add Base model Functional Test Suite
ref: #773 #767
2025-07-04 08:40:25 +09:30
Jon
06e8e277c1 feat(core): Disable models audit history on model delete
can't create an audit entry without a model, why? it was deleted

ref: #773 #759
2025-07-04 08:40:25 +09:30
Jon
df4ffa5e93 fix(core): Enable CenturionAudit model to get model history for item being deleted
ref: #773 #759
2025-07-04 08:40:24 +09:30
Jon
15ab6a7f70 chore: update test fixtures
ref: #773
2025-07-04 08:40:24 +09:30
Jon
8e0906eb73 test(core): Model Unit Tests for AuditHistory get_model_history method
ref: #773 #759
2025-07-04 08:40:24 +09:30
Jon
685de22ad2 chore: add pytest marks to tests
ref: #772
2025-07-04 08:40:24 +09:30
Jon
62ec58d9d8 test(core): reset vals so as not to fuck other tests over
ref: #772 #759
2025-07-04 08:40:24 +09:30
Jon
ee79dafd6b test(core): Correct test for method get_audit_values for CenturionAbstractModel
ref: #772 #759
2025-07-04 08:40:24 +09:30
Jon
d31b70a2a0 chore(core): update Current ModelHistory query to exclude new AuditHistory model
ref: #772 #759
2025-07-04 08:40:24 +09:30
Jon
766b4272be chore(devops): remove tests that were left there when file was copied from another test suite
ref: #772 #515
2025-07-04 08:40:24 +09:30
Jon
76daab8e1f chore: adjust test so params are under a property
ref: #772
2025-07-04 08:40:24 +09:30
Jon
82e617afbe fix(core): When creating the AuditHistory entry for a model, use the user from context
ref: #772 #759
2025-07-04 08:40:24 +09:30
Jon
197cf4eb73 fix(core): When collecting AuditHistory cater for models being created
ref: #772 #767
2025-07-04 08:40:24 +09:30
Jon
5a80e48b21 feat(core): Use Previous TenancyManager until UserModel rewrite done
ref: #772 #766 #767
2025-07-04 08:40:24 +09:30
Jon
bd66b8ec94 chore: remove Adding of history tasks from issue_template for new models
ref: #772
2025-07-04 08:40:24 +09:30
Jon
d8b69e3ff2 fix(api): remove surerflous feature for fetching app_namespace for models metadata
if the model required the parent models `app_namespace` it already exists when the class is inerited,

ref: #772
2025-07-04 08:40:24 +09:30
Jon
cff519d199 test(devops): Initial Model Unit tests for GitGroup
ref: #772 #515
2025-07-04 08:40:24 +09:30
Jon
2e88dfc5c1 refactor(devops): Switch GitGroup Model to CenturionModel
ref: #772 #515 #759 #767
2025-07-04 08:40:24 +09:30
Jon
f5a2168958 feat(core): Process a models history within AuditHistory
ref: #772 #759
2025-07-04 08:40:24 +09:30
Jon
35a46c90d3 feat(core): Enable AuditHistory signal to start when apps are ready
ref: #772 #759
2025-07-04 08:40:24 +09:30
Jon
bc1f12c47f feat(core): Add model instance to history object during history creation
ref: #772 #759
2025-07-04 08:40:24 +09:30
Jon
7a1e9e10a3 feat(core): Update Meta AuditModel db_name to be suffixed _audithistory
ref: #772 #759
2025-07-04 08:40:24 +09:30
Jon
9425793190 fix(core): Correct attribute names for referencing a Centurion Model from an AuditModel
ref: #772 #759
2025-07-04 08:40:24 +09:30
Jon
d3347082d1 test(core): Add field model_notes as an excluded field for AuditModels
ref: #772 #759
2025-07-04 08:40:24 +09:30