galasa-dev / projectmanagement

Project Management repo for Issues and ZenHub
7 stars 4 forks source link

Query runs by the user id who launched it. #2032

Open techcobweb opened 1 week ago

techcobweb commented 1 week ago

Story

As a galasa user I want to query all the runs launched by a particular user, so that I can filter runs returned easily.

Background

SearchGroupId - Passing in a userid and optionally start date / end date and returns all group ids for that user.

Change the runs get logic to accept a userid, to filter the results further. It would work in conjunction with the --age parameter and would return all the runs for that user within the age time-envelope.

For example:

galasactl runs get --requestor xxx --age 7d

We already support this. So maybe we don't need to do anything ?

adamcoulthard commented 4 days ago

Yep this would be very useful. The interesting thing on top of this is that there is no way currently to list all users in the system. It would be helpful to be able to get a list of users who have run tests to aid this Rest API.