Skip to content

Implement AR validations for ProtectedRefAccess

Joe Woodward requested to merge fix/461213-branch_rule-validations-2 into master

What does this MR do and why?

Implement AR validations for ProtectedRefAccess

Prior to this change we did not validate that the user or group actually existed when creating a ProtectedRefAccess object.

We have foreign_key constraints but this means we relied on the database layer to raise exceptions instead of returning user friendly errors.

Related to branchRuleUpdate mutation bug - unexpected Acc... (#461213 - closed)

Changelog: changed

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

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

Before After

How to set up and validate locally

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

Edited by Joe Woodward

Merge request reports

Loading