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 2023-08-24] Show chats in the LHN that have at least 1 ADDComment action, or 1 draft message #14523

Closed
6 tasks done
JmillsExpensify opened this issue Jan 24, 2023 · 161 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2

Comments

@JmillsExpensify
Copy link

JmillsExpensify commented Jan 24, 2023

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


Action Performed:

  1. Go to https://staging.new.expensify.com/
  2. Login with any account
  3. Search for a user that you don't have any messages with, open the chat but don't send any message

Expected Result:

Chat should not show in the LHN as there is not at least 1 ADDComment action, or 1 draft message.

Actual Result:

Empty chat shows in the LHN and remains in the LHN after simply navigating to it.

Workaround:

None

Platforms:

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

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: 1.2.58-3
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
Notes/Photos/Videos: Any additional supporting documentation
Expensify/Expensify Issue URL:
Issue reported by:
Slack conversation:

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01fbd874b8451c4608
  • Upwork Job ID: 1618016837618089984
  • 2023-01-24
  • Automatic offers:
    • | | 0
@JmillsExpensify JmillsExpensify added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jan 24, 2023
@JmillsExpensify JmillsExpensify self-assigned this Jan 24, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jan 24, 2023

Current assignee @JmillsExpensify is eligible for the Bug assigner, not assigning anyone new.

@melvin-bot melvin-bot bot locked and limited conversation to collaborators Jan 24, 2023
@JmillsExpensify JmillsExpensify added the Internal Requires API changes or must be handled by Expensify staff label Jan 24, 2023
@melvin-bot melvin-bot bot unlocked this conversation Jan 24, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jan 24, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Jan 24, 2023

Triggered auto assignment to Contributor Plus for review of internal employee PR - @thesahindia (Internal)

@JmillsExpensify
Copy link
Author

Pretty sure this is internal based on the this discussion, so I'm starting with that route first for now.

@melvin-bot melvin-bot bot added the Overdue label Jan 30, 2023
@JmillsExpensify
Copy link
Author

Huh, I'm just seeing that now one internal was added to this issue. I'm not sure why that's the case. Trying to more labels to hopefully get it right.

@melvin-bot melvin-bot bot removed the Overdue label Jan 31, 2023
@JmillsExpensify JmillsExpensify added Internal Requires API changes or must be handled by Expensify staff and removed Internal Requires API changes or must be handled by Expensify staff labels Jan 31, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jan 31, 2023

Current assignee @thesahindia is eligible for the Internal assigner, not assigning anyone new.

@JmillsExpensify JmillsExpensify added the External Added to denote the issue can be worked on by a contributor label Jan 31, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jan 31, 2023

Current assignee @JmillsExpensify is eligible for the External assigner, not assigning anyone new.

@melvin-bot
Copy link

melvin-bot bot commented Jan 31, 2023

Current assignee @thesahindia is eligible for the External assigner, not assigning anyone new.

@melvin-bot
Copy link

melvin-bot bot commented Jan 31, 2023

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

@JmillsExpensify JmillsExpensify removed the External Added to denote the issue can be worked on by a contributor label Jan 31, 2023
@JmillsExpensify
Copy link
Author

@PauloGasparSv Do you mind weighing in on this issue and whether we can open it up for external? Thank you!

@PauloGasparSv
Copy link
Contributor

Hey @JmillsExpensify I'm pretty sure this can be an External change. I think we can add a filter in shouldReportBeInOptionList that filters out empty chats. That method is already called to filter out chats in LNH and the Search option (before you type anything)

But I'm not sure which fields to check so I created a thread on slack to discuss that

@JmillsExpensify
Copy link
Author

Ok great! I'll add the external label in the meantime, looks like there is largely agreement in that thread.

@JmillsExpensify JmillsExpensify added External Added to denote the issue can be worked on by a contributor and removed Internal Requires API changes or must be handled by Expensify staff labels Feb 2, 2023
@melvin-bot
Copy link

melvin-bot bot commented Feb 2, 2023

Current assignee @JmillsExpensify is eligible for the External assigner, not assigning anyone new.

@PauloGasparSv
Copy link
Contributor

