Skip to content

Handle lf email per provider (read only) - prod#4961

Merged
lukaszgryglicki merged 1 commit intomainfrom
unicron-4939-handle-lf_email-prod
Apr 1, 2026
Merged

Handle lf email per provider (read only) - prod#4961
lukaszgryglicki merged 1 commit intomainfrom
unicron-4939-handle-lf_email-prod

Conversation

@lukaszgryglicki
Copy link
Copy Markdown
Member

Work on this slack request.

Issue: #4939

This is the prod version of #4944.

Signed-off-by: Lukasz Gryglicki lgryglicki@cncf.io

Assisted by OpenAI

Assisted by GitHub Copilot

Signed-off-by: Lukasz Gryglicki <lgryglicki@cncf.io>

Assisted by [OpenAI](https://platform.openai.com/)

Assisted by [GitHub Copilot](https://github.com/features/copilot)
@lukaszgryglicki lukaszgryglicki self-assigned this Mar 31, 2026
Copilot AI review requested due to automatic review settings March 31, 2026 09:31
@lukaszgryglicki lukaszgryglicki changed the title Handle lf email per provider (read only) Handle lf email per provider (read only) - prod Mar 31, 2026
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 31, 2026

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: af742a39-3426-445a-9c06-f7a6779be6b9

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
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch unicron-4939-handle-lf_email-prod

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

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates DocuSign signature email resolution to avoid using stale lf_email for GitHub/GitLab sign flows, aligning behavior with issue #4939 (GitHub/GitLab should rely on provider-derived user_emails; Gerrit can use LFID email).

Changes:

  • Add provider-aware email resolution for ICLA DocuSign defaults in the Python backend and extend unit tests to validate GitHub vs Gerrit behavior.
  • Update the Go v2 signing service email selection to conditionally allow LfEmail (intended for Gerrit) and avoid it for GitHub/GitLab.
  • Stabilize functional Cypress tests by adding a pre-test “fixture repair” step and explicitly adding dotenv to the functional test devDependencies/locks.

Reviewed changes

Copilot reviewed 5 out of 7 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
cla-backend/cla/models/docusign_models.py Provider-aware email resolution for individual signatures and DocuSign URL population.
cla-backend/cla/tests/unit/test_docusign_models.py Unit tests ensuring GitHub ignores lf_email while Gerrit can use it.
cla-backend-go/v2/sign/service.go Update Go signing service email selection to gate LfEmail usage by provider type.
tests/functional/cypress/e2e/v4/github-repositories.cy.ts Add pre-test repo re-enable step to reduce E2E flakiness.
tests/functional/package.json Add dotenv devDependency for Cypress config usage.
tests/functional/yarn.lock Lockfile update for dotenv version resolution.
tests/functional/package-lock.json Lockfile update for dotenv version resolution.
Files not reviewed (1)
  • tests/functional/package-lock.json: Language not supported

Comment thread tests/functional/cypress/e2e/v4/github-repositories.cy.ts
Comment thread cla-backend-go/v2/sign/service.go
Comment thread cla-backend-go/v2/sign/service.go
@lukaszgryglicki lukaszgryglicki merged commit 56ce6b4 into main Apr 1, 2026
11 checks passed
@lukaszgryglicki lukaszgryglicki deleted the unicron-4939-handle-lf_email-prod branch April 1, 2026 04:39
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