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

Updating policy sometimes results in outdated assignment data #145

Open
pickjasmine opened this issue Jul 1, 2021 · 1 comment
Open

Comments

@pickjasmine
Copy link
Contributor

Steps to reproduce

  1. Navigate to a policy group that has assignments.
  2. Select a policy that is assigned and edit the policy name.
  3. Navigate back to the policy group with assignments.
  4. See that the policy name is still the old name.

Hard refreshing will force the page to pull the data again. I've tried removing the saved assignment data from state after editing a policy, but SWR will see the same call and reuse its previous data. I've messed around with a couple of the refresh options for SWR, but I haven't had much luck so far.

@pickjasmine
Copy link
Contributor Author

This same issue will happen if you edit a policy to create a new version and navigate back to the assignments. If the policy did not have multiple versions before the initial assignment page load, you will have to hard refresh to see the button that allows you to edit the policy version.

@pickjasmine pickjasmine changed the title Updating policy sometimes results in invalid assignment data Updating policy sometimes results in outdated assignment data Jul 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant