Skip to content
This repository has been archived by the owner on Feb 28, 2019. It is now read-only.

Rule orders change on refresh in the UI #45

Open
xichen2020 opened this issue Dec 21, 2017 · 0 comments
Open

Rule orders change on refresh in the UI #45

xichen2020 opened this issue Dec 21, 2017 · 0 comments
Assignees

Comments

@xichen2020
Copy link
Contributor

When the UI is refreshed, the ordering of the rules in a namespace changes. This is because the rules are stored in a map, whose iteration order is nondeterministic in Go. This can be fixed by copying them to a slice and sorting them before sending them back to the frontend.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants