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-17] Add comment/number of requests to IOUReport display #21178

Closed
Gonals opened this issue Jun 21, 2023 · 22 comments
Closed
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Engineering Improvement Item broken or needs improvement. Internal Requires API changes or must be handled by Expensify staff Weekly KSv2

Comments

@Gonals
Copy link
Contributor

Gonals commented Jun 21, 2023

Problem
Currently, we don't display any additional info on request reports:

Screenshot 2023-06-20 at 3 14 13 PM

Solution
Let's display the Request comment when there is a single request in the report, or the Number of requests if there's more than one. To avoid loading all actions when displaying the report preview, we'll need to add this info on the backend. Ideally on the reportAction, as two new pieces: numberOfRequests and lastRequestComment. We can then display them on the frontend

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01d1f7e066ce82b8a0
  • Upwork Job ID: 1671448886814179328
  • Last Price Increase: 2023-06-21
@Gonals Gonals added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jun 21, 2023
@Gonals Gonals self-assigned this Jun 21, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 21, 2023

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

@Gonals Gonals added the Improvement Item broken or needs improvement. label Jun 21, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 21, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@Gonals Gonals added Engineering Internal Requires API changes or must be handled by Expensify staff labels Jun 21, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 21, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Jun 21, 2023

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

@abdulrahuman5196

This comment was marked as outdated.

@melvin-bot melvin-bot bot added the Overdue label Jun 26, 2023
@Gonals Gonals added the Reviewing Has a PR in review label Jun 26, 2023
@melvin-bot melvin-bot bot removed the Overdue label Jun 26, 2023
@trjExpensify trjExpensify self-assigned this Jun 27, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 3, 2023

@JmillsExpensify, @Gonals, @abdulrahuman5196 Whoops! This issue is 2 days overdue. Let's get this updated quick!

@Gonals
Copy link
Contributor Author

Gonals commented Jul 4, 2023

I'll be back on this soon!

@melvin-bot
Copy link

melvin-bot bot commented Jul 11, 2023

@JmillsExpensify, @trjExpensify, @Gonals, @abdulrahuman5196 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@melvin-bot
Copy link

melvin-bot bot commented Jul 13, 2023

@JmillsExpensify, @trjExpensify, @Gonals, @abdulrahuman5196 Eep! 4 days overdue now. Issues have feelings too...

@abdulrahuman5196
Copy link
Contributor

Not overdue.
@Gonals Gentle bump.

@Gonals
Copy link
Contributor Author

Gonals commented Jul 18, 2023

Working on it. There was a revert

@melvin-bot
Copy link

melvin-bot bot commented Jul 25, 2023

@JmillsExpensify, @trjExpensify, @Gonals, @abdulrahuman5196 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@JmillsExpensify
Copy link

@trjExpensify Didn't we at one point in planning decide to review the number of requests in the report preview?

@Gonals
Copy link
Contributor Author

Gonals commented Jul 26, 2023

@trjExpensify Didn't we at one point in planning decide to review the number of requests in the report preview?

Sorry, what to do you mean? 😅

@trjExpensify
Copy link
Contributor

Yeah, I'm not sure. Are you talking about the reply count in threads not including requests/sys messages, only comments or something in the future? 🤔

For the report preview, I thought the logic carried into Scan Receipts was:

One request report:

  • merchant if value > else comment > else blank if no merchant or comment

multi request report:

  • number of requests on the report.

@melvin-bot melvin-bot bot removed the Daily KSv2 label Jul 26, 2023
@melvin-bot melvin-bot bot added the Weekly KSv2 label Jul 26, 2023
@Gonals
Copy link
Contributor Author

Gonals commented Jul 26, 2023

Final PR in review! (We can add the merchant for Receipts later. Comment/Number of requests for Manual requests is what we currently have)

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Aug 10, 2023
@melvin-bot melvin-bot bot changed the title Add comment/number of requests to IOUReport display [HOLD for payment 2023-08-17] Add comment/number of requests to IOUReport display Aug 10, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Aug 10, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 10, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Aug 10, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.52-5 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-17. 🎊

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 10, 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:

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

@abdulrahuman5196
Copy link
Contributor

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:

New Feature

Determine if we should create a regression test for this bug.

Yes

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.

  1. Log into your account in newdot
  2. Request money from someone else and add a comment while doing so
  3. Confirm the comment immediately shows in the request preview
  4. Request money again from the same person.
  5. Confirm that, instead of the comment, the number of requests show immediately in request preview.

@trjExpensify
Copy link
Contributor

Alrighty, $1000 due to @abdulrahuman5196 for the C+ review of the internal PR. Offer sent!

We'll take care of the regression test in a wider update.

@trjExpensify
Copy link
Contributor

Settled up!

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. Engineering Improvement Item broken or needs improvement. Internal Requires API changes or must be handled by Expensify staff Weekly KSv2
Projects
None yet
Development

No branches or pull requests

4 participants