Commit Graph

4128 Commits

Author SHA1 Message Date
Jon
9a516fbebc Merge pull request #862 from nofusscomputing/refactor-switch-model-inheritence 2025-07-13 21:36:52 +09:30
Jon
be708b1244 test(fixture): if item already exists, when fetching remove modified field from query if not found with
field is an auto field and most likely wont match the existing item

ref: #862
2025-07-13 21:11:55 +09:30
Jon
2f7865bb83 feat(access): Add Audit and notes tables for model Role
ref: #862 #844
2025-07-12 18:27:03 +09:30
Jon
b643347c01 test(access): Model Role is not usable within global org, remove test
ref: #862 #844
2025-07-12 18:21:51 +09:30
Jon
957052da84 refactor(access): Adjust add permission test for model Role
ref: #862 #844
2025-07-12 17:30:58 +09:30
Jon
b2e0982b4c refactor(access): Migrations for Inheritance change for Role model
ref: #862 closes #844
2025-07-12 16:57:20 +09:30
Jon
ca63e4d6fc refactor(access): Update URL route name for Role model
ref: #862 #844
2025-07-12 16:56:41 +09:30
Jon
3b7e88969e refactor(access): Update Test Suite for Role model
ref: #862 #844
2025-07-12 16:56:07 +09:30
Jon
953dce2984 feat(access): Add AuditHistory Serializer for Role model
ref: #862 #844
2025-07-12 16:44:43 +09:30
Jon
e0c8ef46f5 feat(access): Add Notes Serializer for Role model
ref: #862 #844
2025-07-12 16:43:58 +09:30
Jon
548051df6d refactor(access): Switch to inherit from Centurion model for model Role
ref: #862 #844
2025-07-12 16:42:59 +09:30
Jon
d6eb33141a refactor: Asset and ITAM Asset must use url kwarg model_name not asset_model
ref: #862 closes #857 #858
2025-07-12 16:13:08 +09:30
Jon
4f36769fba refactor(accounting): Update existing tests to work due to model inheritance changes
ref: #862 #857
2025-07-10 20:35:32 +09:30
Jon
018004ccb9 refactor(itam): Update URL route name for ITAMAssetBase model
ref: #862 #858
2025-07-10 19:54:28 +09:30
Jon
b851388d37 refactor(itam): Update Test Suite for ITAMAssetBase model
ref: #862 #858
2025-07-10 19:53:38 +09:30
Jon
38b4542a58 feat(itam): Add AuditHistory Serializer for ITAMAssetBase model
ref: #862 #858
2025-07-10 19:51:13 +09:30
Jon
3b5673ae4b feat(itam): Add Notes Serializer for ITAMAssetBase model
ref: #862 #858
2025-07-10 19:50:53 +09:30
Jon
e4e7ad915b refactor(itam): Switch to inherit from Centurion model for model ITAMAssetBase
ref: #862 #858
2025-07-10 19:50:04 +09:30
Jon
de7c52d733 refactor(accounting): Switch to inherit from Centurion model for model AssetBase
ref: #862 #857
2025-07-10 19:48:21 +09:30
Jon
d741992b6d refactor(accounting): Update URL route name for AssetBase model
ref: #862 #857
2025-07-10 19:47:18 +09:30
Jon
9b3c8d2225 refactor(accounting): Update Test Suite for AssetBase model
ref: #862 #857
2025-07-10 19:43:54 +09:30
Jon
4ff457a58c feat(accounting): Add AuditHistory Serializer for AssetBase model
ref: #862 #857
2025-07-10 19:33:36 +09:30
Jon
46b4df5dc1 feat(accounting): Add Notes Serializer for AssetBase model
ref: #862 #857
2025-07-10 19:32:57 +09:30
Jon
2482148466 refactor(accounting): Switch to inherit from Centurion model for model AssetBase
ref: #862 #857
2025-07-10 19:28:41 +09:30
Jon
2c1c769988 Merge pull request #860 from nofusscomputing/fix-stuff 2025-07-09 11:18:54 +09:30
Jon
38f3a3bf05 fix(core): Include model so content type is created
ref: #860
2025-07-09 10:54:59 +09:30
Jon
965bde51bc Merge pull request #856 from nofusscomputing/test-functional-get-working 2025-07-07 21:24:30 +09:30
Jon
303cc31f6a test(devops): skip Model History entry test as it should be done as part of serializer and viewset
ref: #856 #781
2025-07-07 20:55:22 +09:30
Jon
97f99abe2c chore: ensure api post items for tests is the correct type
ref: #856
2025-07-07 18:51:59 +09:30
Jon
93642ee6a1 Merge pull request #855 from nofusscomputing/test-get-functional-working 2025-07-07 00:41:19 +09:30
Jon
eeaf3ab5fc test(devops): update no_org_serializer test so it works for model SoftwareEnableFeatureFlag
ref: #855 #812
2025-07-07 00:16:17 +09:30
Jon
5b6f9bec00 chore(tests): cater for manytomany for api fields
ref: #855
2025-07-07 00:16:11 +09:30
Jon
cf7fb57583 chore(itam): Ensure when creating Model ITAMAsset that the asset number field is populated
ref: #855 #737
2025-07-06 22:48:47 +09:30
Jon
45abdc2e00 feat: When attempting to create and objetc must be unique and alrready exists, dont return error return existing object
ref: #855
2025-07-06 22:20:54 +09:30
Jon
22ad79386e chore(settings): Remove old AppSettings model permission tests
ref: #855 #834
2025-07-06 20:59:03 +09:30
Jon
baabf84234 fix(settings): AppSettings requires super user perms
ref: #855 #834
2025-07-06 20:55:18 +09:30
Jon
c54de5c627 feat(access): History + Notes model migrations for Company Model
ref: #855 #801
2025-07-06 20:23:48 +09:30
Jon
803d7f3223 test(itam): Model DeviceOperatingSystem is not multi-org based skip those tests
ref: #855 #801
2025-07-06 19:14:13 +09:30
Jon
b5f55c1eea test(settings): Model UserSettings does not allowing adding rows, skip test
ref: #855 #836
2025-07-06 19:06:57 +09:30
Jon
888fc68180 test(settings): Model AppSettings does not allowing adding rows, skip test
ref: #855 #834
2025-07-06 19:06:20 +09:30
Jon
5d8062fcef Merge pull request #849 from nofusscomputing/test-model-inheritance-refactor 2025-07-04 19:51:58 +09:30
Jon
e99ab1b0c6 test(fixture): Ensure _meta attribute exists when cleaning up models prior to attempting to use
ref: #849
2025-07-04 19:30:33 +09:30
Jon
7c85d9653f revert(api): when testing create object, remove the actual created object prior to testing the add
object is class scoped and cant be deleted

ref: #849
2025-07-04 19:06:48 +09:30
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