Details
-
Story
-
Status: Closed (View Workflow)
-
P2
-
Resolution: Done
-
None
-
-
Core: F - Sprint 79, Core: F - Sprint 80
-
3
-
Prokopovych
Description
Spike outcome: investigate what modules will be updated & get familiarized with code. Investigate ways of implementation.
This is a breaking compatibility change.
- Make the item.status.date as readonly (it is populated by a DB trigger now, see
MODINVSTOR-367). - Add "format": "date-time" so the property becomes java Date instead of raw string.
Implementation notes
RMB removes readonly fields before updating them, so we additionally have to update instanceStatusUpdatedDateTrigger.sql trigger, so it will transfer the OLD statusUpdatedDate to the NEW record, i.e.:
IF (OLD.jsonb->'status'->>'date' IS NOT NULL) THEN NEW.jsonb->'status'->>'date'= OLD.jsonb->'status'->>'date'; END IF;
TestRail: Results
Attachments
Issue Links
- defines
-
MODINVSTOR-416 Item Storage 8.0
-
- Closed
-
- relates to
-
MODINVSTOR-388 Make instance.statusUpdatedDate read only field.
-
- Open
-
-
RMB-538 JSON validation: read-only sub-fields, translation code
-
- Closed
-
-
MODINVSTOR-367 Maintain item status date even if item record is edited
-
- Closed
-
- requires
-
CIRC-608 Item-storage 8.0 breaking changes
-
- Closed
-
-
MODINV-189 Item-storage 8.0 breaking changes
-
- Closed
-