Skip to content

fix: improve role detachment logic in DetachRolesFromSP method#179

Merged
DariuszPorowski merged 10 commits into
mainfrom
fix-v2
Dec 17, 2025
Merged

fix: improve role detachment logic in DetachRolesFromSP method#179
DariuszPorowski merged 10 commits into
mainfrom
fix-v2

Conversation

@DariuszPorowski

Copy link
Copy Markdown
Collaborator

No description provided.

Signed-off-by: Dariusz Porowski <3431813+DariuszPorowski@users.noreply.github.com>
@DariuszPorowski DariuszPorowski requested a review from a team as a code owner December 13, 2025 07:03
Copilot AI review requested due to automatic review settings December 13, 2025 07:03
@github-actions

github-actions Bot commented Dec 13, 2025

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR improves the role detachment logic in the DetachRolesFromSP method by refactoring the conditional checks and adding support for detaching all role assignments when no specific role is provided. The changes restructure the code to be more defensive against nil values and clarify the control flow.

Key Changes

  • Added nil safety check for roleAssignment.ID before processing
  • Restructured the conditional logic to support detaching all role assignments when RoleDefinitionResourceID is empty
  • Improved nil handling for roleAssignment.Properties and roleAssignment.Properties.RoleDefinitionID

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@DariuszPorowski DariuszPorowski added this pull request to the merge queue Dec 13, 2025
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Dec 13, 2025
@DariuszPorowski DariuszPorowski added this pull request to the merge queue Dec 13, 2025
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Dec 13, 2025
…adjust .gitignore

Signed-off-by: Dariusz Porowski <3431813+DariuszPorowski@users.noreply.github.com>
@DariuszPorowski DariuszPorowski added this pull request to the merge queue Dec 13, 2025
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Dec 13, 2025
Signed-off-by: Dariusz Porowski <3431813+DariuszPorowski@users.noreply.github.com>
Copilot AI review requested due to automatic review settings December 13, 2025 07:53
@DariuszPorowski DariuszPorowski added this pull request to the merge queue Dec 13, 2025

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 9 out of 10 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread pkg/usecase/mpfService.go
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Dec 13, 2025
Signed-off-by: Dariusz Porowski <3431813+DariuszPorowski@users.noreply.github.com>
@DariuszPorowski DariuszPorowski added this pull request to the merge queue Dec 13, 2025
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Dec 13, 2025
…kflows

Signed-off-by: Dariusz Porowski <3431813+DariuszPorowski@users.noreply.github.com>
Copilot AI review requested due to automatic review settings December 13, 2025 16:11

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 14 out of 15 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread e2eTests/e2eArm_test.go
Signed-off-by: Dariusz Porowski <3431813+DariuszPorowski@users.noreply.github.com>
…container.json

Signed-off-by: Dariusz Porowski <3431813+DariuszPorowski@users.noreply.github.com>
@DariuszPorowski DariuszPorowski added this pull request to the merge queue Dec 17, 2025
Copilot AI review requested due to automatic review settings December 17, 2025 08:32
@DariuszPorowski DariuszPorowski added this pull request to the merge queue Dec 17, 2025

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 15 out of 17 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread e2eTests/e2eArm_test.go
Comment thread Taskfile.yml
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Dec 17, 2025
Signed-off-by: Dariusz Porowski <3431813+DariuszPorowski@users.noreply.github.com>
@DariuszPorowski DariuszPorowski added this pull request to the merge queue Dec 17, 2025
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Dec 17, 2025
Comment thread e2eTests/e2eArm_test.go
@DariuszPorowski DariuszPorowski added this pull request to the merge queue Dec 17, 2025
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Dec 17, 2025
@DariuszPorowski DariuszPorowski added this pull request to the merge queue Dec 17, 2025
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Dec 17, 2025
@DariuszPorowski DariuszPorowski added this pull request to the merge queue Dec 17, 2025
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Dec 17, 2025
Signed-off-by: Dariusz Porowski <3431813+DariuszPorowski@users.noreply.github.com>
Copilot AI review requested due to automatic review settings December 17, 2025 18:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 15 out of 17 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread e2eTests/e2eArm_test.go
@DariuszPorowski DariuszPorowski added this pull request to the merge queue Dec 17, 2025
Merged via the queue into main with commit 299d0d5 Dec 17, 2025
20 checks passed
@DariuszPorowski DariuszPorowski deleted the fix-v2 branch December 17, 2025 19:24
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