Filter deployments by date on the Environment detail page
Problem
Customers using GitLab for deploying to environments can view the history of those in the Deployments -> Environments UI. It appears that the history is retained indefinitely. However, when an environments history is so large with 100's or 1000's of deployments, it is very difficult for users to go back through the history to review particular deployments, or commits, etc. This feature proposal is to add search, filter, and sort capabilities to the Environments history UI where:
- one can search based on keywords like the Status, ID, Triggerer, Commit, Job, Created, and Deployed columns
- one can filter based any of the columns in the previous bullets above
- one can sort in ascending or descending order for each of the columns in the environment history UI
- one can exclude items from being searched, for example, exclude items with the word "Snapshot" or any other string that one would want to exclude from the list.
Proposal:
For MVC, we add a calendar sort that allows users to select a date range and see deployments within that date range.
Proposal |
---|
Technical Proposal
The picker would be added in app/assets/javascripts/environments/environment_details/index.vue
, passing the values selected to the environmentDetailsQuery
in app/assets/javascripts/environments/graphql/queries/environment_details.query.graphql
When the filters change, page info/url should be cleared, as changing the filter invalidates the page info.
Sorting by date created_at
or finished_at
is already supported via DeploymentsOrderByInputType
in app/graphql/types/deployments_order_by_input_type.rb
, so we add filters to these dates as well, like finished_after
and finished_before
.