You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Auto align old records to new schemas as they are accessed #51313
We have a forever-changing schema when it comes to the User record. It would be awesome to automatically update an older record to a newer schema as the request endpoint accesses them.
Something like the /get-session-user is a great place to fit this in.
That way we do not have to worry about backward compatibility and the records that are most frequently accessed would "be up to date".
This sounds easier than done, so some research and a smart strategy would be nice to have.
In theory, we could compare the user record to the default user to check for properties/types, add missing properties, remove properties that are on the record but not the default.
Activity
naomi-lgbt commentedon Aug 28, 2023
In theory, we could compare the user record to the default user to check for properties/types, add missing properties, remove properties that are on the record but not the default.
ojeytonwilliams commentedon Jun 12, 2024
Since we're planning to run the normalization script after deployment, I think this can be deferred as well.