Skip to content
Snippets Groups Projects
  1. May 22, 2024
  2. Mar 28, 2024
  3. Feb 15, 2024
  4. Feb 13, 2024
  5. Jan 14, 2024
  6. Dec 28, 2023
  7. Dec 01, 2023
    • Martin Čavoj's avatar
      Add approval notification for unenforceable policy rules · e9ff7811
      Martin Čavoj authored and Andy Schoenen's avatar Andy Schoenen committed
      With this change, a policy bot comment will be created for policy rules
      that could not be enforced due to missing scanners in the pipeline,
      or missing pipeline setup altogether. A new worker will be executed
      only if there are approval rules with scan result policies in place.
      e9ff7811
  8. Oct 24, 2023
  9. Oct 20, 2023
    • Patrick Bajao's avatar
      Refactor how reset_approvals and delete_approvals are called · a62b0a19
      Patrick Bajao authored
      Nothing else calls `MergeRequests::BaseService#reset_approvals`
      aside from `MergeRequests::ResetApprovalsService` so we move the
      method to that service along with other methods it needs that are
      also not called elsewhere.
      
      This also includes changes to how we call `#delete_approvals` in
      `MergeRequests::UpdateService`. Outside EE, we don't really reset
      approvals when target branch changes but we are currently overriding
      `#create_branch_change_note` to add that behavior in EE which is
      not really the responsibility of that said method.
      
      To improve this, we introduce a new method called
      `#delete_approvals_on_target_branch_change` and we call it in
      `#handle_target_branch_change`. It doesn't do anything outside EE
      and we override it to delete approvals when target branch changes
      in EE.
      a62b0a19
  10. Sep 26, 2023
  11. Aug 03, 2023
  12. May 03, 2023
  13. Oct 11, 2022
  14. Jun 10, 2022
  15. Apr 14, 2021
  16. Apr 12, 2021
  17. Apr 09, 2021
    • Patrick Bajao's avatar
      Handle assignee changes side effects asynchronously · edccd047
      Patrick Bajao authored
      This is to reduce the number of queries that get executed by
      running `MergeRequests::UpdateService`.
      
      This is based on the solution made in
      !57523.
      
      Added a new worker/service to extend the capability of the worker
      added in that merge request. It now accepts a `execute_hooks`
      option so it can be re-used by both `UpdateService` and
      `UpdateAssigneesService`.
      edccd047
  18. Apr 07, 2021
  19. Apr 06, 2021
  20. Feb 16, 2021
  21. Oct 08, 2020
  22. May 26, 2020
    • Patrick Bajao's avatar
      Support resetting approval rules to defaults · 4a7fc360
      Patrick Bajao authored
      A new `reset_approval_rules_to_defaults` param that will be sent
      by the frontend when approval rules are set to be reset to project
      defaults.
      
      When that param is set to `true`, the backend will delete all
      existing any_approver/regular rules of the merge request. It will
      also append inapplicable rules so it'll behave like creating rules
      on MR creation.
      4a7fc360
  23. Apr 20, 2020
  24. Mar 10, 2020
  25. Mar 05, 2020
  26. Jul 22, 2019
    • Nick Thomas's avatar
      Allow blocking merge requests to be configured · 5aee2203
      Nick Thomas authored
      GitLab has model-level support for the idea of one merge request
      "blocking" another from being merged - the second MR can only be merged
      once the first one has, itself, been merged. We also show any existing
      blocks in the merge request widget.
      
      This commit adds support for adding and removing these blocks when
      creating or editing a merge request.
      
      Frontend changes mostly by Sam Bigelow <sbigelow@gitlab.com>
      Verified
      5aee2203
  27. Jun 04, 2019
  28. Apr 03, 2019
  29. Feb 14, 2019
  30. Feb 07, 2019
  31. Feb 05, 2019
    • Mark Chao's avatar
      Clear approval state caching after update · 38cee0a3
      Mark Chao authored
      This is to recompute the new overall_approvers
      In this method, the following calls would cause a change in the
      database which needs resetting the cache:
      
      - super (which updates MR)
      - sync_approval_rules (which updates rule record's approvals_required)
      - cleanup_approvers (which removes any approver not mentioned in params)
      
      resetting cache must be done after those three calls,
      so moving some calls earlier is required.
      However this would not affect outcome.
      38cee0a3
  32. Jan 28, 2019
  33. Jan 13, 2019
  34. Jan 08, 2019
  35. Dec 06, 2018
    • gfyoung's avatar
      Enable some frozen string in ee/app · 5888e0cc
      gfyoung authored
      Enables frozen string in the following:
      
      * ee/app/policies/**/*.rb
      * ee/app/presenters/**/*.rb
      * ee/app/serializers/**/*.rb
      * ee/app/services/**/*.rb
      * ee/app/uploaders/**/*.rb
      * ee/app/validators/**/*.rb
      * ee/app/workers/**/*.rb
      
      Partially addresses gitlab-org/gitlab-ce/#47424.
      5888e0cc
  36. Nov 20, 2018
  37. Nov 07, 2018
    • Mark Chao's avatar
      Include code owner in `overall_approvers` · 76c57ba3
      Mark Chao authored
      Its return type is change from `Approver` to `User`,
      as code owner is type `User`, and it does not make sense
      to wrap them in `Approver`.
      
      When approvers are overriden, code owner is not included,
      because the persisted approvers will include code owners already.
      
      Add endpoint to delete approver by user_id,
      since overall_approvers now returns User,
      and this avoids one query for fetching user's approver association.
      76c57ba3
  38. Sep 14, 2018
  39. May 23, 2018
Loading