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-16] [$1000] Web - The green line appear immediately only after comments are added to a task #23004

Closed
1 of 6 tasks
kbecciv opened this issue Jul 17, 2023 · 50 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 Weekly KSv2

Comments

@kbecciv
Copy link

kbecciv commented Jul 17, 2023

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


Action Performed:

  1. Go to staging.new.exensify.com](https://staging.new.expensify.com/)
  2. log in with your account
  3. Create a task
  4. Send a message

Expected Result:

The green line should appear immediately after creating the task

Actual Result:

The green line appear immediately only after comments are added to a task

Workaround:

Unknown

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.3.41.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
Notes/Photos/Videos: Any additional supporting documentation

image (33)

image (32)

Recording.3695.mp4

Expensify/Expensify Issue URL:
Issue reported by: @quinthar
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1689466341316849

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01179280ad6cadbb04
  • Upwork Job ID: 1681076844552364032
  • 2023-07-17
  • Automatic offers:
    • dukenv0307 | Contributor | 25783892
@kbecciv kbecciv added Daily KSv2 NewFeature Something to build that is a new item. Bug Something is broken. Auto assigns a BugZero manager. labels Jul 17, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 17, 2023

@melvin-bot
Copy link

melvin-bot bot commented Jul 17, 2023

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

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 Daily KSv2 labels Jul 17, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 17, 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

@melvin-bot
Copy link

melvin-bot bot commented Jul 17, 2023

Triggered auto assignment to Design team member for new feature review - @shawnborton (NewFeature)

@Nodebrute
Copy link
Contributor

Nodebrute commented Jul 17, 2023

Proposal

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

Web - The green line appear immediately only after comments are added to a task

What is the root cause of that problem?

We are conditionally rendering green line

{props.shouldShowHorizontalRule && <View style={styles.reportHorizontalRule} />}

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

We should remove this check here and show green line without any check and remove unused props.

       <View style={styles.reportHorizontalRule} />

Solution 2
If we want to conditionally render it then we can pass true here

shouldShowHorizontalRule={!props.isOnlyReportAction}

 <TaskView
                    report={props.report}
                    shouldShowHorizontalRule
                />

What alternative solutions did you explore? (Optional)

@melvin-bot melvin-bot bot added the Daily KSv2 label Jul 17, 2023
@BhuvaneshPatil
Copy link
Contributor

Not sure if this is a bug.

The line separates the details with the conversation. Let's take opinion expensify team.

@Pujan92
Copy link
Contributor

Pujan92 commented Jul 17, 2023

Proposal

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

Green line does not appear immediately for the task report and only appears if it has any comment

What is the root cause of that problem?

We are showing the line here conditionally where it only shows when we it is not only a ReportAction.

<TaskView
report={props.report}
shouldShowHorizontalRule={!props.isOnlyReportAction}

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

Remove shouldShowHorizontalRule prop from the TaskView component and remove the pass from the ReportActionItem as it is not required considering this change.

@anmurali anmurali added the External Added to denote the issue can be worked on by a contributor label Jul 17, 2023
@melvin-bot melvin-bot bot changed the title Web - The green line appear immediately only after comments are added to a task [$1000] Web - The green line appear immediately only after comments are added to a task Jul 17, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 17, 2023

Job added to Upwork: https://www.upwork.com/jobs/~01179280ad6cadbb04

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

melvin-bot bot commented Jul 17, 2023

Current assignees @anmurali and @bfitzexpensify are eligible for the External assigner, not assigning anyone new.

@melvin-bot
Copy link

melvin-bot bot commented Jul 17, 2023

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

@anmurali anmurali removed the NewFeature Something to build that is a new item. label Jul 17, 2023
@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Jul 17, 2023
@Nodebrute
Copy link
Contributor

Nodebrute commented Jul 24, 2023

 <TaskView
                    report={props.report}
                    shouldShowHorizontalRule
                />

@MonilBhavsar @narefyev91 In my proposal I suggested to simply use "shouldShowHorizontalRule". It makes more sense. #23004 (comment)

@dukenv0307
Copy link
Contributor

dukenv0307 commented Jul 25, 2023

I'm little bit sideways for providing same prop with same condition and logic to two different components

@MonilBhavsar I don't think this is problem. If we decide to move TaskView and MoneyReportView to ReportActionItemParentAction, we also pass the isOnlyReportAction prop to both MoneyReportView to ReportActionItemParentAction

If we don't want to create new props in ReportActionItem. We can consider moving TaskView and MoneyReportView to ReportActionItemParentAction instead of ReportActionItem

It also makes sense because MoneyRequestView and TaskView only appear if actionName === CONST.REPORT.ACTIONS.TYPE.CREATED. So It is more consistent If we move this code

if (props.action.actionName === CONST.REPORT.ACTIONS.TYPE.CREATED) {
const parentReport = ReportActionsUtils.getParentReportAction(props.report);
if (ReportActionsUtils.isTransactionThread(parentReport)) {
return (
<MoneyRequestView
report={props.report}
shouldShowHorizontalRule={!props.isOnlyReportAction}
/>
);
}
if (ReportUtils.isTaskReport(props.report)) {
return (
<TaskView
report={props.report}
shouldShowHorizontalRule={!props.isOnlyReportAction}
/>
);
}
if (ReportUtils.isExpenseReport(props.report) || ReportUtils.isIOUReport(props.report)) {
return (
<MoneyReportView
report={props.report}
shouldShowHorizontalRule={!props.isOnlyReportAction}
/>
);
}

to ReportActionItemParentAction

@melvin-bot melvin-bot bot added the Overdue label Jul 26, 2023
@MonilBhavsar
Copy link
Contributor

I don't think this is problem. If we decide to move TaskView and MoneyReportView to ReportActionItemParentAction, we also pass the isOnlyReportAction prop to both MoneyReportView to ReportActionItemParentAction

Thanks! just wanted to know how we were planning to approach. We can pass a new prop, no worries. And I think, let's use use either of shouldShowHorizontalRule={!props.isOnlyReportAction} or shouldShowHorizontalRule={!props.shouldHideThreadDividerLine} for all components - Task, Thread, MoneyRequest, and to have consistency?

@melvin-bot melvin-bot bot removed the Overdue label Jul 27, 2023
@MonilBhavsar
Copy link
Contributor

@narefyev91 any though on this fisrt proposal to completely remove the condition, as we decided to display line in all cases

@dukenv0307
Copy link
Contributor

And I think, let's use use either of shouldShowHorizontalRule={!props.isOnlyReportAction} or shouldShowHorizontalRule={!props.shouldHideThreadDividerLine} for all components - Task, Thread, MoneyRequest, and to have consistency?

@MonilBhavsar My main solution is mentioned here can do that.

any though on #23004 (comment) fisrt proposal to completely remove the condition, as we decided to display line in all cases

The first proposal doesn't cover the case user mark as unread as mentioned here

@Nodebrute
Copy link
Contributor

@dukenv0307's right. I was not aware of the case where we have to hide the green line.

@MonilBhavsar
Copy link
Contributor

@dukenv0307 thanks for clarifying!
I was looking at this draft PR https://github.com/Expensify/App/pull/23055/files and the prop value for shouldShowHorizontalRule was passed differently only for TaskView. I believe we can pass the same for all different types of report views.

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Jul 27, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 27, 2023

📣 @dukenv0307 🎉 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 📖

@dukenv0307
Copy link
Contributor

@narefyev91 The PR is ready for review: #23154

@melvin-bot
Copy link

melvin-bot bot commented Aug 4, 2023

Based on my calculations, the pull request did not get merged within 3 working days of assignment. Please, check out my computations here:

  • when @dukenv0307 got assigned: 2023-07-27 09:27:10 Z
  • when the PR got merged: 2023-08-04 07:37:49 UTC
  • days elapsed: 5

On to the next one 🚀

@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 9, 2023
@melvin-bot melvin-bot bot changed the title [$1000] Web - The green line appear immediately only after comments are added to a task [HOLD for payment 2023-08-16] [$1000] Web - The green line appear immediately only after comments are added to a task Aug 9, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 9, 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 9, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 9, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.51-2 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-16. 🎊

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

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

@melvin-bot melvin-bot bot added the Overdue label Aug 21, 2023
@zanyrenney
Copy link
Contributor

Payment summary:

reporting bonus $0 - reported by internal Expensify employee
C+ payout: @narefyev91 (expert agency paid outside upwork)
C payout: $1000 no urgency bonus

@dukenv0307 you've been paid so closing this one out!

@melvin-bot melvin-bot bot removed the Overdue label Aug 21, 2023
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 Weekly KSv2
Projects
None yet
Development

No branches or pull requests