Commit Graph

3549 Commits

Author SHA1 Message Date
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
Jon
12ec0f34f9 feat(core): remove unnessecary method clean_fields from audit model
ref: #772 #759
2025-07-04 08:40:24 +09:30
Jon
5e169eb7f8 chore(core): Add temp objects to CenturionAbstractModel to support depreciated features
these will be removed when #767 is complete

ref: #772 #767
2025-07-04 08:40:24 +09:30
Jon
105d89ee61 fix(core): Correct before lookup for current models audit history
ref: #772 #759 #767
2025-07-04 08:40:24 +09:30
Jon
64e53f6980 feat(core): remove un-needed field model_notes from audit models
ref: #772 #759
2025-07-04 08:40:24 +09:30
Jon
0c6a15d22d docs(development): Add new abstract models to API docs
ref: #772
2025-07-04 08:40:24 +09:30
Jon
db41c73300 test(core): Remaining Unit Model Test Cases for CenturionAuditMeta Model
ref: #772 #759
2025-07-04 08:40:24 +09:30
Jon
da3a471d04 docs(development): Partial update to models
ref: #772 #767
2025-07-04 08:40:24 +09:30
Jon
b5147e2448 refactor(core): Loading of meta models should not be hidden behind program start ags
Meta Models must always exist

ref: #772 #759
2025-07-04 08:40:24 +09:30
Jon
0a35a32136 test(core): Initial Unit Model Test Cases for CenturionAuditMeta Model
ref: #772 #759
2025-07-04 08:40:24 +09:30
Jon
8b62014d88 test(core): Unit Model Test Cases for CenturionSubAbstract model
ref: #772 #767
2025-07-04 08:40:24 +09:30
Jon
16bbb3328b test(core): Initial Unit Model Test Cases for CenturionAudit Model
ref: #772 #759
2025-07-04 08:40:24 +09:30
Jon
d0ce759635 test(core): Unit test cases for Centurion get_url relative + non-relative
ref: #772 #767
2025-07-04 08:40:24 +09:30
Jon
6f0ef8ab31 test(access): Unit Model Tests for TenancyAbstractModel
ref: #770 #767 #445
2025-07-04 08:40:24 +09:30
Jon
28117bb2bb chore(core): remove methods not required
ref: #770 #767
2025-07-04 08:40:24 +09:30
Jon
4d93ba7339 refactor(core): To obtain audit_values loop through model fields
ref: #770 #767
2025-07-04 08:40:24 +09:30
Jon
d098a09e83 fix(core): When deleting a model check if sub-model within delete method
ref: #770 #767
2025-07-04 08:40:24 +09:30
Jon
678bc18cb6 test(base): Unit Common Model test cases suite
ref: #770 #758 #767
2025-07-04 08:40:24 +09:30
Jon
8fd418787e test(base): Unit Common Class test cases suite
ref: #770 #758 #767
2025-07-04 08:40:24 +09:30
Jon
85d8d74cbf test(access): Unit Model Tests for TenancyAbstractModel
ref: #770 #758 #767
2025-07-04 08:40:24 +09:30
Jon
3e6d9233ca chore(pytest): rename pytest_configure -> pytest_report_header
ref: #770
2025-07-04 08:40:24 +09:30
Jon
06ad1fec5e chore(pytest): Create and use fixture of Fresh DB instead of migrations for testing
ref: #770
2025-07-04 08:40:24 +09:30
Jon
95281d35eb chore(pytest): give parameterized tests the option to use functions as a value
ref: #770
2025-07-04 08:40:24 +09:30
Jon
5aae562caf feat(core): Run meta models create on Core module ready
ref: #770 #759
2025-07-04 08:40:24 +09:30
Jon
49e66df006 feat(core): New model core.CenturionAudit
ref: #770 #759
2025-07-04 08:40:24 +09:30
Jon
504ded9047 feat(core): cause sub-audit models to chuck a wobbler if clean_fields not re-implementated
ref: #770 #759
2025-07-04 08:40:24 +09:30