Repository navigation
fix: end in-flight Ever ID sign-ins on subject logout, renew lease before result resends (0.24.1) - #644
Conversation
…fore resends - signInWithOidc: pass the sign-in start time on the existing-account path too, so a subject-only logout that lands during the code exchange or account lookup ends it (Greptile P1 on #642) - runDue: check and renew the lease before each saved-result delivery, stop once it is lost (Greptile P2 on #642) - person-link round also stops once the connection is no longer the active one - refreshIntegrations: warn when the retries are exhausted - e2e: sort with localeCompare (Sonar S2871); changelog 0.24.1 entries + no-migrations note Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Ever Works AI review —
|
|
No actionable comments were generated in the recent review. Summary by CodeRabbit
WalkthroughThe pull request updates the existing OIDC sign-in path and adds a test for logout during sign-in. It also adds lease and connection checks to Ever Connect operations, logs incomplete integration refreshes, and adjusts a backup-result assertion. ChangesEver ID sign-in
Ever Connect operations
Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Possibly related PRs
Merge Risk:
|
[Medium impact] The PR appears safe to merge; no actionable issues were found. SummaryThis PR closes two gaps in Ever ID logout and Ever Platform background work.
This review checked the code and tests; it did not run the test suites. Reviews (1) · Last reviewed commit: "fix: end in-flight Ever ID sign-ins on s..." · Reviewed by Greptile |
|
Bot pass on
Waiting for the in-cluster |



Fixes the two Greptile findings on the 0.24.1 release PR #642, before it is merged to
stage. Part of 0.24.1 (no version change; changelog entries added under 0.24.1).Changes
auth.controller.ts~866).signInWithOidcrecordssignedInAtbefore the code exchange, but the existing-account branch calledsignOidcUserTokenwithout it, soopenSessionskipped the subject-logout cutoff. It now passesnew Date(signedInAt), as the sign-up confirmation path already did. A sign-in that starts after the logout works as before.Test:
test/ever-id.e2e-spec.ts"ends a sign-in to an existing account when a logout naming only the subject lands while it is under way" (the logout is injected during the account lookup → 400session_ended, no session row; the next sign-in → 201 and a working token).ever-connect-scheduler.service.ts~198 /runDue).runDuenow calls the lease callback before each saved-result (unsentResult) delivery and stops the whole round (no due work either) once the lease or the connection is lost; the next round that holds the lease sends the rest.Test:
ever-connect-managed.service.spec.ts"checks the lease before each saved result it sends again, and stops once another process holds it".refreshIntegrationslogs a warning when its 3 attempts are exhausted. Changelog 0.24.1 says "No database migrations" (verified:git diff master develop -- api/src/migrationsis empty).sort()withlocaleCompareintest/ever-connect-managed.e2e-spec.ts.Verified locally (Node 24, SQLite)
ever-connect-managed,ever-connect-person,ever-connect.service,ever-id-sessionspecs: 4 suites, 68 tests passed.ever-id,ever-connect-managed,ever-connect-person,ever-connect: 4 suites, 31 tests passed.prettier --checkon every changed.ts.CircleCI and in-cluster
ci.yml(unit, e2e on sqlite/postgres/mysql, webapp) run on this PR.No migrations, no new settings, no public API change.
🤖 Generated with Claude Code
Summary by cubic
Fixes the two Greptile findings on the 0.24.1 release before it merges to
stage, for Ever ID sessions and Ever Connect lease handling.refreshIntegrationslogs a warning when its 3 retries are exhausted.sort()in an e2e spec and adds 0.24.1 changelog entries. No database migrations.Written for commit addbef3. Summary will update on new commits.