feat: experiment library schema changes, ingestion report with errors, json schema warnings#435
Open
v-rocheleau wants to merge 26 commits into
Open
feat: experiment library schema changes, ingestion report with errors, json schema warnings#435v-rocheleau wants to merge 26 commits into
v-rocheleau wants to merge 26 commits into
Conversation
davidlougheed
requested changes
Sep 14, 2023
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. |
davidlougheed
requested changes
Sep 15, 2023
davidlougheed
requested changes
Sep 20, 2023
Member
davidlougheed
left a comment
There was a problem hiding this comment.
some notes
++ if we don't want to bother preserving backwards compatibility, we could just save this for katsu 5.0.0 instead
Member
|
two years out of date - I'm closing this. |
Member
|
actually nevermind, some of this might still be needed for genovalia - re-opening haha |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ingestion report
The ingestion endpoint now returns an "ingestion report" in the response's JSON, with shape:
{ "success": true, "errors": [], "warnings": [] }Where,
successindicates if the ingestion was successful (now http status 201, was 204)errorslists the errors that were caught during ingestion, causing a failed ingestionwarningslists 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_strategyandlibrary_selectionvalues are read from the file and used in the schema