Unicron fix cla email template#5114
Conversation
Signed-off-by: Łukasz Gryglicki <lgryglicki@cncf.io> Assisted by [OpenAI](https://platform.openai.com/) Assisted by [GitHub Copilot](https://github.com/features/copilot) Assisted by [Claude](https://claude.ai)
Signed-off-by: Łukasz Gryglicki <lgryglicki@cncf.io> Assisted by [OpenAI](https://platform.openai.com/) Assisted by [GitHub Copilot](https://github.com/features/copilot) Assisted by [Claude](https://claude.ai)
Signed-off-by: Łukasz Gryglicki <lgryglicki@cncf.io> Assisted by [OpenAI](https://platform.openai.com/) Assisted by [GitHub Copilot](https://github.com/features/copilot) Assisted by [Claude](https://claude.ai)
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
WalkthroughSigned CLA email rendering now selects project or CLA-group template data based on model version. Signed ICLA and CCLA templates render the corresponding name, callbacks pass the project ID, and tests cover lookup behavior and errors. ChangesSigned CLA email rendering
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant SignatureCallback
participant RenderDocumentSignedTemplate
participant EmailTemplateService
participant SignedCLATemplate
SignatureCallback->>RenderDocumentSignedTemplate: pass CLA group ID and project SFID
RenderDocumentSignedTemplate->>EmailTemplateService: fetch version-specific template parameters
EmailTemplateService-->>RenderDocumentSignedTemplate: return project or CLA group data
RenderDocumentSignedTemplate->>SignedCLATemplate: render signed CLA email
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Pull request overview
Updates DocuSign completion emails to identify the correct CLA Group instead of an unrelated project.
Changes:
- Uses
CLAGroupNamein ICLA and CCLA signed-document templates. - Adds regression tests for both templates.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
cla-backend-go/emails/docusign_templates.go |
Corrects the displayed entity name. |
cla-backend-go/emails/docusign_templates_test.go |
Verifies CLA Group rendering. |
Signed-off-by: Łukasz Gryglicki <lgryglicki@cncf.io> Assisted by [OpenAI](https://platform.openai.com/) Assisted by [GitHub Copilot](https://github.com/features/copilot) Assisted by [Claude](https://claude.ai)
Signed-off-by: Łukasz Gryglicki <lgryglicki@cncf.io> Assisted by [OpenAI](https://platform.openai.com/) Assisted by [GitHub Copilot](https://github.com/features/copilot) Assisted by [Claude](https://claude.ai)
Assisted by [OpenAI](https://platform.openai.com/) Assisted by [GitHub Copilot](https://github.com/features/copilot) Assisted by [Claude](https://claude.ai)
Signed-off-by: Łukasz Gryglicki <lgryglicki@cncf.io> Assisted by [OpenAI](https://platform.openai.com/) Assisted by [GitHub Copilot](https://github.com/features/copilot) Assisted by [Claude](https://claude.ai)
Signed-off-by: Łukasz Gryglicki <lgryglicki@cncf.io> Assisted by [OpenAI](https://platform.openai.com/) Assisted by [GitHub Copilot](https://github.com/features/copilot) Assisted by [Claude](https://claude.ai)
|
This is ready for review @ahmedomosanya @mlehotskylf @WillsonHG |
This fixes issue with email template project name name reported on slack: https://linuxfoundation.slack.com/archives/C0697E1QHNG/p1784294344570839
Signed-off-by: Łukasz Gryglicki lgryglicki@cncf.io
Assisted by OpenAI
Assisted by GitHub Copilot
Assisted by Claude