-
Notifications
You must be signed in to change notification settings - Fork 6
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: experiment library schema changes, ingestion report with errors, json schema warnings #435
base: develop
Are you sure you want to change the base?
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## develop #435 +/- ##
===========================================
- Coverage 88.36% 86.60% -1.77%
===========================================
Files 115 131 +16
Lines 4462 5247 +785
Branches 559 696 +137
===========================================
+ Hits 3943 4544 +601
- Misses 371 521 +150
- Partials 148 182 +34 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some notes
++ if we don't want to bother preserving backwards compatibility, we could just save this for katsu 5.0.0 instead
Ingestion report
The ingestion endpoint now returns an "ingestion report" in the response's JSON, with shape:
Where,
success
indicates if the ingestion was successful (now http status 201, was 204)errors
lists the errors that were caught during ingestion, causing a failed ingestionwarnings
lists custom warnings related to schema changes.Ingestion WDLs
Schema Changes
Katsu can now keep track of JSON-schema modifications in a release.
The schema changes objects are used to perform data migrations in Django, they also allow the ingestion view to compile warnings if deprecated properties are found in the submitted data.
EBI experiment schema
library_strategy
andlibrary_selection
values are read from the file and used in the schema