Skip to content

fix(PM-2435): identity service response structure - #860

Merged
kkartunov merged 5 commits into
developfrom
pm-2435
Oct 22, 2025
Merged

kkartunov merged 5 commits into
developfrom
pm-2435

Conversation

@hentrymartin

Copy link
Copy Markdown
Contributor

What's in this PR?

  • Identity service v6 returns data in a different structure than v5. This PR fixes the consumption logic to use the proper v6 structure.

Ticket link - https://topcoder.atlassian.net/browse/PM-2435

Comment thread src/util.js
const roles = res.data;
logger.debug(`Roles by ${roleName}: ${JSON.stringify(roles)}`);
return roles
return roles.result.content

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[❗❗ correctness]
Ensure that roles.result.content is always defined and has the expected structure before accessing it. Consider adding a check to handle cases where result or content might be undefined, which could lead to runtime errors.

@kkartunov
kkartunov merged commit fe03534 into develop Oct 22, 2025
2 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.

2 participants