Repository navigation
fix(people): resolve experts only by verified identities, validate SCIM time zones on write, fair Slack identity sweep - #10572
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
[Medium impact] The PR appears safe to merge; no actionable issues remain from this review. SummaryThis PR limits expert matches to email and organization Slack identities, checks SCIM time zones before storing them, and makes the Slack sweep visit organizations more fairly.
Reviews (2) · Last reviewed commit: "fix(people): stage a SCIM time zone in t..." · Reviewed by Greptile |
There was a problem hiding this comment.
All reported issues were addressed across 7 files
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
…IM time zones on write; fair Slack identity sweep - Expert search resolves a contributor to a directory person only by a verified email or the organization's own Slack identity. A name, such as a commit author or a Slack Connect guest, is free text anyone can set, so it stays an outside contributor. - SCIM time zones are validated as they are staged, so person reads take the stored zone instead of scanning pg_timezone_names for every row. - The Slack identity sweep takes never-visited and longest-overdue organizations first, and one without People only has its identities cleared, without taking a refresh from one that has it.
a408026 to
e183901
Compare
Summary
Fixes from an audit of People (#10538) and expert search (#10565):
otherContributors.resolveDirectoryIdentitiesdrops name matching.pg_timezone_nameslookup per sync), like Okta and Slack, which validate withdirectoryTimeZone.pg_timezone_namesscan per row (0.3 to 3 ms a row).Type of Change
Testing
Each new test fails when its guard is reverted:
experts.integration.ts: a commit author name, and a Slack ID outside the organization's identities, both equal to a unique directory name, are never credited as an expert.sync/snapshot.integration.ts: a SCIM time zone Postgres doesn't know is dropped at staging, and a known one is kept.slack-identities.integration.ts:Also run: related unit and integration suites, type-check, and the audits test-types, test-patterns, comment-hygiene, boundaries, unused-exports, source-conventions and explicit-any.
Checklist
test-auditauthoring gate)