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

results_group naming syntax #717

Closed
adamb-kpmg opened this issue Jul 30, 2020 · 7 comments
Closed

results_group naming syntax #717

adamb-kpmg opened this issue Jul 30, 2020 · 7 comments
Assignees
Labels
closable model-refactor Used to mark issues related to model refactoring for the Metaschema v4 transition. question

Comments

@adamb-kpmg
Copy link

{Please enter your question.}
Is it intentional that assessment-results/results_group:

  1. has an underscore in the name instead of the dash
  2. is called results_group instead of results?

If not, I propose that this be named results to be consistent with the other names in this structure (e.g., "findings" is a group of "finding" objects). Also propose reviewing naming syntax for collections throughout the schema to align the naming.

@david-waltermire david-waltermire added the model-refactor Used to mark issues related to model refactoring for the Metaschema v4 transition. label Sep 25, 2020
@brian-ruf
Copy link
Contributor

@adamb-kpmg while the name can't be identical, it certainly doesn't have to be an underscore. In fact, I believe I intended a dash and the underscore is a typo. It's an easy fix, which I'll make when I address a few related items in the very near future.

I'll have to defer to @david-waltermire-nist and/or @wendellpiez as to the explanation of why the name can't be identical. I know it's a JSON-only issue and doesn't apply to XML.
Normally we just convert a singular to a plural, but that doesn't work with "results", which is why "group" is appended.

Count on it being changed to "results-group"

@wendellpiez
Copy link
Contributor

In this particular case I wonder if we could have result as the singular name and results the grouping name. This is really a semantic question about the data, not a consequence of our working rule to keep singular and plural names distinct. (@brianrufgsa ?)

@brian-ruf
Copy link
Contributor

brian-ruf commented Sep 29, 2020

@wendellpiez I suppose we could if we accepted that a single "result" could have many observations and/or risks.

I also see risk if we change "results" to "result", then change "results_group" to "results" because for people who have already implemented, we aren't eliminating "results" we are re-purposing it. So I'd rather change "results_group" to "results-group", but am open to feedback as to whether this concern is unfounded.

@wendellpiez
Copy link
Contributor

Indeed - after hitting "Comment" yesterday I think I remembered this was at issue. I also think "results" and "result" look very similar, whereas the ideal or perfect grouping name looks enough like the singular name for the relation to be clear, but not so similar that it is confusing. E.g. "properties" as grouping name for "prop". Of the options we have considered so far, I think "results-group" passes this test the best.

@adamb-kpmg
Copy link
Author

adamb-kpmg commented Sep 29, 2020 via email

@brian-ruf
Copy link
Contributor

@adamb-kpmg we are only discussing this change relative to results/results_group, and the standard has been simply the singular/plural (objective/objectives, asset/assets, etc.)

I'm sold. The change will be result/results instead of results/results_group unless someone raises a good reason to do otherwise before I get to the change.

I have a few other syntax tweaks to make and intend to batch them together, as soon as I get a few other work items addressed.

@wendellpiez
Copy link
Contributor

@brianrufgsa I think we can explain in docs that "result" can include multiple findings (observation|risk or as the case may be). This is also evident from their cardinality, but we can spell it out that this is a wrapper for the outcome of an assessment.

As you have also pointed out, there may be house rules governing whether and how risks (and observations) can be grouped. Calling the grouping a single "result" (which enables consolidating all the features common to a group of risks, say) may actually help with that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closable model-refactor Used to mark issues related to model refactoring for the Metaschema v4 transition. question
Projects
None yet
Development

No branches or pull requests

4 participants