PhenoApps / Field-Book

https://fieldbook.phenoapps.org
GNU General Public License v2.0
47 stars 55 forks source link

[BUG]: Data grid selected cell jumps several traits when returning to data grid from collect #743

Open ANBassett opened 9 months ago

ANBassett commented 9 months ago

Description

When selecting a cell in the data grid for a field, the data collection screen for that plot and trait is shown. When returning to the data grid, the selected cell upon return is several cells to the right of what was initially selected. No settings appear to affect this behavior.

This problem began after importing a database export to recover lost data. Initially, the cell selection skipped two cells to the right. Additional database imports have increased the amount of cells that are skipped over when returning from collect to the data grid.

I have deleted the database and imported a backup to see whether that fixed the issue, and it did not. I have not uninstalled and reinstalled Field Book, but I did try to import the database into a fresh install on a separate device. That import was unsuccessful so I could not test the issue there.

This issue makes it cumbersome to keep track of trait collection progress/scroll to desired cell when traits are collected for different plots at different times.

Ex: Initial cell selection image

Collection screen image

Return to data grid image

Expected behavior

I expect that when selecting a cell and collecting data, upon return to the data grid the same cell that was selected should remain selected if no navigation occurred via the collect screen

Field Book version

5.513

trife commented 9 months ago

@ANBassett That's strange behavior that I'm unfortunately not able to recreate at the moment. We're working on updating datagrid to address some of these and some other limitations and will work on fixing this as part of that upgrade.

ANBassett commented 9 months ago

Thanks! I appreciate you looking into it.