Connected Services Filter (API only) #4339
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
馃敥 Description: What code changed, and why?
[Apps tab] A customer has requested to be able to filter on only connected services. They want to see if all supervisors that are expected to upgrade have indeed upgraded. Their estate includes systems distributed over sometimes unreliable WAN links, which can become disconnected and not expected to update. Therefore it will be helpful to filter out these disconnected systems to show only the connected ones.
This PR implements filtering by
status:connected
when listing services.鉀擄笍 Related Resources
UI Card: #4343
馃憤 Definition of Done
You can filter for only connected services in the Automate API
馃憻 How to Build and Test the Change
At first all the services are connected, so nothing is filtered out. You can see the connected services with something like (adjust the jq query as you like):
After 5 minutes or so, all the services should be disconnected and you won't see them in the above query. At this point, if you re-run
applications_populate_database
you will have a mix of connected and disconnected, which you can see by flipping the filter fromstatus:connected
tostatus:disconnected
.