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

[$500] Room - Web - Header shows changed Room name & room name on composer unchanged room name #35419

Closed
3 of 6 tasks
lanitochka17 opened this issue Jan 30, 2024 · 25 comments
Closed
3 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Monthly KSv2 Reviewing Has a PR in review

Comments

@lanitochka17
Copy link

lanitochka17 commented Jan 30, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: 1.4.33-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:

Action Performed:

  1. Go offline
  2. Create a room
  3. Change the name of the room
  4. Take a note of room name on header and room name above the composer

Expected Result:

Room name should be consistent

Actual Result:

Inconsistency in Room name preview when change in offline mode.
Header shows changed Room name while room name above composer shows the first unchanged room name

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6361117_1706634444941.Recording__1966.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01d1afbac3cc3b8deb
  • Upwork Job ID: 1752383443231072256
  • Last Price Increase: 2024-02-06
  • Automatic offers:
    • Ollyws | Reviewer | 28150301
    • esh-g | Contributor | 28150302
@lanitochka17 lanitochka17 added External Added to denote the issue can be worked on by a contributor Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jan 30, 2024
@melvin-bot melvin-bot bot changed the title Room - Web - Header shows changed Room name & room name on composer unchanged room name [$500] Room - Web - Header shows changed Room name & room name on composer unchanged room name Jan 30, 2024
Copy link

melvin-bot bot commented Jan 30, 2024

Job added to Upwork: https://www.upwork.com/jobs/~01d1afbac3cc3b8deb

Copy link

melvin-bot bot commented Jan 30, 2024

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

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jan 30, 2024
Copy link

melvin-bot bot commented Jan 30, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @Ollyws (External)

@lanitochka17
Copy link
Author

We think that this bug might be related to #vip-vsp.
CC @quinthar

@esh-g
Copy link
Contributor

esh-g commented Jan 30, 2024

Proposal

Please re-state the issue we are trying to solve

Header shows changed Room name & room name on composer unchanged room name

Root cause

We are memoizing the ReportActionItemCreated component incorrectly.

memo(
ReportActionItemCreated,
(prevProps, nextProps) =>
prevProps.policy?.name === nextProps.policy?.name &&
prevProps.policy?.avatar === nextProps.policy?.avatar &&
prevProps.report?.stateNum === nextProps.report?.stateNum &&
prevProps.report?.statusNum === nextProps.report?.statusNum &&
prevProps.report?.lastReadTime === nextProps.report?.lastReadTime,
),

What changes should be made to fix this?

We should check if props.report?.reportName changed in the memo

@mkhutornyi
Copy link
Contributor

I think this can be fixed together in #35123 or #35378

@Ollyws
Copy link
Contributor

Ollyws commented Feb 1, 2024

@mkhutornyi None of the solutions proposed in those issues would fix this one.

@esh-g's proposal LGTM.

🎀👀🎀 C+ reviewed

Copy link

melvin-bot bot commented Feb 1, 2024

Triggered auto assignment to @Gonals, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@mkhutornyi
Copy link
Contributor

I meant they can be combined into one issue since all of these came from memo:

#35471
#35378
#35419

    memo(
        ReportActionItemCreated,
        (prevProps, nextProps) =>
            prevProps.policy?.name === nextProps.policy?.name &&
            prevProps.policy?.avatar === nextProps.policy?.avatar &&
            prevProps.policy?.avatar === nextProps.policy?.avatar &&
+           _.isEqual(prevProps.report?.participantAccountIDs, nextProps.report?.participantAccountIDs) &&
+           prevProps.report?.reportName === nextProps.report?.reportName &&
+           _.isEqual(prevProps.personalDetails, nextProps.personalDetails)
            prevProps.report?.stateNum === nextProps.report?.stateNum &&
            prevProps.report?.statusNum === nextProps.report?.statusNum &&
            prevProps.report?.lastReadTime === nextProps.report?.lastReadTime,
    ),

@melvin-bot melvin-bot bot added the Overdue label Feb 5, 2024
@adelekennedy
Copy link

@Gonals will you review the selected proposal?

@melvin-bot melvin-bot bot removed the Overdue label Feb 5, 2024
Copy link

melvin-bot bot commented Feb 6, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@adelekennedy
Copy link

adelekennedy commented Feb 6, 2024

we have a selected proposal - just waiting for engineer review @Gonals

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Feb 8, 2024
Copy link

melvin-bot bot commented Feb 8, 2024

📣 @Ollyws 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job

Copy link

melvin-bot bot commented Feb 8, 2024

📣 @esh-g 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@melvin-bot melvin-bot bot added Reviewing Has a PR in review and removed Daily KSv2 labels Feb 8, 2024
@melvin-bot melvin-bot bot added the Weekly KSv2 label Feb 8, 2024
@melvin-bot melvin-bot bot added Monthly KSv2 and removed Weekly KSv2 labels Mar 4, 2024
Copy link

melvin-bot bot commented Mar 4, 2024

This issue has not been updated in over 15 days. @Ollyws, @Gonals, @adelekennedy, @esh-g eroding to Monthly issue.

P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!

@esh-g
Copy link
Contributor

esh-g commented Mar 4, 2024

@adelekennedy I think the payments for this issue are pending. The PR was deployed to prod 3 weeks ago.

@adelekennedy
Copy link

@esh-g thank you! It looks like the automation failed for updating the title - settling payments now

@adelekennedy
Copy link

@Ollyws it looks like you haven't accepted the offer on Upwork, once you do I can remit payment and will you take a look at the checklist below?

;;BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

  • The PR that introduced the bug has been identified. Link to the PR:
  • The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • A regression test has been added or updated so that the same bug will not reach production again. Link to the GH issue for creating the test here:

@Ollyws
Copy link
Contributor

Ollyws commented Mar 7, 2024

Just trying to track down which PR caused this.... @esh-g if you have any insights they would be much appreciated.

@Ollyws
Copy link
Contributor

Ollyws commented Mar 10, 2024

BugZero Checklist:

  • The PR that introduced the bug has been identified. Link to the PR:

#34463

  • The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:

#34463 (comment)

  • A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:

N/A

  • A regression test has been added or updated so that the same bug will not reach production again. Link to the GH issue for creating the test here:

Regression Test Proposal

1. Go offline
2. Create a room
3. Change the name of the room
4. Take a note of room name on header and room name above the composer and make sure they are same.

Do we agree 👍 or 👎

@Ollyws
Copy link
Contributor

Ollyws commented Mar 10, 2024

@adelekennedy Checklist complete and offer accepted.

@esh-g
Copy link
Contributor

esh-g commented Mar 12, 2024

@Ollyws Sorry for not replying before. I had to take a break due to health reasons, so wasn't active then. Be sure to contact anytime in future if such help is needed. Thanks!

@Ollyws
Copy link
Contributor

Ollyws commented Apr 9, 2024

@adelekennedy Can we pay and close this one? Thanks!

@Ollyws
Copy link
Contributor

Ollyws commented Apr 24, 2024

Friendly bump @adelekennedy

@adelekennedy
Copy link

So sorry!! Paying this out now

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. External Added to denote the issue can be worked on by a contributor Monthly KSv2 Reviewing Has a PR in review
Projects
None yet
Development

No branches or pull requests

6 participants