Skip to content

PM-5349: allow Talent Managers to access Talent report API#107

Merged
jmgasper merged 1 commit into
developfrom
PM-5349-1
Jun 15, 2026
Merged

PM-5349: allow Talent Managers to access Talent report API#107
jmgasper merged 1 commit into
developfrom
PM-5349-1

Conversation

@jmgasper

Copy link
Copy Markdown
Collaborator

What was broken
QA reported that Talent Manager role users still could not access the open-to-work Talent report API.

Root cause
The previous API fix guarded the Talent JSON and CSV endpoints for administrators only, even though the follow-up requirement allows Talent Manager users too.

What was changed
Updated the Talent report guard to allow Talent Manager users in addition to administrators and all-reports machine clients. Updated endpoint documentation and Swagger 403 descriptions to match the expanded role access.

Any added/updated tests
Updated MemberTalentReportGuard tests to allow Talent Manager roles, including the Topcoder-prefixed role claim.

Passed: source ~/.nvm/nvm.sh && nvm use && pnpm test -- member-talent-report
Passed: source ~/.nvm/nvm.sh && nvm use && pnpm lint
Passed: source ~/.nvm/nvm.sh && nvm use && pnpm build
Ran: source ~/.nvm/nvm.sh && nvm use && pnpm test. The full suite still has unrelated existing SFDC and report-directory failures outside the Talent report guard change.

What was broken
QA reported that Talent Manager role users still could not access the open-to-work Talent report.

Root cause
The previous API fix guarded the Talent JSON and CSV endpoints for administrators only, even though the follow-up requirement allows Talent Manager users too.

What was changed
Updated the Talent report guard to allow Talent Manager users in addition to administrators and all-reports machine clients. Updated endpoint documentation and Swagger 403 descriptions to match the expanded role access.

Any added/updated tests
Updated MemberTalentReportGuard tests to allow Talent Manager roles, including the Topcoder-prefixed role claim.
@jmgasper jmgasper marked this pull request as ready for review June 15, 2026 07:16
@jmgasper jmgasper merged commit 58e265d into develop Jun 15, 2026
5 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.

1 participant