removal of workspace admin privileges for org admins when multiworkspace enabled

Created by: jcchr

📝 Description

PR adds a step responsible for migration organization admins roles - when upgrading to a version with multiworkspace support enabled. In such case - organization admins shouldn't have workspace admin roles - as they are superfluous (org admin already has all privileges related to workspace admins) and their presence may lead to inconsistency in displaying user's data.

Type of Change

Select the type of change your PR introduces:

  • 🐞 Bug fix – Non-breaking change which fixes an issue
  • 🚀 New feature – Non-breaking change which adds functionality
  • 🔨 Refactor – Non-breaking change which refactors the code base
  • 💥 Breaking change – Changes that break existing functionality
  • 📚 Documentation update
  • 🔒 Security update
  • 🧪 Tests

🧪 Testing Scenarios

Check if during upgrade to a version with multiworkspace support enabled - all workspace admin roles are removed for organization admins. Check also - if without this support - workspace admin roles remain untouched.

  • Tested manually
  • 🤖 Run automated end-to-end tests

Checklist

Before submitting the PR, ensure the following:

  • 🔍 PR title is clear and meaningful
  • ✍️ PR description clearly explains the changes and their reason
  • 📝 I have linked the PR to the corresponding GitHub Issues, if any
  • 💬 I have commented my code, especially in hard-to-understand areas
  • 📄 I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or my feature works

Merge request reports

Loading