Skip to content

[HOLD for payment 2023-08-17] [$1000] Update Task title/description/assignee when offline is not grey out #23200

Closed

Description

@kavimuru

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 any Task report
  2. Turn off network
  3. Update task title/description/assignee

Expected Result:

Task title/description/assignee should be grey out when update in offline mode

Actual Result:

Task title/description/assignee is not grey out

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 / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: 1.3.43-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

Screen.Recording.2023-07-17.at.23.20.26.mov

Snip - (4) New Expensify - Google Chrome

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

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0138286787014f7dd4
  • Upwork Job ID: 1682219760636948480
  • 2023-07-21
  • Automatic offers:
    • mollfpr | Reviewer | 25750552
    • | | 0
    • hoangzinh | Reporter | 25750553

Activity

  1. added
    Daily
    Bug
    on Jul 19, 2023
  2. melvin-bot commented on Jul 19, 2023

    @melvin-bot

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

  3. melvin-bot commented on Jul 19, 2023

    @melvin-bot

    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
  4. allroundexperts commented on Jul 19, 2023

    @allroundexperts
    Contributor

    Proposal

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

    Updated task actions are not greyed out when offline.

    What is the root cause of that problem?

    We're not wrapping the items inside the TaskView component inside a OfflineWithFeedback component.

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

    Wrap the items inside TaskView inside OfflineWithFeedback. In order for this to work, we need to make sure that the edited fields are correctly represented in the pendingFields section of the report. To do this, we can add the appropriate pending fields while setting the optimistic data in editTaskAndNavigate and createTaskAndNavigate function.

    To demonstrate the approach, I'll just show the steps needed to implement the greying out of the task title on edit.

    1. Replace the fragment here with:
    <OfflineWithFeedback
        onClose={() => {}}
        pendingAction={props.report.pendingFields.reportName}
        errors={null}
        errorRowStyles={[styles.ml10, styles.mr2]}
    >
    .
    .
    .
    </OfflineWithFeedback>
    
    1. Add the following pendingFields in the report when editing a task here.
    pendingFields: {
        ...title && {reportName: 'update'},
    },
    
    1. Set the pendingFields as {} in the success data.

    Result

    Screenshot 2023-07-20 at 3 04 36 AM

    What alternative solutions did you explore? (Optional)

    Instead of using OfflineWithFeedback component, we can just add a style that sets opacity to 0.5 if there is a pending field in the report.

  5. added
    External
    on Jul 21, 2023
  6. changed the title [-]Update Task title/description/assignee when offline is not grey out[/-] [+][$1000] Update Task title/description/assignee when offline is not grey out[/+] on Jul 21, 2023
  7. melvin-bot commented on Jul 21, 2023

    @melvin-bot
  8. added
    Help Wanted
    on Jul 21, 2023
  9. melvin-bot commented on Jul 21, 2023

    @melvin-bot

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

  10. melvin-bot commented on Jul 21, 2023

    @melvin-bot

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

  11. tjferriss commented on Jul 21, 2023

    @tjferriss
    Contributor

    It actually looks like it's intended that we do not grey this out per #22907

  12. 27 remaining items

  13. melvin-bot commented on Aug 10, 2023

    @melvin-bot

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

  14. melvin-bot commented on Aug 10, 2023

    @melvin-bot

    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.

    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
  15. melvin-bot commented on Aug 10, 2023

    @melvin-bot

    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:

    • [@mollfpr / @allroundexperts] The PR that introduced the bug has been identified. Link to the PR:
    • [@mollfpr / @allroundexperts] 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:
    • [@mollfpr / @allroundexperts] 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:
    • [@mollfpr / @allroundexperts] Determine if we should create a regression test for this bug.
    • [@mollfpr / @allroundexperts] 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.
    • [@tjferriss] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:
  16. tjferriss commented on Aug 15, 2023

    @tjferriss
    Contributor

    @hoangzinh and @mollfpr are both hired in Upworks: https://www.upwork.com/ab/applicants/1682219760636948480/hired. We're waiting on the regression period for payment.

    @mollfpr @allroundexperts can you get started on the checklist?

  17. mollfpr commented on Aug 18, 2023

    @mollfpr
    Contributor

    [@mollfpr / @allroundexperts] The PR that introduced the bug has been identified. Link to the PR:
    [@mollfpr / @allroundexperts] 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:

    I don't think there's an offending PR. We haven't implemented the offline feedback in the first place.

    [@mollfpr / @allroundexperts] 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:

    The regression step should be enough.

    [@mollfpr / @allroundexperts] Determine if we should create a regression test for this bug.
    [@mollfpr / @allroundexperts] 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. Go to any Task report
    2. Turn off the network
    3. Update task title/description/assignee
    4. Verify that the updated fields are greyed out
    5. Turn on the network
    6. Verify that fields are not greyed out
    7. Turn off the network again
    8. Verify that fields are not greyed out
  18. neil-marcellini commented on Aug 28, 2023

    @neil-marcellini
    Contributor
  19. michaelhaxhiu commented on Aug 30, 2023

    @michaelhaxhiu
    Contributor

    Should this PR have addressed the problem cited in #25956 (comment)? I realize that's a separate bug report, but it appears super similar / duplicate in terms of the style of bug. So I'm curious if we can update the PR here (or draft a new PR) to accommodate this too?

  20. mollfpr commented on Aug 31, 2023

    @mollfpr
    Contributor

    @michaelhaxhiu My test on the PR shows the assignee field grey out but not in the current main.

    I think #25956 is the legit report. The issue is a regression from #22778. In this issue PR, we are still using editTaskAndNavigate and have the RBR action set up there. In #22778, we changed that to editTaskAssigneeAndNavigate, but it hasn't got the RBR action.

  21. michaelhaxhiu commented on Aug 31, 2023

    @michaelhaxhiu
    Contributor

    Thanks luthfi @mollfpr i appreciate your input as always 🙏

  22. tjferriss commented on Sep 11, 2023

    @tjferriss
    Contributor

    Regression test submitted to Applause.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Awaiting PaymentBugExternalWeekly

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions