Intercropping: Multiple Accessions per Plot#5949
Open
Conversation
Add intercrop_accession_name column to add intercropped accessions to plots Associate intercropped accessions with plots using the 'intercrop_plot_of' stock relationship
…topic/intercropping
Add option to include intercrop stock columns in phenotype data downloads from the trial detail page and search wizard
… download using lists tool
…ions also include all synonyms instead of just one
…_multiple_accessions_per_plot
…ate traits definition
return each Accession only once, aggregating their relationship types
… to accession response
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.
Description
This adds intercropping support by allowing multiple accessions to be associated with a single plot
Basically, this allows additional Accessions to be linked to plots using a new
intercrop_plot_ofstock relationship type in addition to the usual 1:1 link with theplot_ofrelationship type. The changes allow for any number ofintercrop_plot_ofstock relationships to be made while maintaining the assumption that only oneplot_ofrelationship exists.DB Patches:
intercrop_plot_ofstock relationship typematerialized_phenoviewmatview to include intercrop accessions (DB Patch Diff) - this uses the newer/correct traits matview definition from fix the traits view again. #5910materialized_phenotype_jsonb_tablematview to include intercrop accessions (DB Patch Diff)Changes:
intercrop_accession_namewhich allows additional Accessions to be associated with a plot. This can be a comma-separated list or the column can be included more than once to allow for more than one intercropped accessions.intercropGermplasmDbIdandintercropGermplasmNamecolumns that include the ID and name of the intercropped accessions (comma-separated if more than one)Future Work:
Fixes #5308, Fixes #4690
Checklist
/t/data/fixture/patches/./docshas been updated./jsto/js/source/legacy.