-
-
Notifications
You must be signed in to change notification settings - Fork 307
Add organization switching for administrators managing multiple organizations #5257
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
Open
Copilot
wants to merge
16
commits into
main
Choose a base branch
from
copilot/allow-admin-switch-organizations
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
4bf182a
Initial plan
Copilot 7c09911
Add organization switching functionality for administrators
Copilot 94d472e
Add comprehensive tests for organization switching functionality
Copilot cf11b70
Address code review feedback: improve security and performance
Copilot f1125a3
Fix test consistency and update code comments
Copilot dfe71ab
Address PR review feedback: optimize queries, add validation, improve…
Copilot 6114c7f
Merge branch 'main' into copilot/allow-admin-switch-organizations
DonnieBLT 3cae383
Potential fix for code scanning alert no. 812: DOM text reinterpreted…
DonnieBLT 253cb2b
Fix CodeQL security issue: add explicit protocol validation and use l…
Copilot e7f9f23
Fix inactive user test to use force_login instead of regular login
Copilot ab9513b
Fix N+1 query problem by evaluating queryset once into a list
Copilot 727d93a
Fix inactive user test to check for login redirect instead of home re…
Copilot 9d2391b
Merge branch 'main' into copilot/allow-admin-switch-organizations
DonnieBLT de86518
Fix JavaScript block: move from non-existent extra_js to content block
Copilot f89bd3d
Merge branch 'main' into copilot/allow-admin-switch-organizations
DonnieBLT 4c23037
Fix test setup: remove regular_user as admin of org3 to properly test…
Copilot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This probably double encodes the query parameter here. Both URLSearchParams and encodeURIComponent do the encoding. We can consider applying the following diff -
url.searchParams.set('switch_to', selectedOrg);