Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add actions assembly to encode an action (i.e. approval) and its role, party, and approval date. #1052

Conversation

xee5ch
Copy link
Contributor

@xee5ch xee5ch commented Nov 12, 2021

Committer Notes

A follow-up to #1033, a recommended implementation for an actions assembly to allow developers using OSCAL to encode approval data for given staff certain roles for a responsible-party at a certain date and time.

This PR supercedes the obsolete PR #1038.

All Submissions:

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?
  • Have you squashed any non-relevant commits and commit messages? [instructions]
  • Do all automated CI/CD checks pass?

Changes to Core Features:

@wendellpiez
Copy link
Contributor

Suggest:

  • Add (required) type flag of type token. An example can show this with value "approval" (our primary use case).
  • All other flags should be optional not required, should they not?

@xee5ch
Copy link
Contributor Author

xee5ch commented Dec 10, 2021

OK, feedback rolled in, and ready for final review. I hope to discuss tomorrow during model meeting if possible.

cc @david-waltermire-nist @wendellpiez

@david-waltermire
Copy link
Contributor

I believe we should adjust the action type to be namespaced similar to properties. This will allow different organizations to define new action types without coordinating with OSCAL. OSCAL can define a core set of actions in the OSCAL namespace.

@xee5ch xee5ch force-pushed the issue-1033-actions-assembly branch 3 times, most recently from e066442 to 3e2db77 Compare August 10, 2022 21:28
@xee5ch
Copy link
Contributor Author

xee5ch commented Aug 10, 2022

Per feedback from Dave, I need to improve the documentation for the new assembly, fields, and flags before finalizing and removing the draft tag.

@xee5ch xee5ch marked this pull request as ready for review August 11, 2022 13:10
@xee5ch xee5ch changed the title [WIP] Add actions assembly to encode an action (i.e. approval) and its role, party, and approval date. Add actions assembly to encode an action (i.e. approval) and its role, party, and approval date. Aug 11, 2022
@xee5ch
Copy link
Contributor Author

xee5ch commented Aug 11, 2022

After a second pass, it seems adding other documentation strings will be too wordy and add unnecessary content. I think this is ready for the NIST OSCAL Team to review. :-)

@xee5ch xee5ch force-pushed the issue-1033-actions-assembly branch from 3e2db77 to fe39f58 Compare August 11, 2022 21:10
@xee5ch
Copy link
Contributor Author

xee5ch commented Aug 11, 2022

OK, I think this is ready. I addressed feedback above in fe39f58 but also added some missing formal-names and other things I should probably add. Let me know if you want further changes or that goes beyond the scope of what you think was/is prudent.

@xee5ch xee5ch force-pushed the issue-1033-actions-assembly branch from fe39f58 to 2dc8a59 Compare August 11, 2022 21:13
xee5ch added a commit to oscal-club/OSCAL that referenced this pull request Aug 24, 2022
@xee5ch xee5ch force-pushed the issue-1033-actions-assembly branch from c7985a2 to 1c6be8a Compare August 24, 2022 17:12
@xee5ch
Copy link
Contributor Author

xee5ch commented Aug 24, 2022

OK, I touched up with the feedback requests, @david-waltermire-nist and company. I am iffy on the constraints but and XPathy syntax target="system" versus target="./system" et cetera. If we are good with it as-is, I will merge the commits as needed once your formal review is complete. :-)

@xee5ch xee5ch requested review from david-waltermire and removed request for wendellpiez August 24, 2022 17:15
@wendellpiez
Copy link
Contributor

In XPath and also Metapath, ./system is an abbreviated form of self::node()/child::system and returns the same nodes as system (expanded as child::system). So for purposes of addressing nodes they are functionally equivalent.

This doesn't mean that all XPath processors always treat them the same way, e.g. a delinter might even rewrite one to the other, etc.

@xee5ch
Copy link
Contributor Author

xee5ch commented Aug 24, 2022

In XPath and also Metapath, ./system is an abbreviated form of self::node()/child::system and returns the same nodes as system (expanded as child::system). So for purposes of addressing nodes they are functionally equivalent.

This doesn't mean that all XPath processors always treat them the same way, e.g. a delinter might even rewrite one to the other, etc.

Thanks for the clarifying explanation. Much appreciated! In terms of Metapath, I see targets in constraints that use either/or in some cases. I am not sure if there is a better answer, or it is simply right or wrong.

@xee5ch
Copy link
Contributor Author

xee5ch commented Aug 24, 2022

Also, in terms of acceptance criteria, we still ask for examples. It seems in #1263 NIST has begun removing examples from the Metaschema and I am not sure of: do we need examples for this PR? Do we need a follow-up issue for examples? Either way, where should new examples go? Let me know. Thank you!

Copy link
Contributor

@david-waltermire david-waltermire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good. Thanks!

@david-waltermire
Copy link
Contributor

