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-06-13] [$125] Fix inconsistency with task details view #42354

Closed
6 tasks done
thienlnam opened this issue May 17, 2024 · 41 comments
Closed
6 tasks done
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

@thienlnam
Copy link
Contributor

thienlnam commented May 17, 2024

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


Version Number:
Reproducible in staging?:
Reproducible in production?:
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:
Slack conversation: #40858 (comment)

Action Performed:

  1. Create a task
  2. Click on the task details page

Expected Result:

The details view should match the report header view like these other report types
image

Actual Result:

Currently the task details page just shows the task title
image

Workaround:

Can the user still use Expensify without this being fixed? Have you informed them of the workaround?

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

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @
Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01d9c0a9595a888d2c
  • Upwork Job ID: 1791555314142978048
  • Last Price Increase: 2024-05-24
  • Automatic offers:
    • GandalfGwaihir | Contributor | 102506848
Issue OwnerCurrent Issue Owner: @
Issue OwnerCurrent Issue Owner: @joekaufmanexpensify
@thienlnam thienlnam added Weekly KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels May 17, 2024
Copy link

melvin-bot bot commented May 17, 2024

Triggered auto assignment to @joekaufmanexpensify (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.

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels May 17, 2024
@thienlnam thienlnam added External Added to denote the issue can be worked on by a contributor Weekly KSv2 and removed Daily KSv2 labels May 17, 2024
Copy link

melvin-bot bot commented May 17, 2024

Unable to auto-create job on Upwork. The BZ team member should create it manually for this issue.

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

melvin-bot bot commented May 17, 2024

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

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels May 17, 2024
@thienlnam thienlnam added External Added to denote the issue can be worked on by a contributor and removed External Added to denote the issue can be worked on by a contributor labels May 17, 2024
Copy link

melvin-bot bot commented May 17, 2024

Unable to auto-create job on Upwork. The BZ team member should create it manually for this issue.

Copy link

melvin-bot bot commented May 17, 2024

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

@thienlnam thienlnam changed the title Fix inconsistency with task details page Fix inconsistency with task details view May 17, 2024
@thienlnam thienlnam added External Added to denote the issue can be worked on by a contributor and removed External Added to denote the issue can be worked on by a contributor labels May 17, 2024
Copy link

melvin-bot bot commented May 17, 2024

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

@melvin-bot melvin-bot bot changed the title Fix inconsistency with task details view [$250] Fix inconsistency with task details view May 17, 2024
Copy link

melvin-bot bot commented May 17, 2024

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

@thienlnam thienlnam changed the title [$250] Fix inconsistency with task details view [$125] Fix inconsistency with task details view May 17, 2024
Copy link

melvin-bot bot commented May 17, 2024

Upwork job price has been updated to $125

@allgandalf
Copy link
Contributor

allgandalf commented May 17, 2024

Proposal

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

Inconsistency in subtitle for task

What is the root cause of that problem?

We do not add subtitle if the report is a task:

{!isEmptyObject(parentNavigationSubtitleData) && (isMoneyRequestReport || isInvoiceReport || isMoneyRequest) && (

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

Add a extra or check || as ReportUtils.isTaskReport(report), or create a separate variable isTaskReport.

So the updated condition will now be:

{!isEmptyObject(parentNavigationSubtitleData) && (isMoneyRequestReport || isInvoiceReport || isMoneyRequest || ReportUtils.isTaskReport(report)) && (

We can consolidate the ReportUtils.isTaskReport(report) function by assigning this value to a variable isTaskReport.

Result Screenshot

Screenshot 2024-05-18 at 1 16 52 AM

@nkdengineer
Copy link
Contributor

Proposal

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

The incorrect number of tags is shown, "3 selected" is shown instead of "2 selected"

What is the root cause of that problem?

For the header view, we always show the parent subtitle if parentNavigationSubtitleData isn't not empty

{!isEmptyObject(parentNavigationSubtitleData) && (

{Object.keys(parentNavigationSubtitleData).length > 0 && (

But in ReportDetailPage, we only show this for some specials report

{!isEmptyObject(parentNavigationSubtitleData) && (isMoneyRequestReport || isInvoiceReport || isMoneyRequest) && (

That is an inconsistency

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

To consistent with the header view, we should always show the parent subtitle here by removing the check for special report

{!isEmptyObject(parentNavigationSubtitleData) && (
    <ParentNavigationSubtitle
        parentNavigationSubtitleData={parentNavigationSubtitleData}
        parentReportID={report?.parentReportID}
        parentReportActionID={report?.parentReportActionID}
        pressableStyles={[styles.mt1, styles.mw100]}
    />
)}

{!isEmptyObject(parentNavigationSubtitleData) && (isMoneyRequestReport || isInvoiceReport || isMoneyRequest) && (

What alternative solutions did you explore? (Optional)

NA

@melvin-bot melvin-bot bot added the Overdue label May 20, 2024
Copy link

melvin-bot bot commented May 29, 2024

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

@joekaufmanexpensify
Copy link
Contributor

Great! @GandalfGwaihir could you please share when you can have a PR up?

@allgandalf
Copy link
Contributor

Was AFK, got back to keyboard just now, let me quickly come up with a PR ASAP! working now

@allgandalf
Copy link
Contributor

PR was merged, waiting to be deployed to staging 👍

@joekaufmanexpensify
Copy link
Contributor

Great. TY!

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Jun 6, 2024
@melvin-bot melvin-bot bot changed the title [$125] Fix inconsistency with task details view [HOLD for payment 2024-06-13] [$125] Fix inconsistency with task details view Jun 6, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jun 6, 2024
Copy link

melvin-bot bot commented Jun 6, 2024

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

Copy link

melvin-bot bot commented Jun 6, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.79-11 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-06-13. 🎊

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

  • @Ollyws requires payment through NewDot Manual Requests
  • @allgandalf requires payment (Needs manual offer from BZ)

Copy link

melvin-bot bot commented Jun 6, 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:

  • [@Ollyws / @allgandalf] The PR that introduced the bug has been identified. Link to the PR: We haven't enabled this behaviour for task reports since the inception of the details page so I don't think we can pin this on any PR.
  • [@Ollyws / @allgandalf] 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: N/A
  • [@Ollyws / @allgandalf] 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
  • [@Ollyws / @allgandalf] Determine if we should create a regression test for this bug.
  • [@Ollyws / @allgandalf] 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.
  • [@joekaufmanexpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon: N/A

@joekaufmanexpensify
Copy link
Contributor

@Ollyws offer sent for $125. Also, could you please complete BZ so we can prep to issue payment?

@joekaufmanexpensify
Copy link
Contributor

@Ollyws Ah, I see you get paid via NewDot now, so withdrew the upwork offer.

@Ollyws
Copy link
Contributor

Ollyws commented Jun 12, 2024

BugZero Checklist:

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

We haven't enabled this behaviour for task reports since the inception of the details page so I don't think we can pin this on any 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:

N/A

  • 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

  • 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.

Regression Test Proposal

1. Create a task
2. Click on the task details page
3. Verify that subtitle is visible for tasks details page

Do we agree 👍 or 👎

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Jun 12, 2024
@Ollyws
Copy link
Contributor

Ollyws commented Jun 12, 2024

Requested in ND.

@joekaufmanexpensify
Copy link
Contributor

TY! This is a pretty minor visual bug, so IDT we need a regression test to be done every time here. So noted this above.

@joekaufmanexpensify
Copy link
Contributor

All set to issue payment. We need to pay:

@joekaufmanexpensify
Copy link
Contributor

@allgandalf $125 sent and contract ended!

@joekaufmanexpensify
Copy link
Contributor

Upwork job closed.

@joekaufmanexpensify
Copy link
Contributor

All set. Thanks everyone!

@JmillsExpensify
Copy link

$125 approved for @Ollyws

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

8 participants