Commit Graph

52 Commits

Author SHA1 Message Date
Jon
af4abacd53 chore(api): correct pylint error W0611:unused-import
ref: #765
2025-05-18 05:42:23 +09:30
Jon
edc7aedbe0 fix(api): Dont try to access attribute if not exist in common viewset
ref: #761
2025-05-15 23:03:49 +09:30
Jon
3c19e9d4cf fix(api): Dont try to access attribute if not exist in common viewset
ref: #761
2025-05-15 20:19:43 +09:30
Jon
2e9fe29e99 fix(api): Correct ViewSet Sub-Model lookup
ref: #761
2025-05-15 19:45:04 +09:30
Jon
1946c7aa88 fix(api): Ensure multi-nested searching for sub-models works
ref: #754
2025-05-13 23:29:02 +09:30
Jon
899df95994 feat(api): Add exception logging to ViewSetCommon
ref: #754 #752
2025-05-12 19:55:37 +09:30
Jon
40b51f1a77 feat(api): Add Logging function to Common ViewSet
ref: #744 #436 #752
2025-05-10 23:39:22 +09:30
Jon
b54f3b7ab4 refactor(api): Limit url pk regex to ensure the value is a number
ref: #741
2025-05-05 17:22:08 +09:30
Jon
029ab6bc06 refactor(api): SubModelViewSet must inherit from ModelViewSet as it's an extension
ref: #733 #564
2025-04-26 18:05:43 +09:30
Jon
c152dd13f1 feat(api): when fetching related_object, default to base_model for SubModelViewSet
ref: #732 #726
2025-04-26 06:13:39 +09:30
Jon
b6146b7d14 feat: Add field Meta.sub_model_type to sub-models
ref: #732 #564
2025-04-26 06:00:34 +09:30
Jon
eddd2534ea fix(api): SubModelViewSet.related_objects must be the same class as the base model
ref: #724 #723 #725
2025-04-16 21:07:14 +09:30
Jon
a695b4563d refactor(access): migrate sub-model viewset logic to common
ref: #724 #723
2025-04-15 20:13:39 +09:30
Jon
32251d0a08 fix(api): Correct documentation link to use models verbose name
ref: #702
2025-04-09 14:41:10 +09:30
Jon
24132a0b1c fix(api): Dont attempt to access kwargs if not exists within common serializer
ref: #707
2025-04-03 17:00:00 +09:30
Jon
668a64bb79 fix(api): Fetching of serializer_class must be dynamic
ref: #693
2025-03-22 18:52:00 +09:30
Jon
88d1abaef7 fix(core): Don't create an empty ticket comment if the body is empty when slash commands removed
ref: #691 #681
2025-03-19 15:36:13 +09:30
Jon
6cf6a23964 feat(devops): public feature flag endpoint pagination limited to 20 results
ref: #673 closes #663
2025-03-10 19:37:37 +09:30
Jon
0c6fb786dd feat(api): Add public API endpoint
ref: #673 #663
2025-03-08 17:45:20 +09:30
Jon
529512be3e feat(api): Add common viewset for public RO list
ref: #663
2025-03-08 16:35:00 +09:30
Jon
b63f6b7092 feat: Remove serializer caching from ALL viewsets
ref: #671 closes #668
2025-03-07 17:53:14 +09:30
Jon
16388f0a10 feat(api): Always use a models View serializer for the response
ref: #477 #579 closes #578
2025-02-18 04:12:59 +09:30
Jon
cff343989b feat(core): Base model for model notes
ref: #389 #525
2025-02-07 15:49:12 +09:30
Jon
c755feb9a7 fix(api): correct get_view_name to prioritize view_name over model.verbose_name
ref: #512 #513 #518
2025-02-06 20:34:46 +09:30
Jon
8bd3a8fb45 fix(api): correct truthy check for set property when evaluating serializer_class
ref: #513 #518 closes #519
2025-02-04 07:45:07 +09:30
Jon
67db68c5ea fix(api): correct truthy check for set property when evaluating queryset
ref: #512 #518 closes #519
2025-02-04 07:45:07 +09:30
Jon
ad4d030a40 fix(api): correct variable name in common viewset for queryset
ref: #512 #518
2025-02-04 07:29:11 +09:30
Jon
a00db4e7f6 fix(api): Add missing property bacjk_url to Common viewset
ref: #518
2025-02-04 07:29:11 +09:30
Jon
f80ed4d366 fix(api): Common viewset to cache and use queryset Object
ref: #512 #518
2025-02-04 07:29:11 +09:30
Jon
c5eb26e62b feat: Views to cache discovered serializer
ref: #471 #511
2025-02-01 14:46:05 +09:30
Jon
6528550fb8 fix(api): correctly return API exceptions for user to rectify
will return exactly as required for fields.

