-
Notifications
You must be signed in to change notification settings - Fork 56
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
[ENG-6419] Share integration #2377
[ENG-6419] Share integration #2377
Conversation
Note: Since this PR is blocking some initial QA efforts, I plan on changing some of the getters in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One question about a place that might stand to be more defensive?
export function getSingleOsfmapValue(osfmapObject: any, propertyPath: string[]) { | ||
return iterOsfmapValues(osfmapObject, propertyPath).next().value; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happens if you use this on something that's not a single value? Does it fail gracefully? Or does typescript help here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should just get the first one, and if there's no @id
or @value
, it should just return undefined
a39b12c
into
CenterForOpenScience:feature/insti-dash-improv
Purpose
Summary of Changes
osfmap/jsonld.ts
with utilities to make getting stuff from SHARE easier and more readableScreenshot(s)
Side Effects
QA Notes