G4.85 Update Trait Data Validators #85
Labels
Group 2 - Data Importing
Any issue relating to importing of biological data into either Chado or any other database.
Group 4 - API | Services | Plugins
Any issue related to developing an API (i.e. services + plugins)
Milestone
Branch
g4.85-updateTraitDataValidators
Groups
Group 2 - Data Importing, Group 4 - API | Services | Plugins
Dependencies
Describe
This issue is meant to carry on from PR #77 after the discussion documented in issue #82. More specifically, it will update the validators to accept configuration using setters and to return the new return values. This will also involve updating the tests and configuring the validators in the importer formValidate.
This is meant to update the data values validators - ie. ValueInList, EmptyCell & DuplicateTraits
Design
Task 1a
(use the getters)
Currently the validators receive their config via a temporary class property set by load values (see comment #79 (comment)) and then that property is used wholesale in the
validateRow
method. This task is to update the validators to use the setter methods developed in #93 and stop using the context property.Task 1b
(use the setters)
Currently the config is set in the importer configureValidators using the loadAssets. This task is to switch to calling the individual setters developed in #95 .
Task 2
Update the validators to indicate their inputType and remove their scope in the annotation block.
Task 3
Currently the validators return the old style of return value which includes the keys
title
,status
anddetails
. This task is to add the new design keys. We will likely keep the old keys being returned unchanged? but add a comment saying they are deprecated. Essentially,title
becomes more developer friendly and becomes thecase
status
becomes thevalid
key with'fail'
becomingFALSE
and'pass'
becomingTRUE
.details
string (i.e. failed indices or original values) are instead individual elements in afailedIems
array.Here is the design information for the new return value style:
The text was updated successfully, but these errors were encountered: