-
Notifications
You must be signed in to change notification settings - Fork 0
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
Scheme Label Editor & Reference Datatype Widget #169
base: main
Are you sure you want to change the base?
Conversation
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.
Looks good! Just some pretty minor stuff -- happy to chat about about any of it
arches_lingo/src/arches_lingo/components/generic/LabelEditor.vue
Outdated
Show resolved
Hide resolved
arches_lingo/src/arches_lingo/components/generic/LabelEditor.vue
Outdated
Show resolved
Hide resolved
arches_lingo/src/arches_lingo/components/generic/LabelEditor.vue
Outdated
Show resolved
Hide resolved
onMounted(async () => { | ||
const [languageOpts, typeOpts, statusOpts, metatypeOpts, eventTypeOpts] = | ||
await Promise.all([ |
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.
this is fine and I'm not blocking on it, but it still may hammer db depending on what the endpoint is doing. Happy to punt though
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.
Yeah, let's measure this before we prematurely optimize -- we can always switch to the endpoint that returns all lists and then filter on the frontend.
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.
Switching to that endpoint may be helpful in avoiding hard-coded list id's because there is graph/node info... I just started working with this endpoint because I was wary of passing around the entire CLM
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.
sweet!
arches_lingo/src/arches_lingo/components/generic/reference-datatype/ReferenceDatatypeEditor.vue
Outdated
Show resolved
Hide resolved
arches_lingo/src/arches_lingo/components/generic/reference-datatype/ReferenceDatatypeEditor.vue
Outdated
Show resolved
Hide resolved
arches_lingo/src/arches_lingo/components/generic/reference-datatype/ReferenceDatatypeEditor.vue
Outdated
Show resolved
Hide resolved
arches_lingo/src/arches_lingo/components/generic/reference-datatype/ReferenceDatatypeEditor.vue
Outdated
Show resolved
Hide resolved
@@ -28,3 +28,10 @@ export const ENGLISH = { | |||
name: "English", | |||
scope: "system", | |||
}; | |||
|
|||
export const LANGUAGE_CONTROLLED_LIST = "55ce793b-a51a-4b25-811d-d08ea797f8c3"; |
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.
IMO hardcoding URIs on the frontend isn't a preferred pattern. Is there a way to get these supplied by the backend? If not or if it becomes super complex then okay, but IMO this pattern should be avoided if possible.
3f68847
to
fa5dc08
Compare
10b4718
to
7e3d631
Compare
Resolves #147