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

Profile resolution working #559

Closed

Conversation

wendellpiez
Copy link
Contributor

Committer Notes

WIP for Profile resolution, including specification and examples.

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:

  • Have you added an explanation of what your changes do and why you'd like us to include them? Yes, although there is more to do
  • Have you written new tests for your core changes, as applicable?
  • Have you included examples of how to use your new feature(s)?
  • Have you updated all OSCAL website and readme documentation affected by the changes you made? Changes to the OSCAL website can be made in the docs/content directory of your branch. Pending

@wendellpiez wendellpiez mentioned this pull request Dec 6, 2019
4 tasks
Copy link
Contributor

@bradh bradh left a comment

Choose a reason for hiding this comment

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

Just a few random comments based on a first-pass look.

@@ -0,0 +1,5 @@
--- docs/themes/uswds
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't think you want this file.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@david-waltermire-nist is this in the way?


* XML authoring using raw tags or alternatively, in a structured editing environment with outlining, layout, formatting and UI widgets
* One-button production of a self-contained HTML file for preview in a browser
* Another button for production of a version for the web site (targeting NIST/USWDS/Hugo - in development
Copy link
Contributor

Choose a reason for hiding this comment

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

Closing bracket missing.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Superseded --

<p>A valid catalog must have <tgt>metadata</tgt> in addition to controls and control groups.
Additionally it may have <tgt>back-matter</tgt>. How to produce and populate the
<tgt>metadata</tgt> and <tgt>back-matter</tgt> is described below
<revisit>link me</revisit>, as is the construction
Copy link
Contributor

Choose a reason for hiding this comment

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

TODO.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

More work on the spec is in order: this is pretty soft.

* One-button production of a self-contained HTML file for preview in a browser
* Another button for production of a version for the web site (targeting NIST/USWDS/Hugo - in development
* Schematron support for ad-hoc rules
* Lightweight tagging is an HTML core plus a little healthy XML goodness for a few specification-oriented semantics
Copy link
Contributor

Choose a reason for hiding this comment

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

The meaning of this line isn't very clear. Is more about the implementation than the capability?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Superseded


So far, the Schematron performs only one test: it complains if the section numbering goes too deep.

The RNC schema does introduce ID/IDREF relations, which oXygen exploits
Copy link
Contributor

Choose a reason for hiding this comment

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

Add "." at the end, otherwise it looks like the file might just have been chopped off.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Superseded


Things to sketch out and test:

Import with no include - implicit all
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you already have this as an example?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is now in the experimental pipeline with clearer docs.

<title>ABC Catalog</title>
<last-modified>2019-11-01T10:16:22.939-04:00</last-modified>
<version>1.0</version>
<oscal-version>1.0-MR2</oscal-version>
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we used 1.0.0-milestone2 in existing examples.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay.

P --> import3[Selection]
import3 --> catalog.B[CPG from Catalog B]

CPG is "controls, parameters and groups" remember parameters can be loose
Copy link
Contributor

Choose a reason for hiding this comment

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

"loose" probably needs extra explanation or cross-reference.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay.

@anweiss
Copy link
Contributor

anweiss commented Dec 9, 2019

@wendellpiez is it worth maybe including in the output catalog a reference to the profile(s) from which the catalog itself was resolved? ... i.e. a circular ref ... profile(s) > catalog (which has ref to profile(s) from which it was resolved). Otherwise, it's difficult to tell which profile(s) that a particular catalog was resolved from.

@wendellpiez wendellpiez force-pushed the profile-resolution-ng-repaired branch from 918d284 to 2fccd6a Compare January 7, 2020 15:52
These are selective imports from the catalogs/abc-simple_catalog.xml, essentially identical except for how the
catalog is referenced.
…le (#16)

This is basically the entire catalog, except for the a1 profile.

The change adds the parent groups, and the children of c1.
This is essentially the same as the catalog, and adds the parent
groups to the existing result.
This adds the parent group, missing params and parts of the control.
This is basically the same as the catalog, less the children on c1
Adds the parent group and title, and missing control c3.a-1
These are essentially identical, since keep is the default.
david-waltermire pushed a commit to david-waltermire/OSCAL that referenced this pull request Feb 7, 2020
@david-waltermire
Copy link
Contributor

This will be addressed by PR #624, where the commits from this PR have been rebased. Closing this PR as a result.

david-waltermire pushed a commit to david-waltermire/OSCAL that referenced this pull request Mar 17, 2020
david-waltermire pushed a commit that referenced this pull request Mar 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants