Skip to content
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

G4.86 Update Trait Importer formValidate to use new return value style. #86

Closed
laceysanderson opened this issue Jun 26, 2024 · 1 comment
Assignees
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)

Comments

@laceysanderson
Copy link
Member

laceysanderson commented Jun 26, 2024

Branch

g4.86-updateReturnValue

Groups

Group 2 - Data Importing, Group 4 - API | Services | Plugins

Dependencies

Describe

This issue is to update the current infrastructure to use the new return values format. This is dependant on Issue #85 being complete.

Design

Task 1

Update the old style validators to return both the old style return value and the new style return value. Do not worry about updating the tests for these validators as they are deprecated. Essentially,

  • the title becomes more developer friendly and becomes the case
  • the status becomes the valid key with 'fail' becoming FALSE and 'pass' becoming TRUE.
  • the items appending into the details string (i.e. failed indices or original values) are instead individual elements in a failedIems array.

Here is the design information for the new return value style:

  • 'case': a developer focused string describing the case checked
  • 'valid': either TRUE or FALSE depending on if the data is valid or not
  • 'failedItems': an array of "items" to be used in the message to the user. This is empty if the data was valid

Task 2

Update the trait importer formValidate to use the new return value style and ignore the old one. Update any import tests with this in mind.

@laceysanderson laceysanderson changed the title G4.[issueNo] Update Trait Importer formValidate to use new return value style. G4.86 Update Trait Importer formValidate to use new return value style. Jun 26, 2024
@laceysanderson laceysanderson added 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) labels Jun 26, 2024
@laceysanderson
Copy link
Member Author

Task 1 is no longer needed due to changes in the timeline. Specifically, we are just getting to this issue much later then expected and the new validators are basically ready so it doesn't make sense to update the old ones.

Task 2 has been moved into issue #90.

As such I'm closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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)
Projects
None yet
Development

No branches or pull requests

2 participants