Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Settings Table Refactor #4544

Merged
merged 1 commit into from
Mar 20, 2025
Merged

Settings Table Refactor #4544

merged 1 commit into from
Mar 20, 2025

Conversation

latter-bolden
Copy link
Member

The release candidate is crashing on logout. The issue is a race condition with clearing the current user ID before all listeners for the settings table are unmounted. Current user ID is the primary key for the settings table, but we don't actually store other user's settings (table only ever has the singleton row).

To fix this I changed the primary key for the settings table to a static string. I also updated the query methods to assume you always want to read/write that singleton without needing to manually pass in a row ID.

Fixes TLON-3832

Verified

This commit was signed with the committer’s verified signature.
Calinou Hugo Locurcio
Copy link

linear bot commented Mar 20, 2025

Copy link
Member

@patosullivan patosullivan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, makes sense

@latter-bolden latter-bolden merged commit 62e2bb2 into develop Mar 20, 2025
1 check passed
@latter-bolden latter-bolden deleted the lb/settings-no-userid branch March 20, 2025 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants