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

feat(component): Add location & role to test data #35

Merged
merged 1 commit into from
Mar 23, 2023

Conversation

tuckerzp
Copy link
Contributor

This updates the Test component to contain locations and roles
for testing our viewer & editor.

This updates the `Test component` to contain locations and roles
for testing our viewer & editor.
tuckerzp added a commit to EasyDynamics/oscal-editor-deployment that referenced this pull request Mar 22, 2023
To avoid regression after EasyDynamics/oscal-react-library#728
is merged in, this tests that locations and roles display properly.

It will require changes from EasyDynamics/oscal-demo-content#35
for the tests to pass.
@tuckerzp tuckerzp linked an issue Mar 22, 2023 that may be closed by this pull request
2 tasks
@tuckerzp tuckerzp requested a review from kylelaker March 23, 2023 12:04
@kylelaker
Copy link
Contributor

What did you actually change? The diff is a mess here.

Comment on lines +9 to +37
"roles" : [ {
"id" : "creator",
"title" : "Document creator",
"short-name" : "creator",
"description" : "Creates documents describing the system"
}, {
"id" : "contact",
"title" : "Contact"
} ],
"locations" : [ {
"uuid" : "54e8923b-56d2-46f1-bb97-9c6f734d9d9e",
"title" : "NIST",
"address" : {
"addr-lines" : [ "100 Bureau Drive", "Mail Stop 8970" ],
"city" : "Gaithersburg",
"state" : "MD",
"postal-code" : "20899-8970"
},
"email-addresses" : [ "itl_inquiries@nist.gov" ],
"telephone-numbers" : [ {
"type" : "office",
"number" : "301-975-8616"
} ],
"urls" : [ "https://www.nist.gov/", "https://www.nist.gov/itl/ssd/contact-us" ],
"remarks" : "Working with industry and academia to enhance economic security and improve our quality of life."
}, {
"uuid" : "6c01ae87-5410-41af-87cd-3253dd7ccfc7",
"address" : { }
} ],
Copy link
Contributor Author

@tuckerzp tuckerzp Mar 23, 2023

Choose a reason for hiding this comment

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

What did you actually change? The diff is a mess here.

@kylelaker This is actual change. Saving it in the Editor changed the formatting.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For roles, I added a short-name & description to Document Creator.

There was previously no locations.

@kylelaker kylelaker changed the base branch from main to test-content March 23, 2023 19:57
@kylelaker kylelaker merged commit d06a09e into test-content Mar 23, 2023
@kylelaker kylelaker deleted the tuckerzp/add-locations-and-roles branch March 23, 2023 19:57
kylelaker pushed a commit to EasyDynamics/oscal-editor-deployment that referenced this pull request Mar 23, 2023
To avoid regression after EasyDynamics/oscal-react-library#728
is merged in, this tests that locations and roles display properly.

It will require changes from EasyDynamics/oscal-demo-content#35
for the tests to pass.
kylelaker added a commit to EasyDynamics/oscal-editor-deployment that referenced this pull request Mar 23, 2023
To avoid regression after
EasyDynamics/oscal-react-library#728
is merged in, this tests that locations and roles display properly.

It will require changes from
EasyDynamics/oscal-demo-content#35
for the tests to pass.

---------

Co-authored-by: Kyle Laker <klaker@easydynamics.com>
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.

Support viewing metadata locations
2 participants