TFDN-1107 add sort option for agent list and agent pool list #1229
+30
−0
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
A sort param was added to the agent-pool list a while back but was never added here. I am adding it now. I am also adding the recently added agent list sort option. There is an issue with the CreateAgent helper used int he agent list integration tests so I have not added an integration test for the agent sort option. There is a ticket to debug this helper in our backlog and once that ticket is in flight the test will be added. If you are not comfortable with us adding this option without a test here, let me know and I can just remove that line but I would like to at least get the agent pool option in.
External links
Here is a link to the Draft PR with the broken test helper for reference: #1193
Here is a link to the ticket for the follow up work on investigating these broken tests: https://hashicorp.atlassian.net/browse/TFDN-1240