Repository navigation
Add MyCLAs API group (prod) - #5129
Conversation
Signed-off-by: Łukasz Gryglicki <[email protected]> Assisted by [OpenAI](https://platform.openai.com/) Assisted by [GitHub Copilot](https://github.com/features/copilot) Assisted by [Claude](https://claude.ai)
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
There was a problem hiding this comment.
Pull request overview
Promotes the read-only My CLAs API group for Self Serve M1.
Changes:
- Adds CLA listing, identity enumeration, and PDF-link endpoints.
- Implements identity authorization, aggregation, and ECLA validity evaluation.
- Adds Swagger contracts, tests, documentation, and diagnostic utilities.
Reviewed changes
Copilot reviewed 20 out of 20 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
utils/my_clas.sh |
Exercises My CLAs APIs. |
utils/local-fbsd-api.sh |
Runs the backend locally. |
utils/get_user_svc.sh |
Inspects platform identities. |
utils/get_ddb_user_identities.sh |
Inspects EasyCLA identities. |
specs/001-easycla-ss-integration-fable/m1-my-cla/spec.md |
Defines M1 requirements. |
specs/001-easycla-ss-integration-fable/m1-my-cla/plan.md |
Documents implementation planning. |
specs/001-easycla-ss-integration-fable/m1-my-cla/data-model.md |
Documents API data mappings. |
specs/001-easycla-ss-integration-fable/m1-my-cla/contracts/upstream-easycla-api.md |
Documents upstream contracts. |
docs/MY_CLAS_API.md |
Documents API behavior and rollout. |
cla-backend-go/v2/user-service/client.go |
Adds contextual identity lookups. |
cla-backend-go/v2/my_clas/service.go |
Implements My CLAs business logic. |
cla-backend-go/v2/my_clas/service_test.go |
Tests service behavior. |
cla-backend-go/v2/my_clas/repository.go |
Adds DynamoDB queries. |
cla-backend-go/v2/my_clas/handlers.go |
Implements HTTP handlers. |
cla-backend-go/swagger/common/my-identity-list.yaml |
Defines identity responses. |
cla-backend-go/swagger/common/my-cla.yaml |
Defines CLA records. |
cla-backend-go/swagger/common/my-cla-pdf.yaml |
Defines PDF-link responses. |
cla-backend-go/swagger/common/my-cla-list.yaml |
Defines CLA-list responses. |
cla-backend-go/swagger/cla.v2.yaml |
Registers API operations. |
cla-backend-go/cmd/server.go |
Wires the module into the server. |
Comments suppressed due to low confidence (1)
cla-backend-go/v2/my_clas/service.go:555
- Connected identities are trusted based on
DataSourcewithout checking theirIsVerifiedflag. This lets an unverified provider username/email enter the authorization set and potentially unlock another user's CLA history and PDF. Require verified identities before adding either usernames or emails, with a regression test.
for _, identity := range identityList {
if identity == nil {
continue
}
if identity.DataSource != "" && !strings.EqualFold(identity.DataSource, identityDataSourcePlatform) {
|
@mlehotskylf @ahmedomosanya can I get an approval here? |
Create lock for #5129, Cypress E2E removal, review follow-ups, E2E flake fixes
…ress-e2e-prod Create lock for #5129, Cypress E2E removal, review follow-ups, E2E flake fixes - prod
MyCLAs API group - needed by SelfServe integration milestone M1.
Signed-off-by: Łukasz Gryglicki [email protected]
Assisted by OpenAI
Assisted by GitHub Copilot
Assisted by Claude