Batch Edit: Support for editing basic fields#5417
Conversation
POTENTIAL IMPROVEMENTS?
|
|
Nice observation. My fault for keeping a hidden feature secret: Another, use for data mapper is to control “ignore when blank”-type behavior per field basis. That’s actually supported in that PR ( even for batch edit data mapper, you can modify this per-field setting. Ask grant for more context ) the only things not read only are
search for usages of “readonlyspec”. For purposes of this PR, you can theoretically not add data mapper (you also don’t need batch edit prefs, they don’t do anything when there are no relationships) |
combs-a
left a comment
There was a problem hiding this comment.
@sharadsw I've tried to recreate my issue again a few times, and wasn't able to as well--it should be kept in mind, but it might've just been something very specific.
- Verify changed values are highlighted as updated cells
- Re-run the original query and verify the values changed as expected
- Verify values were rolled back to original
Regression tests
- Retest #5489
LatLon has been kind of fixed, but there are also potentially integers; ints are being converted to floats and that marks them as updated cells when they shouldn't be.
Also, I tried out COs that use COTs with the AlphaNumByYear type, and batch edit flagged the correct format as invalid, and incorrect formats as valid. Is fixing this within the scope of the PR? Wanted to check since the same thing works fine in the Workbench.
The incorrect format is AAAAAA, which was the default catno format before I changed it for FunnyTurtles.
|
@combs-a Catalog number validation is broken because relationships are disabled and so the value gets validated with the collection's default formatter. I created a new issue for it (#6248) but it will be fixed when relationships are enabled in #6126 About the lat/long issue, I'm not sure how we can reliably handle all cases there. The underlying cause for that row being updated is the issue Vinny mentioned where We could potentially parse the values similar to the frontend so that any integer values pretending to be floats get converted to integers (ie. Another potential solution could be to have comments on the cell in the frontend when lat/long text values update indicating the reason behind the row being shown as updated. Similar to how we have comments on validation error cells. Unfortunately, we don't have a way to do that right now but could be considered in future. Either way I have created a separate issue for the underlying cause which will have to be looked at in a later milestone #6251 |
Triggered by 38a632d on branch refs/heads/issue-5413
combs-a
left a comment
There was a problem hiding this comment.
- Verify changed values are highlighted as updated cells
- Re-run the original query and verify the values changed as expected
- Verify values were rolled back to original
Regression tests
- Retest #5489
All tests passed, good work!
emenslin
left a comment
There was a problem hiding this comment.
- Verify changed values are highlighted as updated cells
- Re-run the original query and verify the values changed as expected
- Verify values were rolled back to original
- Retest #5489
I didn't run into any new issues but since this is such a big PR I would like if we could get another testing review just to make sure nothing was missed.
lexiclevenger
left a comment
There was a problem hiding this comment.
- Verify changed values are highlighted as updated cells
- Re-run the original query and verify the values changed as expected
- Verify values were rolled back to original
Regression tests
- Retest #5489
Looks good, nice job!
|
This pull request has been mentioned on Specify Community Forum. There might be relevant details there: https://discourse.specifysoftware.org/t/specify-7-10-2-release-announcement/2455/1 |



Fixes #5413
Fixes #6209
Uses code from #4929
This PR pretty much has the same code as #4929 but updated to production. To minimize the scope for testing, batch edit for relationships is disabled in this PR and will be enabled in the follow up PR - batch edit for relationships. There are still some merge conflicts resulting from some newer code in prod which will be resolved in the next PR.
Batch Edit Workflow
Updated Cellif its a simple fieldPermissions
Only users with the Batch Edit permissions are allowed to Batch Edit on a query. For other users, the Batch Edit button will not be visible in the query results
Behaviors
Updated CellChecklist
and self-explanatory (or properly documented)
Testing instructions
Regression tests