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

Save metadata with a warning for possible invalid units #1338

Merged

Conversation

Junjiequan
Copy link
Member

@Junjiequan Junjiequan commented Dec 4, 2023

Description

Allow users to save units that can not be recognized by the math-js library.
Added a warning message for invalid unit, so that the user aware that the current unit will not be converted.

Motivation

Some units are missing in the math-js library and thus cannot be converted. We want to allow users to save those unrecognized units as well.

Fixes:

image image

Changes:

  • changes made

Tests included/Docs Updated?

  • Included for each change/fix?
  • Passing? (Merge will not be approved unless this is checked)
  • Docs updated?
  • New packages used/requires npm install?
  • Toggle added for new features?
  • Requires update of SciCat backend API?

@Junjiequan Junjiequan changed the title new commit needed for creating pull request. Save metadata with a warning for possible invalid units Dec 4, 2023
@Junjiequan Junjiequan merged commit ac6196d into master Dec 5, 2023
5 checks passed
@Junjiequan Junjiequan deleted the SWAP-3636-scicat-scientific-metadata-units-frontend-improve branch December 5, 2023 14:07
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.

3 participants