Update input type for Test Plan in ATP #20696
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.
Task name: AzureTestPlanV0
Description: Update input type for Test Plan in ATP
Testing screenshots
Updated info bubble
Valid Test plan id will have test suits list available
Invalid Test plan id will show no results for test suits list and test suite is compulsory input field, this helps in ensuring that we get valid test plan id from UI
Context
We are switching to string input from pickList as of now due to the performance issues faced with current API endpoint. Our plan is to switch to Work Items - APIs, we see 2 challenges currently
WIT API accepting WIQL is POST request (Wiql - Query By Wiql - REST API (Azure DevOps Work Item Tracking) | Microsoft Learn) and in dataSourceBindings, I am not seeing option to add requestBody for the same
First call to above API returns list of ids and we will be making another request to get the titles of test plans as per here - WIQL Reference - Overview
Moreover, we need to have better control on the task UI to achieve this, current structure fetches all available test plan ids first then search happens through them from frontend as user types in the box. Better approach should be calling API as per the edits in string present in input box and returning some number of top results accordingly. I will be looking into achieving the same by custom modifications in pickList input type