ref: #469
2025-01-12 17:41:40 +09:30
Jon
6007668338 feat(api): fetch doc path for view metadata
ref: #463 #469
2025-01-12 16:46:14 +09:30
Jon
af96e47126 feat(api): Add option to viewset to render field markdown metadata
ref: #466 #467 nofusscomputing/centurion_erp_ui#40
2025-01-09 02:19:23 +09:30
Jon
4ebff09671 fix(api): Ensure ALL required classes for viewset are inherited
ref: #459
2025-01-04 19:14:25 +09:30
Jon
193c6c3b7f feat(api): Add IndexViewset to ViewSet mixin
ref: #442 #456
2024-12-27 23:03:39 +09:30
Jon
dc553317de refactor(api): dedup code within viewset mixin
ref: #442 #454
2024-12-26 20:52:27 +09:30
Jon
6ff3d83222 refactor(api): Use new re-writen Mixins for Tenancy and Permission checks
ref: #442 #454
2024-12-25 20:59:14 +09:30
Jon
384b0e1d10 feat(api): distinguish between read-only and authenticateed user permissions
ref: #451 #452
2024-12-24 16:08:22 +09:30
Jon
4ae965603c feat(api): Add back url to metadata
ref: #410 #411
2024-11-30 13:58:00 +09:30
Jon
e4ce1b539e feat(api): Add return_url to metadata
ref: #410 #411
2024-11-30 13:57:31 +09:30
Jon
e10a4972af feat(api): Implement Sanity error handling for uncaught exceptions
ref: #15 #392 closes #387
2024-11-28 02:22:29 +09:30
Jon
96670857e9 fix(api): Ensure queryset filters to actual item if pk is defined
ref: #248 #385 #388 #389 nofusscomputing/centurion_erp_ui#23
2024-11-28 02:22:27 +09:30
Jon
cd0bcf6731 chore(api): Correct DRF Swagger Docs errors
ref: #248 #361 #383
2024-11-28 02:22:25 +09:30
Jon
1c5fb0de18 feat(itam): Add Inventory API v2 endpoint
ref: #248 #383
2024-11-28 02:22:25 +09:30
Jon
c36d36be0b feat(core): Add Related Ticket API v2 endpoint
ref: #248 #365
2024-11-28 02:22:17 +09:30
Jon
726a3ac406 fix(api): Correct inheritance order for ModelViewSet
ref: #248 #365
2024-11-28 02:22:16 +09:30
Jon
20dc72d564 feat(api): Added ability to specify table fields within the viewset.
required for models that are external to centurion

ref: #248 #360
2024-11-28 02:22:16 +09:30
Jon
00c2826d9a feat(settings): Add User Settings API v2 endpoint
ref: #248 #360
2024-11-28 02:22:15 +09:30
Jon
62ca58e820 refactor(api): Adjust viewset common so that page_layout is available for base
ref: #248 #348
2024-11-28 02:22:02 +09:30
Jon
79f17a7d57 feat(api): Add Read Only abstract ViewSet
ref:  #248 #348
2024-11-28 02:20:43 +09:30