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

feat: add some structured support for mocking the dataset-metadata endpoint #691

Merged
merged 3 commits into from
Dec 21, 2023

Conversation

joyceyan
Copy link
Contributor

this PR adds some structured support for mocking the dataset-metadata endpoint, so it's a bit easier for people to use a mock response for this in the future.

  1. adds liver.cxg, which is this collection
  2. adds the actual dataset-metadata JSON response from that dataset in prod to server/tests/fixtures/liver_dataset_metadata_response.json
  3. includes documentation for how to use this

additionally, this PR also fixes the API prefix so that local development works.

Copy link

codecov bot commented Dec 21, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (9027420) 0.00% compared to head (72621fa) 77.67%.

Additional details and impacted files
@@            Coverage Diff            @@
##           main     #691       +/-   ##
=========================================
+ Coverage      0   77.67%   +77.67%     
=========================================
  Files         0       88       +88     
  Lines         0     6772     +6772     
=========================================
+ Hits          0     5260     +5260     
- Misses        0     1512     +1512     
Flag Coverage Δ
frontend 77.67% <ø> (?)
javascript 77.67% <ø> (?)
unitTest 77.67% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@atarashansky atarashansky left a comment

Choose a reason for hiding this comment

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

Looks good! Initially got freaked out about the 82 file changes - glad to see it's just a cxg being added, lol.

@joyceyan joyceyan merged commit d95b90d into main Dec 21, 2023
5 checks passed
@joyceyan joyceyan deleted the joyce/mock-dataset-metadata branch December 21, 2023 19:12
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