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

[HOLD for payment 2024-08-05] [$250] Task – Assignee appears in LHN only after go back online if change it offline #45167

Closed
4 of 6 tasks
izarutskaya opened this issue Jul 10, 2024 · 24 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor

Comments

@izarutskaya
Copy link

izarutskaya commented Jul 10, 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: v9.0.6-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: https://expensify.testrail.io/index.php?/tests/view/4706414
Email or phone of affected tester (no customers): [email protected]
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team

Action Performed:

  1. Go to https://staging.new.expensify.com/
  2. Log in
  3. Open any chat
  4. Create a task and assign to any user
  5. Open task details and go offline
  6. Assign task to another user
  7. Observe task details in LHN
  8. Go back online

Expected Result:

Assignee appears in LHN if change it offline

Actual Result:

Assignee appears in LHN only after go back online if change it offline

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

Bug6537976_1720622092420.LHN_assignee_offline.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01e2d6ef7ce1dc54d0
  • Upwork Job ID: 1811555469876506041
  • Last Price Increase: 2024-07-12
  • Automatic offers:
    • shubham1206agra | Reviewer | 103214635
    • nkdengineer | Contributor | 103214638
Issue OwnerCurrent Issue Owner: @shubham1206agra
@izarutskaya izarutskaya added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jul 10, 2024
Copy link

melvin-bot bot commented Jul 10, 2024

Triggered auto assignment to @mallenexpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@izarutskaya
Copy link
Author

We think this issue might be related to the #vip-vsb.

@nkdengineer
Copy link
Contributor

nkdengineer commented Jul 10, 2024

Proposal

Please re-state the problem that we are trying to solve in this issue.

Assignee appears in LHN only after go back online if change it offline

What is the root cause of that problem?

The format of html of task edited action doesn't match with the userMention regex /<mention-user accountID="(\d+)" *\/>/gi when we convert HTML to text so before the edit task API is complete, the assignee doesn't display in LHN

App/src/libs/ReportUtils.ts

Lines 4912 to 4915 in 7bed113

html: `assigned to <mention-user accountID=${assigneeAccountID}></mention-user>`,
},
],
person: [

What changes do you think we should make in order to solve the problem?

Update the HTML here in the same format as the data that is returned from BE

Screenshot 2024-07-10 at 23 00 42
html: `assigned to <mention-user accountID="${assigneeAccountID}"/>`,

App/src/libs/ReportUtils.ts

Lines 4912 to 4915 in 7bed113

html: `assigned to <mention-user accountID=${assigneeAccountID}></mention-user>`,
},
],
person: [

What alternative solutions did you explore? (Optional)

@mallenexpensify mallenexpensify added the External Added to denote the issue can be worked on by a contributor label Jul 12, 2024
@melvin-bot melvin-bot bot changed the title Task – Assignee appears in LHN only after go back online if change it offline [$250] Task – Assignee appears in LHN only after go back online if change it offline Jul 12, 2024
Copy link

melvin-bot bot commented Jul 12, 2024

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

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

melvin-bot bot commented Jul 12, 2024

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

@mallenexpensify
Copy link
Contributor

mallenexpensify commented Jul 12, 2024

Torn here. With the new assignee being greyed out, I wouldn't expect it to be accurate elsewhere. That said... there's no details in LHN, I would expect the old assignee to show. What do you think @shubham1206agra ?

image

@mallenexpensify mallenexpensify removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Jul 12, 2024
@shubham1206agra
Copy link
Contributor

shubham1206agra commented Jul 12, 2024

image

Torn here. With the new assignee being greyed out, I wouldn't expect it to be accurate elsewhere. That said... there's no details in LHN, I would expect the old assignee to show. What do you think @shubham1206agra ?

image

@mallenexpensify We should show the new assignee instead here. Since optimistic action assumes the state the action would be successful. And in this case successful action would be changed assignee.

@mallenexpensify
Copy link
Contributor

Thanks @shubham1206agra , I'll take your word for it and, when a proposal is recommended, the internal engineer will chime in too. Can you review the proposal above? Thx

Copy link

melvin-bot bot commented Jul 15, 2024

@mallenexpensify, @shubham1206agra Whoops! This issue is 2 days overdue. Let's get this updated quick!

@melvin-bot melvin-bot bot added the Overdue label Jul 15, 2024
Copy link

melvin-bot bot commented Jul 17, 2024

@mallenexpensify, @shubham1206agra Eep! 4 days overdue now. Issues have feelings too...

Copy link

melvin-bot bot commented Jul 19, 2024

@mallenexpensify, @shubham1206agra 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

@mallenexpensify
Copy link
Contributor

@shubham1206agra can you review the proposal from @nkdengineer above plz?

@shubham1206agra
Copy link
Contributor

@nkdengineer's proposal looks good.

🎀👀🎀 C+ reviewed

@melvin-bot melvin-bot bot removed the Overdue label Jul 20, 2024
Copy link

melvin-bot bot commented Jul 20, 2024

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

Copy link

melvin-bot bot commented Jul 22, 2024

📣 @shubham1206agra 🎉 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

@melvin-bot melvin-bot bot added the Overdue label Jul 22, 2024
Copy link

melvin-bot bot commented Jul 22, 2024

📣 @nkdengineer 🎉 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 Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Overdue Daily KSv2 Weekly KSv2 labels Jul 23, 2024
@melvin-bot melvin-bot bot changed the title [$250] Task – Assignee appears in LHN only after go back online if change it offline [HOLD for payment 2024-08-05] [$250] Task – Assignee appears in LHN only after go back online if change it offline Jul 29, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jul 29, 2024
Copy link

melvin-bot bot commented Jul 29, 2024

Reviewing label has been removed, please complete the "BugZero Checklist".

Copy link

melvin-bot bot commented Jul 29, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.13-4 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

If no regressions arise, payment will be issued on 2024-08-05. 🎊

For reference, here are some details about the assignees on this issue:

Copy link

melvin-bot bot commented Jul 29, 2024

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:

  • [@shubham1206agra] The PR that introduced the bug has been identified. Link to the PR:
  • [@shubham1206agra] 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:
  • [@shubham1206agra] 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:
  • [@shubham1206agra] Determine if we should create a regression test for this bug.
  • [@shubham1206agra] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@mallenexpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels Aug 5, 2024
@mallenexpensify
Copy link
Contributor

mallenexpensify commented Aug 7, 2024

Contributor: @nkdengineer paid $250 via Upwork
Contributor+: @shubham1206agra paid $250 via Upwork

@shubham1206agra , plz complete the BZ checklist above.

@melvin-bot melvin-bot bot removed the Overdue label Aug 7, 2024
@shubham1206agra
Copy link
Contributor

@mallenexpensify I also require payment through Upwork.

@shubham1206agra
Copy link
Contributor

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:

@mallenexpensify
Copy link
Contributor

Thanks @shubham1206agra , got ya paid, updated confirmation post ablve.

@shubham1206agra any reason we wouldn't want a test case for this?

@shubham1206agra
Copy link
Contributor

any reason we wouldn't want a test case for this?

This was a basic bug which should be caught again in QA (if it happens) whenever user changes the assignee.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor
Projects
No open projects
Archived in project
Development

No branches or pull requests

5 participants