Skip to content

ID-1270 create_with_parent Action #1441

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 23, 2024
Merged

Conversation

tlangs
Copy link
Contributor

@tlangs tlangs commented May 22, 2024

Ticket: https://broadworkbench.atlassian.net/browse/ID-1270

<Don't forget to include the ticket number in the PR title!>

What:

Introduce a create_with_parent resource action, which will allow resource creation with a parent resource without letting users re-parent the resource later.

Why:

Needed for future functionality.

How:

Just add the resource action.


PR checklist

  • I've followed the instructions if I've made any changes to the API, especially if they're breaking changes
  • I've filled out the Security Risk Assessment (requires Broad Internal network access) and attached the result to the JIRA ticket

@@ -75,7 +75,9 @@ trait SecurityDirectives {
case None => Directives.pass // no parent specified, proceed
case Some(parent) =>
// parents are allowed for a resource type if the owner role contains the SamResourceActions.setParent action
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you update this comment too?

@samanehsan
Copy link
Contributor

Is there anyone creating parent resources right now that needs to know about this change?

@tlangs
Copy link
Contributor Author

tlangs commented May 23, 2024

@samanehsan This unblocks other people to be able to make/edit resources with the correct role actions. We're just providing the capability. I've already pinged Data Exploration to let them know this is being done.

@tlangs tlangs enabled auto-merge (squash) May 23, 2024 18:51
Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
88.3% Duplication on New Code

See analysis details on SonarCloud

@tlangs tlangs merged commit e0e0ffa into develop May 23, 2024
17 checks passed
@tlangs tlangs deleted the tl_ID-1270_create_with_parent branch May 23, 2024 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants