-
Notifications
You must be signed in to change notification settings - Fork 36
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
Batch Edit: Use scoped picklist for formatting in batch edit #6344
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Verify picklist titles are being used



- General test picklists in Batch Edit with other tables

- General test picklists in Workbench

I also want to comment on an existing behavior that came up during testing but already exists. If if you save a mapping, proceed to the data set interface, then later go back to data mapper and change fields and/or the base table, the column titles reflect the initial fields mapped to the columns in the data mapper and data set. However, validation still catches "illegal" pick list values and reflects the updated options so this seems like a front end only discrepancy.
Nice work! 😎
From #6339 (comment) by @sharadsw Yeah, not sure the best way to handle this would be? If we want to keep PickLists scoped at the Collection level, our options are pretty limited. If this is something we want to address, I imagine we could maybe try:
To demonstrate/document the current behavior (in the QB as well, which was fixes as well with this change), I have two Collections in the same Discipline: The
A Query from the Fish Collection ![]() A Query from the Fish2 Collection ![]() Initiating a Batch Edit from the Fish Collection fish_collection_batch_edit.movThis example is relatively tame - and probably the most common- compared to what is possible (and technically valid) in Specify. Imagine a case where one or more PickLists across Collections have different types! For Example, one of the Collection's AccessionType PickList could instead be of type The current solution is simple (albeit while being very restrictive in some cases), so definitely worth talking about changing (the design + implementation of PickLists from Specify 6) in the future! |
From #6344 (review) by @bronwyncombs Yeah, I'm pretty sure the intention of the feature is actually to be helpful and not override any user-specified column names, but it oftentimes falls short in some cases --- especially in a testing environment when the data within Data Sets (and particularly the "type" of data within each column) is variable. Imagine you are given or have created a spreadsheet representing some Specify-external data of specimens. You would theoretically be very familiar and comfortable with exactly what each column is is supposed to represent by name alone. The core assumption is that the user-provided spreadsheet column names would be more comfortable and familiar than the autogenerated Specify mapping. When you explicitly add a new column to a Data Set and map it to a field in Specify, Specify always knows that specific column is brand-new and so it autogenerates a name for the column based on the mapping. You're right in that it's a visual-only discrepancy/effect (the column names), and doesn't actually affect how the data is validated and processed. @specify/ux-testing @bronwyncombs From the problem, I can think of two potential solutions, both of which could potentially be implemented:
|
Fixes #6339
Notes in #6339 (comment)
Checklist
self-explanatory (or properly documented)
Testing instructions
ojsmnh
use collection Fossil Invertebrates