TU-Wien-dataLAB / Grader-Labextension

BSD 3-Clause "New" or "Revised" License
3 stars 1 forks source link

Wrong status of assigments is displayed in overview of assignments #1

Closed lumbric closed 6 months ago

lumbric commented 6 months ago

Describe the bug The status of assignments seems to be wrong in some cases. I will describe one situation here, but I think it is not the only one.

To Reproduce Steps to reproduce the behavior:

  1. Create a new assignment.
  2. Release it (agree + commit).
  3. Go back to overview of assignments: it says "created" (see first screenshot), but it should say "released", right?
  4. Open the assignment and click "undo release"
  5. Go back to overview of assignments: it says "released (see second screenshot), but it should say "created", right?

Expected behavior A clear and concise description of what you expected to happen.

Screenshots Screenshot 1: Screenshot 1

Screenshot 2: Screenshot 2

mpetojevic commented 6 months ago

Hi. It takes a few seconds until status values are updated, try to refresh the page. After "undo release" it should say "pushed" (it also takes a few seconds to update the status value).

Screenshot of a created assignment, released assignment and "undo release": image

lumbric commented 6 months ago

It takes a few seconds until status values are updated, try to refresh the page. After "undo release" it should say "pushed" (it also takes a few seconds to update the status value).

Ah yes, indeed! I was not patient enough. Status seems to be correct after 5-10 seconds and clicking on the item and then going back to the overview.

meffmadd commented 6 months ago

This is an issue with caching. We should implement a reload flag that is passed to the navigate function of react-router when some data has been updated. This flag should then be passed to the data-loading services to bypass the cache and reload the new data.

meffmadd commented 6 months ago

Closing in favor of #27