Skip to content

PM-5349: add open-to-work talent report API#106

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

PM-5349: add open-to-work talent report API#106
jmgasper merged 1 commit into
developfrom
PM-5349

Conversation

@jmgasper

Copy link
Copy Markdown
Collaborator

What was broken
Reports API had no endpoint to summarize open-to-work members by preferred role or export contact data for administrators.

Root cause
The openToWork preferredRoles trait was not exposed through reports-api; existing member search used only the available-for-gigs flag and skill search filters.

What was changed

  • Added admin-only open-to-work Talent JSON and CSV endpoints.
  • Added query DTOs and an administrator-only report guard.
  • Added SQL aggregation and export logic using openToWork.preferredRoles, excluding @wipro.com emails.
  • Added sorting by wins and rating, plus CSV contact fields for email and phone.

Any added/updated tests

  • Added service, controller, and guard tests for the new endpoints and export.
  • Passed: source ~/.nvm/nvm.sh && nvm use && pnpm test -- member-search 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.

What was broken
Reports API had no endpoint to summarize open-to-work members by preferred role or export contact data for administrators.

Root cause
The openToWork preferredRoles trait was not exposed through reports-api; existing member search used only the available-for-gigs flag and skill search filters.

What was changed
Added admin-only open-to-work Talent JSON and CSV endpoints, query DTOs, SQL aggregation and export logic, Wipro email exclusion, sorting by wins and rating, and contact export fields.

Any added/updated tests
Added service, controller, and guard tests for the new endpoints and export. Verified with pnpm test -- member-search member-talent-report, pnpm lint, and pnpm build. The full pnpm test suite was run and still has unrelated pre-existing SFDC and report-directory failures.
@jmgasper jmgasper marked this pull request as ready for review June 15, 2026 04:38
@jmgasper jmgasper merged commit b4970e8 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