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

Display Name - The name updates on the second device only after refresh #12600

Closed
kavimuru opened this issue Nov 9, 2022 · 14 comments
Closed
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering Internal Requires API changes or must be handled by Expensify staff

Comments

@kavimuru
Copy link

kavimuru commented Nov 9, 2022

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Issue found when executing #12142

Action Performed:

  1. Navigate to http://localhost:8080/settings/profile/display-name
    in two devices (or a normal browser & an incognito browser)
  2. Go offline on one device, update your name, click "Save"
  3. Verify your display name updates everywhere in that device
  4. Go back online

Expected Result:

The name should be updates on the second device

Actual Result:

The name updates on the second device only after refresh

Workaround:

unknown

Platform:

Where is this issue occurring?

  • Web
  • iOS - blocked
  • Android - Blocked
  • Desktop App - BLocked
  • Mobile Web

Version Number: 1.2.25-0
Reproducible in staging?: y
Reproducible in production?: y
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:

Bug5813782_12142_Web_2.mp4

Expensify/Expensify Issue URL:
Issue reported by: Applause internal team
Slack conversation:

View all open jobs on GitHub

@kavimuru kavimuru added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Nov 9, 2022
@melvin-bot
Copy link

melvin-bot bot commented Nov 9, 2022

Triggered auto assignment to @stephanieelliott (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@melvin-bot
Copy link

melvin-bot bot commented Nov 10, 2022

Current assignee @francoisl is eligible for the Engineering assigner, not assigning anyone new.

@stephanieelliott
Copy link
Contributor

Hey @francoisl, any insight on whether this can be handled externally or internally? Seeing as it is related to page refreshing I'm wondering if this might be a server side change.

@francoisl
Copy link
Contributor

Yes but as we're trying to focus on WAQ, I'm looking into this one.

I can reproduce the issue even while online, I think I see what's causing it so I'll submit a fix.

@francoisl
Copy link
Contributor

francoisl commented Nov 12, 2022

Hm the solution I had in mind is not going to work.

I was thinking of updating the defaultValue to value in the two TextInputs of the component here, but then you can't edit the value of the input at all. cc @Beamanator in case you have any idea for how to solve this, I see you wrote this new component. I also tried to use state for the values of the inputs, e.g.:

value={this.state.firstName}
onChangeText={firstName => this.setState({firstName})}

but then it broke updating the value in the UI when it updates in Onyx

@melvin-bot melvin-bot bot added the Overdue label Nov 14, 2022
@stephanieelliott
Copy link
Contributor

Cool, thanks Franc! I'm going to move this to Internal for now, but feel free to add the External label if we want to seek proposals at any point!

@melvin-bot melvin-bot bot removed the Overdue label Nov 14, 2022
@stephanieelliott stephanieelliott added the Internal Requires API changes or must be handled by Expensify staff label Nov 14, 2022
@francoisl
Copy link
Contributor

Yes, you really have to open the Display Name page on two devices first.

Here's how I did it:

  1. Open http://localhost:8080/settings/profile/display-name in two sessions/browsers/etc
  2. Edit your name in one of them, save
Screen.Recording.2022-11-14.at.2.19.21.PM.mov

@Beamanator
Copy link
Contributor

Confirmed this is happening, been discussing with @francoisl & @aldo-expensify since we've all been looking into similar things

@mvtglobally
Copy link

Issue not reproducible during KI retests. (First week)

@francoisl
Copy link
Contributor

Hm interesting, I can still reproduce on the latest main. Anyway, made some progress yesterday trying to use state to manage the value of the inputs, but I was still having a hard time with the value of the input resetting itself when you want to edit it. Will keep playing around today!

@aldo-expensify
Copy link
Contributor

aldo-expensify commented Nov 16, 2022

@francoisl not sure if I'm missing something, but I believe a decision has not been made on if we want to solve this for forms or :donothing: #12243 (comment)

I think it makes sense to make a slack discussion on it, but I think that has not happened yet.

If this doesn't have relation with what you are doing here, please ignore :P

@JmillsExpensify
Copy link

Ah @aldo-expensify beat me to it. I just came here from the #whatsnext update. I think if we solve this, we should be solving for it everywhere. I don't think we should move forward with a solution that solves it in just one place.

@francoisl
Copy link
Contributor

Ah yes ok thanks, I took this to Slack here!

@stephanieelliott
Copy link
Contributor

Closing this one out following the discussion in Slack!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering Internal Requires API changes or must be handled by Expensify staff
Projects
None yet
Development

No branches or pull requests

7 participants