Commit Graph

596 Commits

Author SHA1 Message Date
Jon
7ad1851cc0 refactor(core): rename mixin -> mixins
ref: #805 #767
2025-07-04 08:40:31 +09:30
Jon
40a70020a5 revert(access): revert model inheriteance work (db)
ref: #804 #791 #792
2025-07-04 08:40:30 +09:30
Jon
d129256c4e revert(access): revert model inheriteance work
ref: #804 #791
2025-07-04 08:40:30 +09:30
Jon
7753c98f43 revert(access): revert model inheriteance work
ref: #804 #792
2025-07-04 08:40:30 +09:30
Jon
725782af6e feat(access): TeamUsers do not require notes
ref: #804 #792
2025-07-04 08:40:30 +09:30
Jon
d714476c97 chore(access): remove tests for models that will be depreciated
ref: #804 #791 #792
2025-07-04 08:40:29 +09:30
Jon
276e322eef chore(access): TeamUser model does not require audithistory
model will be depreciated soon

ref: #789 #792
2025-07-04 08:40:29 +09:30
Jon
ad1f92cdb4 chore(access): Team model Unit Tests for skip
ref: #789 #791
2025-07-04 08:40:29 +09:30
Jon
9509765ba5 feat(access): Add url_kwargs to Team model
ref: #789 #791
2025-07-04 08:40:29 +09:30
Jon
8b694aabf5 feat(access): Add url_kwargs to TeamUser model
ref: #789 #792
2025-07-04 08:40:29 +09:30
Jon
8f0d0fbe16 chore: Remove all references to field is_global
field no longer used

ref: #789 #767
2025-07-04 08:40:29 +09:30
Jon
8c406e1d59 feat(access): Update TeamUser API basename
ref: #789 #792
2025-07-04 08:40:29 +09:30
Jon
9ab4e4ec7e feat(access): Update Team API basename
ref: #789 #791
2025-07-04 08:40:29 +09:30
Jon
2e5d6d4894 fix(access): use getattr instead as attribute may exist as None
ref: #789
2025-07-04 08:40:29 +09:30
Jon
8202a37576 feat(access): switch model TeamUsers to inheirt from CenturionModel
ref: #789 #792
2025-07-04 08:40:29 +09:30
Jon
5186b2f173 feat(access): switch model Team to inheirt from CenturionModel
ref: #789 #791
2025-07-04 08:40:29 +09:30
Jon
143dd2af35 chore(access): remove old ui mixin
ref: #789 #757
2025-07-04 08:40:28 +09:30
Jon
3d9cde3b25 chore: Add support for confftest for parameterized tests to have no values
ref: #789
2025-07-04 08:40:28 +09:30
Jon
398b78855d chore(access): Remove API v1 code
ref: #789 #343
2025-07-04 08:40:28 +09:30
Jon
7691ad5b0b feat(core): If user context not supplied, dont create audithistory for model
this allows tests and direct creation via code if required.

ref: #789 #759
2025-07-04 08:40:28 +09:30
Jon
a8e2536bd2 chore(base): remove tests no longer used
ref: #788 #757
2025-07-04 08:40:28 +09:30
Jon
82bfacbab3 chore: disable api field notess and history tests
tests being re-written

ref: #788 #759 #768
2025-07-04 08:40:28 +09:30
Jon
728db3f740 chore: Add premeta notes and history models to init so they can be migrated
ref: #788 #759 #768
2025-07-04 08:40:28 +09:30
Jon
bf7179b4f9 chore(access): Remove pre-meta notes code
ref: #788 #768
2025-07-04 08:40:28 +09:30
Jon
b8db09d9b8 chore: temp disable api field notes and history checks
ref: #788
2025-07-04 08:40:28 +09:30
Jon
074aa4832a feat(access): Add init to tenancy model to clear state
ref: #788 #767
2025-07-04 08:40:28 +09:30
Jon
642ecc4e6c chore(access): Remove no longer used Django UI
ref: #788 #757
2025-07-04 08:40:28 +09:30
Jon
0c62172f03 chore(base): fixture sanitization
ref: #783
2025-07-04 08:40:27 +09:30
Jon
d0f3923226 chore(access): Remove old Notes Tests
ref: #783 #735 #759
2025-07-04 08:40:27 +09:30
Jon
a53f4caa81 chore(settings): fixture sanitization
ref: #783
2025-07-04 08:40:27 +09:30
Jon
d3f367f4b9 chore(access): Remove old History Tests
ref: #783 #735 #759
2025-07-04 08:40:27 +09:30
Jon
1d31a259df refactor(tests): Create global model fixtures
ref: #780 #729
2025-07-04 08:40:26 +09:30
Jon
56bb1863f2 chore: move api render to functional dir
ref: #780 #729
2025-07-04 08:40:26 +09:30
Jon
0babe48208 chore: correct liniting errors
ref: #776
2025-07-04 08:40:25 +09:30
Jon
54195c271a refactor(access): move url routes from core.urls to own module urls_api.py
ref: #776 #777
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
685de22ad2 chore: add pytest marks to tests
ref: #772
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
bc1f12c47f feat(core): Add model instance to history object during history creation
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
85d8d74cbf test(access): Unit Model Tests for TenancyAbstractModel
ref: #770 #758 #767
2025-07-04 08:40:24 +09:30
Jon
a7f84924db chore: remove unused imports
ref: #770
2025-07-04 08:40:24 +09:30
Jon
73fdaee33f refactor: rejig whats in each inherited centurion model
ref: #770
2025-07-04 08:40:24 +09:30
Jon
15b4446775 fix(access): Tenancy Manager should not attempt to get org as related field if it does not exist
ref: #770
2025-07-04 08:40:23 +09:30
Jon
af2bc77920 feat(access): remove mill-seconds from datetime auto fields
ref: #770 #759
2025-07-04 08:40:23 +09:30
Jon
9cb507286f chore: correct code from revert
ref: #765
2025-07-04 08:40:23 +09:30
Jon
8f097fb44e chore(access): planning work for centurion Tenancy model
ref: #765 #766
2025-07-04 08:40:23 +09:30
Jon
daf2811be7 chore(access): planning work for centurion user model
ref: #765 #766
2025-07-04 08:40:23 +09:30
Jon
9d7a3e2e79 refactor(access): prefetch org with tenancy object
ref: #765
2025-07-04 08:40:23 +09:30
Jon
473763af36 feat(core): permissions getter for role model
ref: #765 #551
2025-07-04 08:40:23 +09:30