Skip to content

Add ability to add read_code to custom roles

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