oscal-react-library icon indicating copy to clipboard operation
oscal-react-library copied to clipboard

Support editing metadata Roles

Open Bronstrom opened this issue 2 years ago • 2 comments
trafficstars

Description

As a catalog author, I want to edit Roles in regard to metadata.

Acceptance Criteria

  • roles can be edited and saved within the React library
  • After saving changes, the roles field is sent to the REST API following the specification using the best available method

Proposed Solution

It is likely best to either (a) add new routes to the API specification to support metadata editing; or (b) use the PATCH /{documentType}/{id} routes

Additional Notes

No response

Implementation

  • [ ] I can (or plan to) submit a pull request to implement this
  • [ ] Implementing this may result in a breaking change

Bronstrom avatar Mar 03 '23 21:03 Bronstrom

Need to honor canonical roles defined by NIST and offer the ability to add other roles with an assigned ID.

See metaschema and supporting files (not appearing in NIST documentation) https://github.com/usnistgov/OSCAL/blob/main/src/metaschema/shared-constraints/allowed-values-responsible-roles-system.ent https://github.com/usnistgov/OSCAL/blob/main/src/metaschema/shared-constraints/allowed-values-responsible-roles-operations.ent https://github.com/usnistgov/OSCAL/blob/main/src/metaschema/shared-constraints/allowed-values-responsible-roles-component-production.ent https://github.com/usnistgov/OSCAL/blob/0dfb7123488576b016ca58806033bfc9b6be8e0b/src/metaschema/oscal_metadata_metaschema.xml#L103

brian-ruf-ezd avatar Mar 08 '23 18:03 brian-ruf-ezd

@Bronstrom to split into two tasks.

brian-ruf-ezd avatar Apr 07 '23 19:04 brian-ruf-ezd