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

Adding "Disorder" triggers some JS error relating to schema migration I believe #1869

Closed
yarikoptic opened this issue Feb 23, 2024 · 13 comments · Fixed by #1874
Closed

Adding "Disorder" triggers some JS error relating to schema migration I believe #1869

yarikoptic opened this issue Feb 23, 2024 · 13 comments · Fixed by #1874
Assignees
Labels
bug Something isn't working client/meditor Issues with the metadata editor (meditor) metadata Issues of dandiset/asset metadata handling released This issue/pull request has been released. UX Affects usability of the system

Comments

@yarikoptic
Copy link
Member

While testing after

it doesn't happen when I try to add on some other dataset in the main instance (prior schema):
image

I then replicated on another dandiset in staging: https://gui-staging.dandiarchive.org/dandiset/210484?pos=1 so it seems to be a generic issue.

attn @waxlamp to prioritize as might delay our release with new pydantic 2.0 support

@yarikoptic yarikoptic added client/meditor Issues with the metadata editor (meditor) metadata Issues of dandiset/asset metadata handling labels Feb 23, 2024
@mvandenburgh mvandenburgh self-assigned this Feb 26, 2024
@waxlamp waxlamp added bug Something isn't working UX Affects usability of the system labels Feb 26, 2024
@mvandenburgh
Copy link
Contributor

I created a minimal reproducible example by pulling out the "Disorder" subschema into its own JSON Schema and fed that into VJSF by itself, and this issue still occurs. So, this is actually an upstream bug in VJSF. I filed an issue here - koumoul-dev/vuetify-jsonschema-form#427

@mvandenburgh
Copy link
Contributor

Upstream PR that fixes this: koumoul-dev/vuetify-jsonschema-form#428

@yarikoptic
Copy link
Member Author

Thank you @mvandenburgh for a thorough dig! Is there a chance for a workaround (e.g. some way to sanitize data before giving to vjsf) just in case it would take awhile to release it ? (last release seems years back and no recent merge activity)

@satra
Copy link
Member

satra commented Feb 27, 2024

fyi: last release was october - they just tag, and not use github release mechanism.

@mvandenburgh
Copy link
Contributor

Thank you @mvandenburgh for a thorough dig! Is there a chance for a workaround (e.g. some way to sanitize data before giving to vjsf) just in case it would take awhile to release it ? (last release seems years back and no recent merge activity)

I think we could switch the dxdate property back to being non-nullable, although that would require another schema release. But as Satra said, VJSF still has somewhat frequent releases, and we've had success upstreaming fixes in the past so I'm hopeful we can just get this fixed upstream relatively quickly.

@yarikoptic
Copy link
Member Author

ok, let's give them a day or two, but we can't wait indefinitely.

@yarikoptic
Copy link
Member Author

woohoo -- the fix was merged and released now!

@yarikoptic
Copy link
Member Author

confirming that on staging now I can add Disorder without error!

@satra
Copy link
Member

satra commented Feb 28, 2024

does this mean, we should do a release, so we can update the CLI as well?

@yarikoptic
Copy link
Member Author

it means that indeed we could orchestrate releases of both -- both masters are ready AFAIK.

@mvandenburgh
Copy link
Contributor

Merging #1876 will trigger a release of the API. So whenever the associated dandi-cli PR is ready, we can merge both at the same time.

@yarikoptic
Copy link
Member Author

oy, I remembered about our cli-minimal-version, e.g. as I boosted in ce47c88 so we might want to do release with a similar change, WDYT? I think the next dandi-cli release will be 0.60.0

@dandibot
Copy link
Member

🚀 Issue was released in v0.3.77 🚀

@dandibot dandibot added the released This issue/pull request has been released. label Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working client/meditor Issues with the metadata editor (meditor) metadata Issues of dandiset/asset metadata handling released This issue/pull request has been released. UX Affects usability of the system
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants