cvisionai / tator

Video analytics web platform
https://tator.io
GNU Affero General Public License v3.0
101 stars 34 forks source link

Filtered corrections view skips localizations after editing #1564

Open jrtcppv opened 6 months ago

jrtcppv commented 6 months ago

If a filter is applied in the corrections view, and edits are made which cause localizations to not pass the filter, going to the next page will cause localizations to be skipped, as they are now shown on the previous page.

Proposed solution:

One weakness of the approach is that simultaneous modifications to the same dataset by a different user could result in incorrect data being displayed. The most technically correct approach would be to simply soft reload the current page after a bulk edit is made and not display zombie localizations, but I understand this is not desired behavior.

bctcvai commented 6 months ago

Keeping the cards that no longer 'belong' off to the side might be worth exploring. It probably simplifies the complexity of internal data storage and provides a helpful visualization for how many edits someone has done. It is similar to dealing with a deck of playing cards and putting some "off to the side".

jrtcppv commented 6 months ago

Side note - this solution could be applied to bulk editing of media as well on the project detail view (which currently has the same behavior).

marktaipan-cvisionai commented 6 months ago

Is desired behavior to not lose one's place while paginating through? I can understand it from this example QA/QC workflow - a user is going through a list of localizations to review that's filtered with Needs Review == true, and updates that flag to false. Are there other workflows to consider?

If the user wants to update a list as they go, but not get lost with where they are in the pages, it may be helpful to have other visual cues to keep track of where they are. One was mentioned here by keeping a list of localizations that have been updated (could get unwieldy really quick). Another method could be a queue-like UI and force the user through a list / acknowledging entities have been reviewed, and soft reloads can happen but the user won't lose their spot.

In light of this issue, I would at least recommend removing the ability to edit in localization gallery and only through the corrections gallery. Or, supporting the ability to detect if the attribute edits would change the filter and warn the user.

jrtcppv commented 6 months ago

Need two indicators on cards:

jrtcppv commented 6 months ago

We can implement the suggestions in #770.