Storage Record Id logic update
Storage Record Id logic update based on the R3 Schema pattern.
RecordId(Storage Service)
Current Logic
-
System Generated: Storage service generates a RecordId using data-partition-id from the HTTP header + doc + uuid.
Example :
opendes:doc:eb862870b6234e6a9c924afc6d59331a
-
Input from Request : Storage Service validates the first part of the record id with data-partition-id from the HTTP header + Pattern check.
Example :
opendes:xyx:test
Proposal for OSDU R3
-
System Generated: Storage service generates a RecordId using data-partition-id from the HTTP header + append groupType—IndividualType from the kind + uuid.
Example :
opendes:work-product-component--WellLog:a6d6-63fc9a0bbac1",
-
Input from Request : Storage Service validates the first part of the record id with data-partition-id from the HTTP header + should match with group-type-indiviualType + Pattern check.
Example :
opendes:work-product-component--WellLog:xyx
Validation in createUpdateRecords