-
Notifications
You must be signed in to change notification settings - Fork 105
Sort Fleet integration policy inputs to ensure consistency #494
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
Sort Fleet integration policy inputs to ensure consistency #494
Conversation
- When new inputs are read from the Fleet API, the list is sorted according to the existing plan. Any new inputs added from the API will be moved to the end of the list. This ensures a consistency of inputs and prevents unnecssary changes from appearing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trying to think of how we could test this, which seems quite tricky. Maybe we could just have a unit test around the sorting logic?
I was thinking the same thing. I originally thought of doing a full acceptance test, but it would be tricky to get that right, and more importantly, keep it right over time. I'll go ahead and write up a unit test. |
* Sort Fleet integration policy inputs to ensure consistency - When new inputs are read from the Fleet API, the list is sorted according to the existing plan. Any new inputs added from the API will be moved to the end of the list. This ensures a consistency of inputs and prevents unnecssary changes from appearing. * Changelog * Extract sort function and add unit test
* Sort Fleet integration policy inputs to ensure consistency - When new inputs are read from the Fleet API, the list is sorted according to the existing plan. Any new inputs added from the API will be moved to the end of the list. This ensures a consistency of inputs and prevents unnecssary changes from appearing. * Changelog * Extract sort function and add unit test
Closes #473