Also, in terms of acceptance criteria, we still ask for examples. It seems in #1263 NIST has begun removing examples from the Metaschema and I am not sure of: do we need examples for this PR? Do we need a follow-up issue for examples? Either way, where should new examples go? Let me know. Thank you!

It would be good to add an issue to create an example in the oscal-content repo maybe?

@david-waltermire david-waltermire added Model Engineering An issue to be discussed during the bi-weekly Model Engineering Meeting Discussion Needed This issues needs to be reviewed by the OSCAL development team. labels Aug 25, 2022
@aj-stein-nist aj-stein-nist changed the base branch from develop to feature-metadata-actions-assembly August 25, 2022 18:49
@aj-stein-nist
Copy link
Contributor

@david-waltermire-nist, I pointed this PR to a feature branch as instructed during the weekly sync for when we are ready to merge after soliciting model feedback during an upcoming Model Review meeting next week.

@aj-stein-nist aj-stein-nist self-assigned this Aug 25, 2022
Copy link
Contributor

@david-waltermire david-waltermire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

@david-waltermire david-waltermire merged commit 5c6d586 into usnistgov:feature-metadata-actions-assembly Aug 25, 2022
aj-stein-nist pushed a commit that referenced this pull request Sep 7, 2022
…, party, and approval date. (#1052)

* Create actions assembly in OSCAL metadata model.
* Address PR feedback to wrap up.

#1052 (review)
#1052 (comment)
david-waltermire pushed a commit that referenced this pull request Sep 26, 2022
…, party, and approval date. (#1052) (#1429)

* Create actions assembly in OSCAL metadata model.
* Address PR feedback to wrap up.

#1052 (review)
#1052 (comment)

Co-authored-by: Al S <[email protected]>
aj-stein-nist added a commit that referenced this pull request Oct 18, 2022
…, party, and approval date. (#1052) (#1429)

* Create actions assembly in OSCAL metadata model.
* Address PR feedback to wrap up.

#1052 (review)
#1052 (comment)

Co-authored-by: Al S <[email protected]>
david-waltermire pushed a commit that referenced this pull request Oct 31, 2022
…, party, and approval date. (#1052) (#1429)

* Create actions assembly in OSCAL metadata model.
* Address PR feedback to wrap up.

#1052 (review)
#1052 (comment)

Co-authored-by: Al S <[email protected]>
aj-stein-nist added a commit to aj-stein-nist/OSCAL-forked that referenced this pull request Jan 10, 2023
…, party, and approval date. (usnistgov#1052) (usnistgov#1429)

* Create actions assembly in OSCAL metadata model.
* Address PR feedback to wrap up.

usnistgov#1052 (review)
usnistgov#1052 (comment)

Co-authored-by: Al S <[email protected]>
aj-stein-nist added a commit to aj-stein-nist/OSCAL-forked that referenced this pull request Feb 6, 2023
…, party, and approval date. (usnistgov#1052) (usnistgov#1429)

* Create actions assembly in OSCAL metadata model.
* Address PR feedback to wrap up.

usnistgov#1052 (review)
usnistgov#1052 (comment)

Co-authored-by: Al S <[email protected]>
aj-stein-nist added a commit to aj-stein-nist/OSCAL that referenced this pull request Jun 29, 2023
…, party, and approval date. (#1052) (#1429)

* Create actions assembly in OSCAL metadata model.
* Address PR feedback to wrap up.

usnistgov/OSCAL#1052 (review)
usnistgov/OSCAL#1052 (comment)

Co-authored-by: Al S <[email protected]>
aj-stein-nist added a commit to aj-stein-nist/OSCAL that referenced this pull request Jun 29, 2023
…, party, and approval date. (#1052) (#1429)

* Create actions assembly in OSCAL metadata model.
* Address PR feedback to wrap up.

usnistgov/OSCAL#1052 (review)
usnistgov/OSCAL#1052 (comment)

Co-authored-by: Al S <[email protected]>
aj-stein-nist added a commit to aj-stein-nist/OSCAL-forked that referenced this pull request Jul 10, 2023
…, party, and approval date. (usnistgov#1052) (usnistgov#1429)

* Create actions assembly in OSCAL metadata model.
* Address PR feedback to wrap up.

usnistgov#1052 (review)
usnistgov#1052 (comment)

Co-authored-by: Al S <[email protected]>
@aj-stein-nist aj-stein-nist removed this from the v1.1.0 milestone Jul 27, 2023
aj-stein-nist added a commit to galtm/OSCAL that referenced this pull request Sep 28, 2023
…, party, and approval date. (usnistgov#1052) (usnistgov#1429)

* Create actions assembly in OSCAL metadata model.
* Address PR feedback to wrap up.

usnistgov#1052 (review)
usnistgov#1052 (comment)

Co-authored-by: Al S <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Discussion Needed This issues needs to be reviewed by the OSCAL development team. Model Engineering An issue to be discussed during the bi-weekly Model Engineering Meeting
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Approval Status and Date for OSCAL Document Instance
4 participants