-
Notifications
You must be signed in to change notification settings - Fork 18
Iss2389 - Search test runs by user, table can display user, and details view displays user #241
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
Iss2389 - Search test runs by user, table can display user, and details view displays user #241
Conversation
…nd you can search by 'user' Signed-off-by: Jade Carino <[email protected]>
|
Overall PR looks great to me! Just thought I'd reiterate Eamonn's point of if it's possible to decode the user's set of URLs, check if the user parameter is in there, and if not then adding it. If this is possible, it would be great for it to be generalised for any new field made in the future and add that in before the PR goes ahead. I.e. when the saved-queries tab is loaded, decode, look through each of them, check the URL against the defaults and if one of them is missing, then inject it in. A similar functionality must be performed when the "reset to default" button checks the current URL against the constructed URL of the default queries. |
|
Also, one last comment. Might there be a scenario where a user would want to search through only the 'unknown' user kicked off tests? Currently it doesn't seem to be possible to. |
Signed-off-by: Jade Carino <[email protected]>
…n all columns, in case of a new column being added to the Web UI Signed-off-by: Jade Carino <[email protected]>
…as new function now adds them Signed-off-by: Jade Carino <[email protected]>
|
@James-Cocker Thanks for your review and comments. I've now added a function to add the "user" parameter into pre-existing saved queries URLs so that it shows up as a row on the Table Design table. This function checks if any results table columns are missing from the URL and so should work in the same way if we added any more new fields in future. Re your second comment, I am unsure what you mean by searching for an 'unknown' user. The user will default to the same as the 'requestor' if the tester did not attempt to override the user value, so there should never be a test with an unknown user. Hopefully that answers your question. |
|
@jadecarino After some investigating it looks like the the 'user' column was coming up with 'unknown' simply due to the fact i was connecting to my local minikube - so all good from me! |
Why?
For galasa-dev/projectmanagement#2389
Changes
syncResultsTableColumnsWithQueryParamshas been added to the urlEncoder which checks if the saved query URL includesuserin thecolumnsOrderparameter (as this is used to populate the Table Design rows), and if it doesn't, will inject it incolumnsOrderparameter have now been updated to include all results table columns, as these tests will pass through the new functionsyncResultsTableColumnsWithQueryParamsand so must include all table columns