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

Fix nml upload by providing process browser shim #5987

Merged
merged 2 commits into from
Jan 24, 2022

Conversation

daniel-wer
Copy link
Member

@daniel-wer daniel-wer commented Jan 24, 2022

The saxophone library depends on a library that accesses node's process dependency even when in the browser. Related to the webpack upgrade, since webpack no longer auto-provides these node polyfills.

Unfortunately, the nml parsing tests didn't catch this since they are executed in node. Ideally we could configure ava (or babel?) to simulate a browser environment and not include the node globals 🤔

URL of deployed dev instance (used for testing):

Steps to test:

  • Upload an NML in the frontend

(Please delete unneeded items, merge only when none are left open)

  • Ready for review

@daniel-wer daniel-wer self-assigned this Jan 24, 2022
Copy link
Member

@philippotto philippotto left a comment

Choose a reason for hiding this comment

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

Great fixing 👍 (I didn't test it, since I assume you did a before/after test)

@philippotto
Copy link
Member

Ideally we could configure ava (or babel?) to simulate a browser environment and not include the node globals thinking

Will be tricky probably, since we would also need to run the webpack output in node then to validate the webpack configuration..

@daniel-wer daniel-wer merged commit 4d164d9 into master Jan 24, 2022
@daniel-wer daniel-wer deleted the fix-process-undefined branch January 24, 2022 17:41
hotzenklotz added a commit that referenced this pull request Jan 27, 2022
* 'master' of github.com:scalableminds/webknossos:
  fix positioning of clip button (#5992)
  Honor mappingStatus when requesting to compute meshes ad-hoc (#5982)
  Add UI to globalize incomplete floodfill(s) (#5905)
  Add auto scaling for color layer (#5961)
  Fix placeholder resolutions for anisotropic layers with missing base resolutions (#5983)
  Fix dashboard refresh button behaviour (#5971)
  Update nanoid, trim-off-newlines and node-fetch (#5979)
  Add Arthur’s Alias in Build Notification Script (#5943)
  fix nml upload by providing process browser shim (#5987)
hotzenklotz added a commit that referenced this pull request Feb 3, 2022
…ossos into delete_tree_shortcut

* 'delete_tree_shortcut' of github.com:scalableminds/webknossos:
  Add option to change active segement (#6006)
  ship expanded testdata (#6004)
  Allow Download of Public Annotations While Logged Out (#6001)
  Increase maximum bucket count limit for segmentation layers (#6000)
  Allow cancelling uploads (#5958)
  Store layer visibility with annotation (#5967)
  Fix async volume bugs (#5955)
  fix positioning of clip button (#5992)
  Honor mappingStatus when requesting to compute meshes ad-hoc (#5982)
  Add UI to globalize incomplete floodfill(s) (#5905)
  Add auto scaling for color layer (#5961)
  Fix placeholder resolutions for anisotropic layers with missing base resolutions (#5983)
  Fix dashboard refresh button behaviour (#5971)
  Update nanoid, trim-off-newlines and node-fetch (#5979)
  Add Arthur’s Alias in Build Notification Script (#5943)
  fix nml upload by providing process browser shim (#5987)
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.

2 participants