Skip to content

Conversation

@tkotthakota-adobe
Copy link
Collaborator

@tkotthakota-adobe tkotthakota-adobe commented Jul 25, 2025

please add IMS_HOST, IMS_CLIENT_ID, IMS_CLIENT_CODE, IMS_CLIENT_SECRET to task-manager secrets in prod and please use ims client aem-project-collab-service as that's the ims client has access to all the tenants, otheriwise, we'll run into IMS getProductContextsByImsOrgId request failed with status: 400

} catch (error) {
log.error('Error loading IMS_ORG_TENANT_ID_MAPPINGS mapping:', error.message);
}
if (!name) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

please take note to remove these stale secres from Secret Manager after deployment

@github-actions
Copy link

This PR will trigger no release when merged.

Copy link
Collaborator

@rpapani rpapani left a comment

Choose a reason for hiding this comment

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

looks good.
Build is failing, please check.

// Get tenantId from IMS org details if tenantId is not there in organization
let imsOrgDetails;
try {
imsOrgDetails = await context.imsClient.getImsOrganizationDetails(imsOrgId);
Copy link
Collaborator

Choose a reason for hiding this comment

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

const { imsClient } = context;

backup would be
const imsClient = IMSClient.createFrom(context);

@rpapani rpapani merged commit dae1bc3 into main Aug 14, 2025
7 checks passed
@rpapani rpapani deleted the SITES-33348 branch August 14, 2025 22:39
@rpapani rpapani changed the title feat: fetch tenant id from organization fix: fetch tenant id from organization Aug 14, 2025
solaris007 pushed a commit that referenced this pull request Aug 14, 2025
## [1.1.3](v1.1.2...v1.1.3) (2025-08-14)

### Bug Fixes

* fetch tenant id from organization ([#21](#21)) ([dae1bc3](dae1bc3))
@solaris007
Copy link
Member

🎉 This PR is included in version 1.1.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@tkotthakota-adobe tkotthakota-adobe changed the title fix: fetch tenant id from organization fix: fetch tenant id from organization if not available then fetch it from IMS client API Aug 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants