Commit Graph

1070 Commits

Author SHA1 Message Date
Jon
48ea6c4491 chore(core): disable ticket tests for ticket models that are being depreciated
ref: #804 #564
2025-07-04 08:40:30 +09:30
Jon
7326598f6c fix(core): notes meta model must add model_kwargs fixture
ref: #804 #768
2025-07-04 08:40:30 +09:30
Jon
35b72a048e fix(core): clean_fields for created_by field belongs in model that contains field
ref: #804 #768
2025-07-04 08:40:30 +09:30
Jon
7b55d37117 fix(core): audit meta model must add model_kwargs fixture
ref: #804
2025-07-04 08:40:30 +09:30
Jon
41fde61184 chore(core): mock further attributes
ref: #804
2025-07-04 08:40:30 +09:30
Jon
a3b9815891 chore(core): disable pre CenturionModel inheritance tests
ref: #804 #796 #797 #798
2025-07-04 08:40:29 +09:30
Jon
8c4e5d5c1d test(config_management): Completed ConfigGroup Model Tests
ref: #804 #795
2025-07-04 08:40:29 +09:30
Jon
274347ebc1 fix(core): When obtaining model fields ensure it exists first
ref: #789 #767
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
7173d9f554 feat(core): switch model TicketCategory to inheirt from CenturionModel
ref: #789 #797
2025-07-04 08:40:29 +09:30
Jon
20b173bf1c feat(core): switch model TicktetCommentCategory to inheirt from CenturionModel
ref: #789 #798
2025-07-04 08:40:29 +09:30
Jon
ac6f580153 feat(core): switch model Manufacturer to inheirt from CenturionModel
ref: #789 #796
2025-07-04 08:40:29 +09:30
Jon
e9a8ad1c48 test(core): mock the user object within the model context
ref: #789 #759
2025-07-04 08:40:28 +09:30
Jon
09beeb46af test(core): creating a model is a functional not unit test
ref: #789 #759
2025-07-04 08:40:28 +09:30
Jon
883c0961f6 chore: as part of api func tests, dont delete api perms user as part of fixture cleanup
ref: #789
2025-07-04 08:40:28 +09:30
Jon
f6e3390d26 chore(core): 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
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
8a390b9caf chore(core): remove old old history model
ref: #788 #759
2025-07-04 08:40:28 +09:30
Jon
3155794931 chore(core): Remove Template tags
not using django ui anymore

ref: #788 #757
2025-07-04 08:40:28 +09:30
Jon
0ded2bcebd chore(core): Remove pre-meta notes code
ref: #788 #768
2025-07-04 08:40:28 +09:30
Jon
cc483e2cb5 chore(core): disable ticket linked item kb article functional test
ref: #788 #735
2025-07-04 08:40:28 +09:30
Jon
25d510f086 chore(core): Remove no longer used Django UI
ref: #788 #757
2025-07-04 08:40:28 +09:30
Jon
b1530b3c19 chore(base): Dont reload model, reset the parts that change in tests
creates issues with mocking

ref: #788
2025-07-04 08:40:28 +09:30
Jon
c64add9ce7 chore(core): disable old delete so it's no longer used by models yet to inherit from CenturionModel
ref: #788 #759
2025-07-04 08:40:28 +09:30
Jon
3915678675 feat(core): Ensure that model has user context
ref: #788 #759
2025-07-04 08:40:27 +09:30
Jon
f42e255f37 chore(core): disable old delete so it's no longer used by models yet to inherit from CenturionModel
ref: #788 #759
2025-07-04 08:40:27 +09:30
Jon
c0455af2fa chore(itam): mock base delete so abstract classes can be called
ref: #788
2025-07-04 08:40:27 +09:30
Jon
c3905360f4 chore(core): 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
b21b0f0b5b chore(core): Remove old History Tests
ref: #783 #735 #759
2025-07-04 08:40:27 +09:30
Jon
69bbe94b06 feat(core): Add supprt to model create test for manytomany field
ref: #783
2025-07-04 08:40:27 +09:30
Jon
78ed699463 feat(assistance): Model inheritance migrations
ref: #783 #785 #786
2025-07-04 08:40:27 +09:30
Jon
0a413a6581 chore(devops): Remove GitGroup old notes serializer
ref: #783 #781
2025-07-04 08:40:26 +09:30
Jon
caeabe0793 feat(core): Migrate Centurion Model history and notes within a post_migrate signal
ref: #783 #758 #759 #778 #768
2025-07-04 08:40:26 +09:30
Jon
9dc2114258 fix(core): Before attempting to get model audit data confirm fields dont already exist
ref: #783
2025-07-04 08:40:26 +09:30
Jon
026c408754 feat(core): Add ability to CenturionModel get_url to be either detail/list
ref: #780 #767
2025-07-04 08:40:26 +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
4414f585a6 feat(core): New Management command to list models
ref: #780 #771
2025-07-04 08:40:26 +09:30
Jon
b37a284a0a test(core): Ensure Method clean_fields functions for CenturionNotesModel
ref: #779 #778
2025-07-04 08:40:26 +09:30
Jon
1fa3278b73 test(core): Function Model test suite for CenturionModelNote Meta Models
ref: #779 #778 #768
2025-07-04 08:40:26 +09:30
Jon
637a76f1fe test(core): Interim Unit Model test suite for CenturionModelNote Meta Models
ref: #779 #778
2025-07-04 08:40:26 +09:30
Jon
9afca66ad6 test(core): Interim Unit Model test suite for CenturionModelNote
ref: #779 #778
2025-07-04 08:40:26 +09:30
Jon
031fd79f13 feat(core): Disable Notes for model CenturionModelNote
A notes model does not require notes

ref: #779 #778
2025-07-04 08:40:26 +09:30
Jon
473ffb0ec0 feat(core): add Swagger docs for CenturionModelNotes ViewSet
ref: #779 #778
2025-07-04 08:40:26 +09:30
Jon
62e7eb9c47 feat(core): Meta Model for CenturionModelNotes
ref: #779 #778
2025-07-04 08:40:26 +09:30
Jon
695bfa7f51 feat(core): Finalize Serializer for CenturionModelNotes
ref: #779 #778
2025-07-04 08:40:26 +09:30
Jon
1d77247e40 feat(core): Interim Meta model CenturionNotes
ref: #776 #778
2025-07-04 08:40:26 +09:30