Skip to content
Snippets Groups Projects

Add ability to add read_code to custom roles

Merged Jessie Young requested to merge jy-custom-role-view-code into master

What does this MR do and why?

  • download_code and read_code are now separate via #376180 (closed)
  • for the first iteration of a customer-facing MVC, we want to provide the ability to customize read_code for a Guest user.
  • We previously added the ability to customize download_code but we will be removing that for the customer MVC.
  • This is all behind the customizable_roles feature flag
  • #20277 (closed)

Database

UserMemberRolesInProjectsPreloader query before this change: https://explain.depesz.com/s/shQU

UserMemberRolesInProjectsPreloader query after this change: https://explain.depesz.com/s/yP4E

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Jessie Young

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Ghost User
  • Jessie Young added 337 commits

    added 337 commits

    Compare with previous version

    • Resolved by Jessie Young

      Hi @sgarg_gitlab - this needs a database review and I need to prepare a few things for DB review before I tag those folks but can you review this for ~"group::authentication and authorization" in the meantime?

      The pipeline/spec failures are all for a single N+1 spec. be rspec spec/requests/projects/ml/experiments_controller_spec.rb:55 also fails on an updated local master so I don't think that it is related to my MR but I have asked about this in Slack.

  • Jessie Young requested review from @sgarg_gitlab

    requested review from @sgarg_gitlab

  • @ifarkas just an FYI on this MR. I spoke with @adil.farrukh today about the custom roles plan for %15.7 and even though we hope to move forward with Draft: POC: use flag_shih_tzu gem for storing p... (!106151 - closed) or similar for custom roles in the future, that is still in flux so in the meantime we are going to add a boolean field for read_code

  • Jessie Young resolved all threads

    resolved all threads

  • Jessie Young removed review request for @sgarg_gitlab

    removed review request for @sgarg_gitlab

  • Jessie Young added 1 commit

    added 1 commit

    • 414b947d - Add ability to add read_code to custom roles

    Compare with previous version

  • Jessie Young changed the description

    changed the description

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading