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

Bump hed-validator dependency to v3.9.0 #1685

Merged
merged 6 commits into from
Jun 29, 2023

Conversation

happy5214
Copy link
Collaborator

This version bundles the SCORE library schema and includes support for Onset and Offset tag validation.

@sappelhoff
Copy link
Member

Thanks, the failure in the githubPagesTest seems to be related to HED, at first glance.

@happy5214
Copy link
Collaborator Author

It doesn't seem to like the instance variable declarations. Do you have a solution that doesn't involve a complete rewrite of the hed-validator classes? (Honestly, I'd rather learn TypeScript and rewrite the whole codebase in that than strip the classes of their instance variable declarations.)

@sappelhoff sappelhoff requested review from nellh and rwblair June 15, 2023 13:47
@rwblair
Copy link
Member

rwblair commented Jun 15, 2023

I may be able to fix this by upgrading the nextjs dependency for the site. Will push to this PR when I get something that works.

@sappelhoff
Copy link
Member

I may be able to fix this by upgrading the nextjs dependency for the site. Will push to this PR when I get something that works.

is that related to

?

@VisLab
Copy link
Member

VisLab commented Jun 28, 2023

We'd really appreciate some help on this -- v 3.10.0 of the hed-validator has just been released -- supported partnered schema and there are some other key updates. Thanks!

@happy5214
Copy link
Collaborator Author

I just pushed an update to the package.json and package-lock.json to the PR.

@sappelhoff
Copy link
Member

cc @nellh @rwblair

@codecov
Copy link

codecov bot commented Jun 28, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (08f7c8d) 83.33% compared to head (fdde6c9) 83.33%.

❗ Current head fdde6c9 differs from pull request most recent head 280e6ab. Consider uploading reports for the commit 280e6ab to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1685   +/-   ##
=======================================
  Coverage   83.33%   83.33%           
=======================================
  Files          92       92           
  Lines        3799     3799           
  Branches     1171     1171           
=======================================
  Hits         3166     3166           
  Misses        535      535           
  Partials       98       98           

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@rwblair
Copy link
Member

rwblair commented Jun 28, 2023

I haven't been able to figure out why exactly the web build is broken. Once I clear away any commonjs directories that webpack is finding the web build errors become about babel plugins not being importable from parts of the validator code.

I have a partially working commit with nextjs upgraded, which requires webpack5. It also requires an upgraded react which requires some of our components to be fixed. I'm seeing this web build work ok in firefox but not in chrome:
https://github.com/rwblair/bids-validator/tree/bump-hed-validator-3.9.0

There are issues with the module reload used by nextjs. It doesn't play well with workspaces, its trying to load module.hot from bids-validator which isn't usable in the browser, but it also doesn't know to use import.meta.webpackHot instead which is provided. (And if we aren't going to have hot reloading of the validator in the web dev server maybe we should just switch to vite, with module reloading being the sticking point there.)

@rwblair
Copy link
Member

rwblair commented Jun 29, 2023

@happy5214 @VisLab With the help of @nellh we got the web builds upgraded and working, along with the new hed-validator. Thank you for your patience.

@rwblair rwblair merged commit 0acd109 into bids-standard:master Jun 29, 2023
16 of 22 checks passed
@VisLab
Copy link
Member

VisLab commented Jun 29, 2023 via email

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.

5 participants