Skip to content
Snippets Groups Projects
  1. Feb 25, 2025
  2. Feb 24, 2025
    • Eugie Limpin's avatar
      Remove project abilities enabled when user can read_admin_cicd · a22222ea
      Eugie Limpin authored
      Users with read_admin_cicd ability should only be able to see minimal
      information related to a project and its sub-resources and the
      visibility should also be limited to the admin CI/CD pages.
      This means, for example, users with read_admin_cicd should
      only be able to see a project's path (no URL) and owner name in the
      admin CI/CD pages.
      a22222ea
  3. Feb 12, 2025
  4. Feb 11, 2025
  5. Feb 10, 2025
  6. Feb 06, 2025
  7. Feb 05, 2025
    • Ayush Billore's avatar
      Generate custom permission for Protected Environments · f075ab1b
      Ayush Billore authored
      - Add rule in group and project policies.
      - Update relevant documentation.
      - Update group and project policy specs.
      - Add custom ability file to hold metadata.
      - Add request specs for the new ability.
      
      Add custom permission in Projects::ProtectedEnvironmentsController
      and update settings_menu to allow admin_protected_environment
      
      Update controller to conditionally display the protected env
      
      Add wip feature flag and update files accordingly
      
      Add featureflag stub in cicd controller spec
      
      Move permission check to EE section + Add specs
      
      Add custom permission at projects level
      
      - Add :admin_protected_environment ability in controller and view
      - Update project settings menu to show CI/CI when oermitted
      - Update setting_menu_spec
      - Update request_spec to include project level changes
      
      Add custom permission at projects level
      
      - Add :admin_protected_environment ability in controller and view
      - Update project settings menu to show CI/CI when oermitted
      - Update setting_menu_spec
      - Update request_spec to include project level changes
      
      Make code review suggestions
      
      - Update policy name to admin_protected_environments
      - Remove redundant methods
      - Remove redundant feature flag check
      - Update docs
      - Keep items in array in alphabatical order
      
      Change admin_protected_environment to admin_protected_environments
      
      Add admin_protected_environments to base project policy
      
      Add enabled access_levels for groups and projects for permission
      
      Apply custom policy to Controller and API of protectedenvironments
      
      Generate custom permission for Protected Environments
      
      - Add custom permission in Projects::ProtectedEnvironmentsController
      and update settings_menu to allow admin_protected_environment
      - Update controller to conditionally display the protected env
      - Add wip feature flag and update files accordingly
      - Add featureflag stub in cicd controller spec
      - Move permission check to EE section + Add specs
      - Add custom permission at projects level
      - Add :admin_protected_environment ability in controller and view
      - Update project settings menu to show CI/CI when oermitted
      - Update setting_menu_spec
      - Update request_spec to include project level changes
      - Add custom permission at projects level
      - Add :admin_protected_environment ability in controller and view
      - Update project settings menu to show CI/CI when oermitted
      - Update setting_menu_spec
      - Update request_spec to include project level changes
      f075ab1b
    • Diane Russel's avatar
  8. Feb 04, 2025
  9. Jan 29, 2025
  10. Jan 27, 2025
  11. Jan 06, 2025
  12. Dec 21, 2024
  13. Dec 19, 2024
  14. Dec 12, 2024
  15. Dec 06, 2024
  16. Dec 04, 2024
  17. Nov 29, 2024
  18. Nov 28, 2024
  19. Nov 25, 2024
  20. Nov 22, 2024
    • Eugenia Grieff's avatar
      Add Planner role · 382fea3b
      Eugenia Grieff authored
      Add a new static role that defines Product Manager abilities
      
      Add group policies for Planner role
      
      Add project policies for Planner role
      
      Add issue, epic and issuable policies
      
      Changelog: added
      Verified
      382fea3b
  21. Nov 19, 2024
  22. Nov 14, 2024
    • Radu Birsan's avatar
      Added API for Project Security Settings · ccfdaeaa
      Radu Birsan authored
      This API will allow users to request and update
      a project's security settings, specifically
      for pre_receive_secret_detection_enabled.
      New documentation and testing covering this
      change has been added. Note that only users
      with Maintainer+ role can update the value
      as this would turn on SPP for the project.
      Users with developer+ role can view the
      security settings.
      
      Changelog: added
      EE: true
      Verified
      ccfdaeaa
    • Phil Hughes's avatar
      Start a Duo Code Review when requesting a review from Code Review bot · 13c8973e
      Phil Hughes authored
      When the Duo Code Review bot is added as a reviewer this will start a new review
      the bots review status will get updated to `review_started` when it starts the review
      to then `reviewed` when the review has been finished.
      A new review can then be requested from the bot using the request a review feature.
      Verified
      13c8973e
  23. Nov 01, 2024
  24. Oct 29, 2024
    • Vasilii Iakliushin's avatar
      Optimize: custom ability verification · 01168462
      Vasilii Iakliushin authored
      Contributes to #482942
      
      **Problem**
      
      We use `Authz::CustomAbility.allowed?` to check custom abilities of the
      user. But for each ability we trigger two database requests to fetch
      the same project and namespace. That leads to N+1 problem.
      
      **Solution**
      
      1. Restructure `Authz::CustomAbility` to support caching.
      
      The code below won't trigger unnecessary database queries for each
      `allowed?` call.
      
      ```ruby
      ability = Authz::CustomAbility.new(user, project)
      ability.allowed?(:ability_1)
      ability.allowed?(:ability_2)
      ```
      
      2. Add caching level to the policy code
      
      `Authz::CustomAbility` record will be memoized and have access to
      permitted abilities to optimize the number of DB queries.
      
      Changelog: performance
      EE: true
      Verified
      01168462
  25. Oct 21, 2024
  26. Oct 18, 2024
  27. Oct 11, 2024
  28. Oct 10, 2024
  29. Oct 09, 2024
Loading