Bug/Improvement: Trailing ":" miss in the CP record TrustedCollectionID, ResourceCollectionID and probably other reference properties
Description
All OSDU reference pointers (if pointed without trailing version parts) MUST be referenced with the trailing ":" as it required by ALL OSDU scheams. E.g., in the CollaborationProject schema:
As we can see the pattern is:
^[\w-.]+:work-product-component--CollaborationProjectCollection:[\w-.:%]+:[0-9]*$
So the last ":" is MUST
The good example is how the LifecycleEvent is referenced:
But this is not how the rest of references are implemented in the P&WS service:
Need to fix it and implement the following algorithm when taking ids (to be used for references) from the API requests OR creating reference links inside the app (TrustedCollectionID, LifecycleEvent.ResourceCollectionID, LifecycleEvent.WIPResourceCollectionID, etc...)
Acceptance criteria
All OSDU reference pointers (if pointed without trailing version parts) MUST be referenced with the trailing ":"
Testing scenarios
Make sure trailing ":" are present or added by the app on save
Technical notes
[Any technical details, guides, documentation, wikis, and many more that could be useful to complete this story.]