Skip to content
Snippets Groups Projects
  1. Apr 12, 2024
  2. Jan 18, 2024
  3. Nov 08, 2023
  4. Oct 20, 2023
  5. Jul 10, 2023
  6. May 19, 2023
  7. Apr 27, 2023
  8. Mar 17, 2023
  9. Sep 14, 2022
    • Stan Hu's avatar
      Fix 500 error sorting merge requests with approvers by milestone · c5386724
      Stan Hu authored
      When adding a `Approved By` or `Approver` filter and sorting by
      milestone, a 500 error will occur because of a SQL error:
      
      ```
      PG::GroupingError: ERROR:  column "milestones.due_date" must appear in
      the GROUP BY clause or be used in an aggregate function
      ```
      
      This happens because the approval query uses a `GROUP BY` query to
      find merge requests that match all approvers. However, this `GROUP BY`
      query breaks the SQL query since it's expected that
      `milestones.due_date` and `milestones.id` are present in that clause.
      
      We can solve this problem in a few ways:
      
      1. Add the required grouping columns to this query (this commit).
      2. Use a CTE to isolate the query for approvers.
      3. Rewrite the approvers query to avoid the GROUP BY altogether.
      
      The second way appears to work, but there's a risk of running into
      errors due to nested queries. Plus, it does not appear the CTE
      improves performance.
      
      The third way may also be possible, but it would possibly require some
      schema changes or other refactoring.
      
      For now, we can solve this problem by manually adding the required
      grouping columns when approvers are specified.
      
      Relates to #223062
      
      Changelog: fixed
      c5386724
  10. Aug 25, 2022
  11. Feb 14, 2022
    • Phil Hughes's avatar
      Attention attention requested filter · 964d8c1d
      Phil Hughes authored
      Adds a new filter option `Attention requested` that takes a username
      and then filters merge requests that have that user as an assignee
      or reviewer with their attention requested.
      
      Changelog: added
      
      Closes #324854
      964d8c1d
  12. Jan 13, 2022
  13. Nov 26, 2021
  14. Jul 21, 2021
  15. Jul 01, 2021
  16. May 11, 2021
  17. Jan 11, 2021
    • Toon Claes's avatar
      Ensure MergeRequestsFinder uses correct Params · 28a4909c
      Toon Claes authored and Peter Leitzen's avatar Peter Leitzen committed
      Ruby does some weird things when dynamically loading classes. It seems
      in some cases it did not load `MergeRequestsFinder::Params` when it's
      calling `#params_class`. In that case the superclass method is called
      instead.
      
      We discovered this issue in `IssuesFinder` before, and it was addressed
      in !41835.
      This change applies the same change to `MergeRequestsFinder`.
      
      Closes #296939
      28a4909c
  18. Jan 08, 2021
  19. Nov 23, 2020
  20. Nov 06, 2020
  21. Nov 05, 2020
  22. Nov 03, 2020
  23. Oct 22, 2020
  24. Oct 19, 2020
  25. Oct 16, 2020
    • 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 gitlab-com/gl-infra/delivery#1246 for
      more information.
      46aa4e91
    • Sincheol (David) Kim's avatar
      Load review requested MRs in assignee filter · 550f2982
      Sincheol (David) Kim authored and charlie ablett's avatar charlie ablett committed
      - It loads review requested MRs as part of Assignee filter
      - We would probably want a dedicated filter for it down the track, but
      this is our first iteration
      550f2982
  26. Sep 28, 2020
  27. Aug 25, 2020
  28. Aug 06, 2020
  29. Jul 31, 2020
  30. Apr 01, 2020
  31. Jan 13, 2020
  32. Nov 19, 2019
  33. Jul 30, 2019
    • Yorick Peterse's avatar
      Inject EE modules in a CE compatible fashion · 1112fec4
      Yorick Peterse authored
      All instances of injecting an EE specific module have been changed to
      use the new methods for this: prepend_if_ee, extend_if_ee, and
      include_if_ee. This allows these lines to be included in CE, even when
      the modules to inject do not exist. This in turn allows us to backport
      these lines to CE and keep them there, instead of having to strip them
      out.
      1112fec4
  34. Apr 05, 2019
    • Paul Slaughter's avatar
      Fix IDE detecting MR from fork branch · 59ac0924
      Paul Slaughter authored and Phil Hughes's avatar Phil Hughes committed
      **Why?**
      Currently the IDE loads a merge request based on only the
      `source_branch` name. This means it loads MR's from
      forks that have the same branch name (not good).
      
      - This required updating the BE API to accept `source_project_id`
      59ac0924
  35. Mar 09, 2019
  36. Mar 07, 2019
  37. Feb 05, 2019
Loading