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

Add pre auth and tenant switch improvement for central deployment related authentication #7291

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

bhagyasakalanka
Copy link
Contributor

@bhagyasakalanka bhagyasakalanka commented Jan 10, 2025

Purpose

  • Add console pre auth related improvements for ADU authentication
  • Improve drop down to support ADU selection

Checklist

  • e2e cypress tests locally verified. (for internal contributers)
  • Manual test round performed and verified.
  • UX/UI review done on the final implementation.
  • Documentation provided. (Add links if there are any)
  • Relevant backend changes deployed and verified
  • Unit tests provided. (Add links if there are any)
  • Integration tests provided. (Add links if there are any)

Security checks

@wso2-jenkins-bot
Copy link
Contributor

🦋 Changeset detected

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Copy link

codecov bot commented Jan 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 41.85%. Comparing base (85ed6db) to head (21a41d6).
Report is 458 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #7291   +/-   ##
=======================================
  Coverage   41.85%   41.85%           
=======================================
  Files          42       42           
  Lines         939      939           
  Branches      217      230   +13     
=======================================
  Hits          393      393           
+ Misses        546      502   -44     
- Partials        0       44   +44     
Flag Coverage Δ
@wso2is/core 41.85% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

see 12 files with indirect coverage changes

@bhagyasakalanka bhagyasakalanka force-pushed the central-deployment-imprs branch 6 times, most recently from 52544f6 to 066a888 Compare February 18, 2025 04:52
@bhagyasakalanka bhagyasakalanka changed the title Add pre auth improvement for central deployment related authentication Add pre auth and tenant switch improvement for central deployment related authentication Feb 18, 2025
@bhagyasakalanka bhagyasakalanka force-pushed the central-deployment-imprs branch 2 times, most recently from c2201d6 to fbb1a84 Compare February 20, 2025 11:54
@bhagyasakalanka bhagyasakalanka force-pushed the central-deployment-imprs branch from fbb1a84 to 19e90ca Compare February 20, 2025 12:13
@bhagyasakalanka bhagyasakalanka force-pushed the central-deployment-imprs branch from 9a347f0 to 21a41d6 Compare February 21, 2025 04:42
"@wso2is/myaccount": minor
"@wso2is/console": minor
"@wso2is/core": minor
"@wso2is/i18n": minor
Copy link
Contributor

Choose a reason for hiding this comment

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

add admin.base.v1 too

@@ -1,5 +1,5 @@
/**
* Copyright (c) 2021, WSO2 LLC. (https://www.wso2.com). All Rights Reserved.
* Copyright (c) 2021, WSO2 LLC. (https://www.wso2.com).
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* Copyright (c) 2021, WSO2 LLC. (https://www.wso2.com).
* Copyright (c) 2021-2025, WSO2 LLC. (https://www.wso2.com).

placeholder = { t("tenants:deploymentUtits.placeholder") }
required={ true }
options={ deploymentUnitOptions }
readOnly={ true }
Copy link
Contributor

Choose a reason for hiding this comment

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

if this is readonly, end users may not be able to select the region, might they?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It worked locally with above configurations

if (deploymentUnitJson === undefined) {
setIsValidDeploymentUnit(false);
} else {
setSelectedDeploymentUnit(deploymentUnitJson??JSON.parse(deploymentUnitJson));
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
setSelectedDeploymentUnit(deploymentUnitJson??JSON.parse(deploymentUnitJson));
setSelectedDeploymentUnit(deploymentUnitJson ??JSON.parse(deploymentUnitJson));

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