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

Enable SMS OTP configuration retrieval from primary org #213

Merged
merged 6 commits into from
Dec 18, 2023

Conversation

PasinduYeshan
Copy link
Contributor

@PasinduYeshan PasinduYeshan commented Dec 14, 2023

Proposed changes in this pull request

$subject
This PR updates the SMS configuration retrieval process. Now, if SMS configurations are not found in a sub-organization, they will be fetched from the primary organization for event handling. However, API calls will only access configurations specific to their own organization and not inherit from the parent.

When should this PR be merged

Merge after

Relevant Issues

@jenkins-is-staging
Copy link

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/7210841457

@jenkins-is-staging
Copy link

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/7210841457
Status: failure

@jenkins-is-staging
Copy link

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/7216958329

@jenkins-is-staging
Copy link

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/7216958329
Status: success

Copy link

@jenkins-is-staging jenkins-is-staging left a comment

Choose a reason for hiding this comment

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

Approving the pull request based on the successful pr build https://github.com/wso2/product-is/actions/runs/7216958329

@dewniMW dewniMW merged commit a9f3b12 into wso2-extensions:master Dec 18, 2023
2 checks passed
* @return Primary tenant id.
* @throws OrganizationManagementException If an error occurred while getting the primary tenant id.
*/
private int getPrimaryTenantId() throws OrganizationManagementException {
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's improve this method to pass tenant-domain (as an argument) and retrieve the primary tenant ID.
Let's add another method in organization management repo to getRootTenant(tenantDomain) where we can reduce few operations and will be helpful for someone in future.

Copy link
Contributor

Choose a reason for hiding this comment

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

Let's address only the first comment.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Addressed in #253.

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.

4 participants