Open only1chunts opened 5 years ago
If we filter the list of attribute possible for the context, we don't validate the saving of attribute because it becomes impossible to put the wrong attribute as the list is already filtered. We can make that change in the submission wizard, file upload wizard and the files attributes admin.
However, the sample attributes, at this stage sill take free text input for adding attributes. To be consistent, work on this story should changing that free text input into a filter like on file attributes. then this work is really about changing the schema and filtering list of possible attributes depending on the context.
For the schema change, it's better to have two columns, valid_on_file
, and valid_on_sample
that take a boolean type (true or false), it make the filtering code less verbose.
This should also include valid on dataset. There's the forward thinking that it might be worth putting valid on experiment and valid on protocol, but I guess they can be added later if we need them.
On Fri, 13 May 2022, 08:07 Rija Ménagé, @.***> wrote:
For the schema change, it's better to have two columns, valid_on_file, and valid_on_sample that take a boolean type (true or false), it make the filtering code less verbose.
— Reply to this email directly, view it on GitHub https://github.com/gigascience/gigadb-website/issues/274#issuecomment-1125725250, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABOB5GJI6OJADN6UO7LXADLVJX5S5ANCNFSM4GSJNUCQ . You are receiving this because you authored the thread.Message ID: @.***>
This is perhaps a task within the story #422 of Epic #564
user stories
Acceptance criteria
Additional information
Currently the ATTRIBUTES table has attributes for Samples And for Files And for Datasets And for Experiments, we should add a column in the table to show which attributes are to be used in which tables. Some attributes maybe appropriate for multiple tables. This information will be used in submission wizard to reduce the number of attributes to show for samples AND for the file upload tools to allow users to select from a smaller number of attributes. It will also be used to show the help page view of Sample attributes (#272) and file attributes (#1165).
This Story is part of Epic #564
This is for attributes that already exists. Having authors being able to requests new attributes to be added to the system is taken care of in the ticket #1665