mozilla-services / syncstorage-rs

Sync Storage server in Rust
Mozilla Public License 2.0
894 stars 49 forks source link

Feat/override #1524

Closed jrconlin closed 6 months ago

jrconlin commented 6 months ago

Description

The thought is that in update_user, we don't call db.get_node_id() to override the user's node_id unless the client_state doesn't match between the auth and the user records. We provide the spanner node, but we only pass up the resolved node string. This PR passes the node_id back up, checks that it matches the override if it's present, and resets the user record if it doesn't match.

jrconlin commented 6 months ago

closing in favor of a more modern branch