Commit Graph

4157 Commits

Author SHA1 Message Date
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
Jon
1f4ce92623 test(devops): If test publically accessable, dont test by user org only as test is NA
ref: #849 #782
2025-07-04 10:10:15 +09:30
Jon
882ae90d83 fix(api): Ensure if exception DRF, message returned is from that exception
ref: #849
2025-07-04 10:03:48 +09:30
Jon
ea88076d7f test(settings): UserSettings perms tests are for the user that is accessing them
ref: #849 #836
2025-07-04 09:45:50 +09:30
Jon
6e925e8456 test(settings): UserSettings perms tests are not org based, skip those tests
ref: #849 #836
2025-07-04 09:38:34 +09:30
Jon
ffaac107f4 refactor(api): additional perms tests if they exist must be inc first
ref: #849
2025-07-04 09:38:26 +09:30
Jon
b282162a86 test(settings): AppSettings perms tests are not org based, skip those tests
ref: #849 #834
2025-07-04 09:38:07 +09:30
Jon
05fd82459a chore: Add makemigrations debug launch to vscode
ref: #849
2025-07-04 08:41:40 +09:30
Jon
b2383a2236 refactor(devops): remove ViewSet get_queryset function
not required as the model is set to the actual model

ref: #849 #809
2025-07-04 08:41:40 +09:30
Jon
bf1bb23dd5 chore(test): Add required fields to service fixture
ref: #849 #828
2025-07-04 08:41:40 +09:30
Jon
73a704d5e3 fix(devops): git repository is sub-model ViewSet must inherit from SubModel
ref: #848 #809 #810 #811
2025-07-04 08:40:36 +09:30
Jon
7b22541002 chore(access): Update common viewset test suite mock request
ref: #847 #840 #841 #842 #843 #845
2025-07-04 08:40:36 +09:30
Jon
1ba7661f07 refactor(access): Update Entity model ViewSet attribute model_kwarg to model_name
ref: #847 #840 #841 #842 #843 #845
2025-07-04 08:40:36 +09:30
Jon
2eb0ba674e refactor(access): Update Entity model ViewSet to inherit from submodel-rewrite
ref: #847 #840 #841 #842 #843 #845
2025-07-04 08:40:36 +09:30
Jon
6ae3b193fa chore(access): remove get_url_kwargs function as it's not required
ref: #847 #840 #841 #842 #843 #845
2025-07-04 08:40:36 +09:30
Jon
2b7eaace4d fix(access): entity field entity_type is an auto field
ref: #847
2025-07-04 08:40:36 +09:30
Jon
4f8fca9aff chore: Ensure employee fixture creates integer within max of field
ref: #847
2025-07-04 08:40:36 +09:30
Jon
53a474fa2a chore: update apifield test suit to set model class var and for the removal of fields property from models
ref: #847
2025-07-04 08:40:36 +09:30
Jon
b549059d15 chore(test): update db fixture
ref: #839
2025-07-04 08:40:36 +09:30
Jon
e7eb1442b7 docs(issue_template): remove notes and history requirements from new model issue template
ref: #839
2025-07-04 08:40:36 +09:30
Jon
6d2406ae1c chore(access): Add pytest mark for Model Entity Tests
ref: #839 closes #840
2025-07-04 08:40:36 +09:30
Jon
aa86f04aa2 chore(access): Add pytest mark for Model Company Tests
ref: #839 closes #845
2025-07-04 08:40:36 +09:30