Fields move record_id_term to parent class #1889
Merged
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.
Tripal 4 Core Dev Task
Closes #1879
Tripal Version: 4.x
Description
We have a hardcoded
$record_id_term = 'SIO:000729';in most fields.This moves this to the parent
ChadoFieldItemBaseclass.Three fields weren't consistent so they now also use this term, they can get extra careful code review 😼
ChadoSourceDataTypeDefault
ChadoUnitTypeDefault
ChadoSequenceCoordinatesDefault
Testing?
Automated testing will test some of this. But I suppose ideally we need to create at least one instance of every field type. Importing all of the field type collections should do this.
To test these three fields, create an organism and analysis.
The analysis will test the source data field.
Run the GFF3 importer. I used this file for testing from issue #1824
issue1824.gff3.txt
Publish gene
Check the sequence coordinates field, should be
NC_001133.9:1806..2169-Create a genetic map to test the unit field.