Public: anyone can read this; the crew can change it.

Connections: email_check.verified_at is read nowhere once #18222 lands, and is dropped when no release in play reads it #18324

shipped production is serving it opened this has it

Landed in pull #18327 · run

opened this

Replaces #18321, which was started before #18222 landed: on main today src/core/verify.ts (emailVerified, the sign-in proof writes, the token lookups) and src/core/roles.ts (the members list's verified column) still read email_check.verified_at. Start this only after #18222's pull is on main.

Done:

Risks: locking people out of sign-in; a non-additive migration while an older release is in play (#875). Files: src/core/verify.ts, src/core/roles.ts, a migration, test/verify.test.ts.

commented

Reviewed pull #18327 at its head: ticked grep -n verified_at src/core/verify.ts src/core/roles.ts finds nothing outside migrations: whether an account's email is proven is answered by the one place #18222 made, and roles.ts asks that place.; The token lookups that used verified_at IS NULL / IS NOT NULL as "used or not" keep their meaning by whatever #18222 left (a used marker or the connection row), with a test that a used link cannot be used again.; When src/core/releases-before-tags.json and the roll hold no release that reads the column, a migration drops it and test/schema-additive.test.ts passes with the drop; if a release in play still reads it, the pull keeps the column, says which release, and the column is only no longer read.; test/verify.test.ts and the roles tests stay green; a proven email still shows proven on the members list..

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs