• Yorick Peterse's avatar
    Filtering of merge requests by deployments data · 46aa4e91
    Yorick Peterse authored
    This adds support for filtering merge requests by the environment name
    and deployment times, in addition to the existing support of filtering
    merge requests by a deployment ID. This means you can now get merge
    requests that match an environment name, deployment ID, or are deployed
    before/after a given date and time. These filters can be combined as
    well.
    
    Filtering merge requests by deployments data makes it easy to see what
    has been deployed, and when. In addition, you can apply all the other
    merge requests filters such as a list of labels to filter by.
    
    This new feature is hidden behind the "deployment_filters" feature flag,
    which is disabled by default. This feature flag is a global flag. Merge
    requests can be retrieved for both projects and groups, making it
    difficult to determine what to scope the feature flag to. So we take the
    easy way: it's either enabled for all, or disabled for all. For
    something as simple as a few additional filters this should not pose any
    problems.
    
    See https://gitlab.com/gitlab-com/gl-infra/delivery/-/issues/1246 for
    more information.
    46aa4e91
merge_requests_finder_spec.rb 25.8 KB