cmu-lib / campi

Computer-Aided Metadata Generation for Photoarchives Initiative
https://doi.org/10.1184/R1/12791807
MIT License
16 stars 0 forks source link

Occasionally toggling photo decision status in sidebar fails to update in interface #118

Closed mdlincoln closed 4 years ago

mdlincoln commented 4 years ago

The API commands being sent are correct, but the interface colors aren't changing to reflect the changed decision. ~Seems to affect related photo decisions.~

to reproduce:

  1. Register a decision on a photo in a drawer
  2. Close it
  3. Reopen it, and then try to toggle the decision again

It will toggle from True to False, but then will appear to stick at false (even though the underlying data are being correctly updated)

mdlincoln commented 4 years ago

The issue may lie in update_grid_state() where it populates the decision list based on an outdated version of the photo's decision state as retrieved from the server