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

Scheme Label Editor & Reference Datatype Widget #169

Draft
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

johnatawnclementawn
Copy link
Member

Resolves #147

@johnatawnclementawn johnatawnclementawn linked an issue Dec 31, 2024 that may be closed by this pull request
Copy link
Contributor

@chrabyrd chrabyrd left a 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

onMounted(async () => {
const [languageOpts, typeOpts, statusOpts, metatypeOpts, eventTypeOpts] =
await Promise.all([
Copy link
Contributor

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

Copy link
Member

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.

Copy link
Member Author

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

Copy link
Member

Choose a reason for hiding this comment

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

sweet!

@@ -28,3 +28,10 @@ export const ENGLISH = {
name: "English",
scope: "system",
};

export const LANGUAGE_CONTROLLED_LIST = "55ce793b-a51a-4b25-811d-d08ea797f8c3";
Copy link
Contributor

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.

@aarongundel aarongundel force-pushed the adg/146-scheme-names branch 2 times, most recently from 3f68847 to fa5dc08 Compare January 3, 2025 17:16
Base automatically changed from adg/146-scheme-names to main January 3, 2025 17:16
@johnatawnclementawn johnatawnclementawn force-pushed the jmc/147_scheme_label_editor branch from 10b4718 to 7e3d631 Compare January 3, 2025 20:24
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.

Scheme Labels Form/Editor
3 participants