feat: report caller org ASO tier on cross-org sites-resolve - #2980
Open
sandsinh wants to merge 2 commits into
Open
feat: report caller org ASO tier on cross-org sites-resolve#2980sandsinh wants to merge 2 commits into
sandsinh wants to merge 2 commits into
Conversation
…8838 When callerImsOrg is present on GET /sites/resolve and differs from the target org's imsOrgId (a cross-org caller — e.g. an AEC shell in org A viewing org B), the asoTier field now reports the caller org's ASO tier instead of the target org's, so the UI gates on the shell's own tier. - Applies to every asoTier emission (success and failure) for the resolved target org. - isSummitPlgEnabled stays target-derived — only asoTier is overridden. - Falls back to the target org's tier when the caller org is not in the DB (its tier is unknowable); no override when callerImsOrg matches the target. - Org-not-found / access-denied paths keep asoTier: null unchanged. Adds unit tests and updates the OpenAPI callerImsOrg/asoTier docs. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
This PR will trigger a minor release when merged. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
When callerImsOrg is present on GET /sites/resolve and differs from the target org's imsOrgId (a cross-org caller — e.g. an AEC shell in org A viewing org B), the asoTier field now reports the caller org's ASO tier instead of the target org's, so the UI gates on the shell's own tier.
Adds unit tests and updates the OpenAPI callerImsOrg/asoTier docs.
Please ensure your pull request adheres to the following guidelines:
describe here the problem you're solving.
If the PR is changing the API specification:
yet. Ideally, return a 501 status code with a message explaining the feature is not implemented yet.
If the PR is changing the API implementation or an entity exposed through the API:
If the PR is introducing a new audit type:
Related Issues
https://jira.corp.adobe.com/browse/SITES-48838
Thanks for contributing!