Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
lumbric opened this issue Jan 4, 2024 · 4 comments
Closed
Assignees
Labels
bug Something isn't working frontend

Comments

@lumbric
Copy link

lumbric commented Jan 4, 2024

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
Copy link
Contributor

mpetojevic commented Jan 4, 2024

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

@florian-jaeger florian-jaeger added the bug Something isn't working label Jan 5, 2024
@lumbric
Copy link
Author

lumbric commented Jan 5, 2024

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
Copy link
Member

meffmadd commented Jan 8, 2024

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 meffmadd transferred this issue from TU-Wien-dataLAB/grader-service Jan 15, 2024
@meffmadd meffmadd added this to the 0.3.1 milestone Jan 17, 2024
@meffmadd meffmadd self-assigned this Jan 22, 2024
@meffmadd meffmadd removed this from the 0.4.0 milestone Jan 29, 2024
@meffmadd
Copy link
Member

Closing in favor of #27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working frontend
Projects
None yet
Development

No branches or pull requests

4 participants