P.R. is under review!

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Aug 14, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 15, 2023

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Aug 17, 2023
@melvin-bot melvin-bot bot changed the title Show chats in the LHN that have at least 1 ADDComment action, or 1 draft message [HOLD for payment 2023-08-24] Show chats in the LHN that have at least 1 ADDComment action, or 1 draft message Aug 17, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 17, 2023

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

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Aug 17, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 17, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.54-13 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 2023-08-24. 🎊

After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

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

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

@melvin-bot
Copy link

melvin-bot bot commented Aug 17, 2023

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:

  • [@thesahindia] The PR that introduced the bug has been identified. Link to the PR:
  • [@thesahindia] 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:
  • [@thesahindia] 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:
  • [@thesahindia] Determine if we should create a regression test for this bug.
  • [@thesahindia] 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.
  • [@JmillsExpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@JmillsExpensify
Copy link
Author

Woo! It's live. Great work everyone getting this merged.

@melvin-bot melvin-bot bot added the Overdue label Aug 28, 2023
@JmillsExpensify
Copy link
Author

@thesahindia Can you get the BZ checklist kicked off?

@melvin-bot melvin-bot bot removed the Overdue label Aug 30, 2023
@thesahindia
Copy link
Member

It's a new feature. We can add a test case if we don't have one

Empty chat shouldn't stay in LNH

  1. Sign into newDot
  2. Start a new chat with an account.
  3. Make sure the new chat opens and is shown in the LNH
  4. [WEB ONLY]: Copy the chat's reportID (last number in the chat's URL)
  5. Open another existing chat (like concierge), make sure the chat disappears from the LNH
  6. Start a chat again with that same account, make sure the account shows up in the Options list since you already had a chat with it before
  7. Make sure the chat opens and has the same reportID (has the same URL)

Chat should stay in LNH if it has a Draft

  1. In the same chat of used in the previous test, type some text into the composer but do not send the message
  2. Open another existing chat (like concierge), make sure the chat stays in the LNH and shows the draft icon

Not-Empty chat should stay in LNH

  1. Send a message in the same chat from the previous test.
  2. Open another existing chat (like concierge), make sure the chat stays in the LNH.

Deleting messages and leaving chat empty should remove it from LNH

  1. Open a chat that has a message sent inside it
  2. Delete that message so the chat becomes empty
  3. Open another existing chat (like concierge), make sure the chat disappears from the LNH.

Same tests w/ Group Chat

  1. Start a new group chat with two accounts "B" and "C"
  2. Make sure the new chat opens and is shown in the LNH
  3. [WEB ONLY]: Copy the chat's reportID (last number in the chat's URL)
  4. Open another existing chat (like concierge), make sure the chat disappears from the LNH
  5. Start a group chat again with account B and C
  6. Make sure the chat opens and has the same reportID (has the same URL)

Money request should stay in LNH

  1. Start a new empty chat as userA with existing account userB
  2. Sign in as userB and send a message back to userA so you become known
  3. As userA, send new Money Request to userB inside the chat
  4. As userB, delete the message sent in step 2 so the chat becomes empty
  5. As userA, Open another existing chat (like concierge), make sure the reports don't disappear from the LNH
  6. Make sure both the Money Request and the original report stay in the LNH

Workspace Chats should stay in LNH

  1. Create a new Workspace in an account
  2. Make sure the #admins, #announce and a workspace chats are created
  3. Open another existing chat (like concierge), make sure none of the workspace related chats disappear from the LNH
  4. Invite another user to the workspace, make sure another workspace chat is created for the invited user
  5. Open another existing chat (like concierge), make sure none of the workspace related chats disappear from the LNH

@JmillsExpensify
Copy link
Author

JmillsExpensify commented Sep 13, 2023

Thanks, sorry I missed your last response. I definitely think we need to add a regression test for every new feature. As for the payment summary, does the above issue technically count as a regression? Otherwise, I believe the payment summary is simply:

@melvin-bot melvin-bot bot removed the Overdue label Sep 13, 2023
@bernhardoj
Copy link
Contributor

@JmillsExpensify I didn't do the PR, so no payment for me.

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Weekly KSv2 labels Sep 15, 2023
@JmillsExpensify
Copy link
Author

Ah thanks for your honesty! I'm not clear why you're assigned to this issue, though I'll update the payment summary in any case.

@JmillsExpensify
Copy link
Author

Regression test has been created so I think we're all done here.

@JmillsExpensify
Copy link
Author

$1,000 payment approved for @thesahindia based on BZ summary.

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

No branches or pull requests