AllenNeuralDynamics / aind-metadata-entry-js

Metadata entry using javascript
https://metadata-entry.allenneuraldynamics.org
MIT License
1 stars 1 forks source link

Test/ Invalid schema versions causes app to crash #128

Closed helen-m-lin closed 6 months ago

helen-m-lin commented 7 months ago

Describe the bug Sometimes there are test schemas that have versions not exactly in semver format (e.g. a test Acquisition schema may have version 0.6.0a). This is currently identified as an invalid semver and causes the app to crash when the user clicks on that schema type.

To Reproduce [Currently not observed because the test schema was removed.] In the case of a test or invalid schema version in the s3 bucket (e.g. Acquisition 0.6.0a):

  1. Go to https://metadata-entry.allenneuraldynamics-test.org/
  2. Click on 'Select schema' dropdown and select 'acquisition`
  3. Observe that the application crashes and console logs record an error.

Expected behavior Application should not crash. Test/ invalid versions can be filtered.

Screenshots image

Desktop (please complete the following information):

Additional context Add any other context about the problem here.