Conversation
PM-6329 Add showcase metadata and project synchronization
…ions Adds a read-only Salesforce opportunity endpoint that the Work app uses to populate project details and the Sales app uses for its opportunity popup: - GET /v6/projects/salesforce/opportunities/:opportunityId returns the opportunity name, description, Subcontracting End Customer, Reporting SMU, Close Date, stage and a link to the record. - SalesforceClient runs SOQL over the OAuth client-credentials flow, mirroring the Reports API client: trusted-origin allow-list, bounded retries, in-memory token reuse and a single renewal on 401. Record ids are validated against a strict pattern before they reach the query. - Access requires a manager-tier role (Work) or a talent-manager role (Sales). Renames the SMU options to the Salesforce Reporting SMU codes (APME, EURP, AMR1, AMR2) so an imported opportunity maps onto a project without translation. Projects saved with the previous labels are upgraded in place on the next write, and an unrecognized Reporting SMU is surfaced as Others plus the raw value. Project.details.salesforceOpportunityId is validated alongside the other shared metadata. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
PM-6363: Salesforce opportunity lookup and Salesforce-aligned SMU options
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.
https://topcoder.atlassian.net/browse/PM-6363
https://topcoder.atlassian.net/browse/PM-6329