feat(company): add signedBy to the org CLA posture endpoint - #5201
Conversation
Copy the CCLA SignatoryName onto company-cla-group so the Org Lens overview can later say who signed. Blank names are omitted; there is no CLA-manager fallback. Refs linuxfoundation/lfx-self-serve#2231 Signed-off-by: ahmedomosanya <aopeyemi@contractor.linuxfoundation.org>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (4)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. WalkthroughThe Company CLA Groups response now includes optional ChangesCompany CLA signed-by response
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to The endpoint now additively returns the recorded CCLA signatory name when available and omits it otherwise. The documented response behavior is covered for populated and blank names, with no current merge-blocking risk identified. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 4 functions across 2 files. (2 skipped: 2 unsupported.)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Pull request overview
Adds the CCLA signatory name as optional signedBy data in the organization CLA posture endpoint.
Changes:
- Adds
signedByto the Swagger contract and documentation. - Maps non-blank
SignatoryNamevalues without manager fallback. - Tests populated and omitted behavior.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
docs/M3_ORG_LENS_API.md |
Documents signedBy behavior. |
cla-backend-go/v2/company/service.go |
Populates signedBy from the signature. |
cla-backend-go/v2/company/service_test.go |
Tests mapping and omission behavior. |
cla-backend-go/swagger/common/company-cla-group.yaml |
Defines the optional response field. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Adds
signedBytoGET /v4/company/external/{companySFID}/cla-groups:the CCLA signatory name already on the signature this handler loads
(
sig.SignatoryName). Blank names are omitted; there is no CLA-managerfallback. Additive and read-only.
Refs linuxfoundation/lfx-self-serve#2231