Skip to content
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

Update condition to select tenant #65

Merged
merged 6 commits into from
Feb 29, 2024

Conversation

rupal-bq
Copy link
Member

Description

  • Added condition to check if tenant selection exists

Issues Resolved

#64

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Rupal Mahajan <[email protected]>
Signed-off-by: Rupal Mahajan <[email protected]>
Signed-off-by: Rupal Mahajan <[email protected]>
try {
if (multitenancy === true) {
if (multitenancy === true && tenantSelection !== null) {
Copy link
Member

Choose a reason for hiding this comment

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

if tenant selection is null, is it possible that the Select your tenant popup didn't show up but user is still in a wrong tenant?

for example the dashboard is in global tenant but after login, user is in private tenant and the Select your tenant didn't show up, would that happen?

Copy link
Member Author

Choose a reason for hiding this comment

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

That shouldn't happen when report is generated with short URL with tenant info. e.g. https://<domain>.us-west-2.on.aws/_dashboards/goto/8fa30d307ea81f81a5edc692e189c297?security_tenant=global

@rupal-bq rupal-bq closed this Feb 28, 2024
@rupal-bq rupal-bq reopened this Feb 29, 2024
Signed-off-by: Rupal Mahajan <[email protected]>
@rupal-bq rupal-bq merged commit 51f8869 into opensearch-project:main Feb 29, 2024
2 of 3 checks passed
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