Repository navigation
fix(sdk): send only profile fields when updating the current user - #2060
Open
rohilsurana wants to merge 2 commits into
Open
rohilsurana wants to merge 2 commits into
rohilsurana wants to merge 2 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
Coverage Report for CI Build 45133425500Coverage remained the same at 56.473%Details
Uncovered ChangesNo uncovered changes found. Coverage RegressionsNo coverage regressions found. Coverage Stats
💛 - Coveralls |
rohilsurana
force-pushed
the
fix/profile-update-send-form-fields
branch
from
November 23, 2026 07:42
4ed8e3a to
fa3bfb7
Compare
rohilsurana
changed the base branch from
main
to
fix/keep-metadata-on-update
November 23, 2026 07:42
rohilsurana
marked this pull request as ready for review
November 23, 2026 08:46
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #2058. Merge #2058 first.
Problem
The profile page fills its form with the whole user object.
On save, it sent that whole object to
UpdateCurrentUser, includingmetadata.Saving a new avatar or name goes through the same save.
So every save wrote back the metadata the page had loaded.
If something else changed the metadata while the page was open, that change was lost.
What changed
title,emailandavatar. It also sends the currentname, as before.metadata, so the server keeps the stored value.profileUpdateBody, with a unit test.Release order
This change is only safe on a Frontier server that has #2058.
Without #2058, a server wipes stored metadata when
UpdateCurrentUserleaves it out.Do not release this SDK change until the servers it talks to run #2058.
Checks
metadata.profile-view.tsxonmain. This PR does not reformat it, to keep the diff small.