Skip to content

Add MyCLAs API group (prod) - #5129

Merged
mlehotskylf merged 1 commit into
mainfrom
unicron-my-clas-api-group-prod
Jul 30, 2026
Merged

mlehotskylf merged 1 commit into
mainfrom
unicron-my-clas-api-group-prod

Conversation

@lukaszgryglicki

Copy link
Copy Markdown
Member

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

@lukaszgryglicki lukaszgryglicki self-assigned this Jul 29, 2026
Copilot AI review requested due to automatic review settings July 29, 2026 08:19
@coderabbitai

coderabbitai Bot commented Jul 29, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 01e4ff1d-fa3a-4d32-818e-a984ebbdda42

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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 DataSource without checking their IsVerified flag. 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) {

Comment thread docs/MY_CLAS_API.md Resolved
Comment thread cla-backend-go/v2/my_clas/service.go Resolved
Comment thread cla-backend-go/v2/my_clas/service.go Resolved
@lukaszgryglicki

Copy link
Copy Markdown
Member Author

@mlehotskylf @ahmedomosanya can I get an approval here?

@mlehotskylf
mlehotskylf merged commit 02d4505 into main Jul 30, 2026
8 checks passed
@mlehotskylf
mlehotskylf deleted the unicron-my-clas-api-group-prod branch July 30, 2026 07:54
lukaszgryglicki added a commit that referenced this pull request Nov 4, 2026
…4992-3794-prod

Sync main to dev #5128 #5129 #1267 #4992 #3794 (for the prod release)
lukaszgryglicki added a commit that referenced this pull request Nov 19, 2026
Create lock for #5129, Cypress E2E removal, review follow-ups, E2E flake fixes
lukaszgryglicki added a commit that referenced this pull request Nov 19, 2026
…ress-e2e-prod

Create lock for #5129, Cypress E2E removal, review follow-ups, E2E flake fixes - prod

This branch was previously deployed

1 inactive deployment
dev — 741f3a87 Deployed Jul 29, 2026 by lukaszgryglicki via License Header Check #1394
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.

3 participants