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-07-17] [$250] Report fields - Row is not grayed out when added/edited offline #44798

Closed
6 tasks done
m-natarajan opened this issue Jul 4, 2024 · 43 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor

Comments

@m-natarajan
Copy link

m-natarajan commented Jul 4, 2024

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


Version Number: 9.0.4.0
Reproducible in staging?: y
Reproducible in production?: no new feature
If this was caught during regression testing, add the test name, ID and link from TestRail: n/a
Email or phone of affected tester (no customers): n/a
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause internal team
Slack conversation:

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to Workspace settings > Report fields (enable from More features)
  3. Go offline.
  4. Tap Add field.
  5. Add any report field and save it.

Expected Result:

The row will be grayed out when added offline.

Actual Result:

The row is not grayed out when added offline. This also applies to List values editor for List report field.

Workaround:

unknown

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

Bug6532504_1720042394848.report_fi_ofline.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~018389cb0ae25e3928
  • Upwork Job ID: 1808737930014144742
  • Last Price Increase: 2024-07-04
Issue OwnerCurrent Issue Owner: @zanyrenney
@m-natarajan m-natarajan added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. DeployBlocker Indicates it should block deploying the API labels Jul 4, 2024
Copy link

melvin-bot bot commented Jul 4, 2024

Triggered auto assignment to @techievivek (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

Copy link

melvin-bot bot commented Jul 4, 2024

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

Copy link
Contributor

github-actions bot commented Jul 4, 2024

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@m-natarajan
Copy link
Author

@techievivek FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

@m-natarajan
Copy link
Author

We think that this bug might be related to #vip-vsb

@nkdengineer
Copy link
Contributor

Proposal

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

The row is not grayed out when added offline. This also applies to List values editor for List report field.

What is the root cause of that problem?

We don't add the pendingAction field when we get the list report fields here

return Object.values(filteredPolicyFieldList).map((reportField) => ({

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

We should add pendingAction here when we get the list report field to apply the gray out style when this report field is added/edited offline.

return Object.values(filteredPolicyFieldList).map((reportField) => ({

pendingFields: {
[fieldKey]: CONST.RED_BRICK_ROAD_PENDING_ACTION.ADD,
},

What alternative solutions did you explore? (Optional)

@etCoderDysto
Copy link
Contributor

etCoderDysto commented Jul 4, 2024

Proposal

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

Row is not grayed out when added/edited offline

What is the root cause of that problem?

When creating a report field we are adding a pendingAction to pendingFileds of a policy with fieldKey here

pendingFields: {
[fieldKey]: CONST.RED_BRICK_ROAD_PENDING_ACTION.ADD,

But when creating a reportFieldList here and pass it selection list we are not including pendingField added to the policy as a 'pendingAction' prop

return Object.values(filteredPolicyFieldList).map((reportField) => ({
value: reportField.name,
fieldID: reportField.fieldID,
keyForList: String(reportField.orderWeight),
orderWeight: reportField.orderWeight,
isSelected: selectedReportFields.find((selectedReportField) => selectedReportField.name === reportField.name) !== undefined,
text: reportField.name,

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

  • Use Object.entries instead of Object.values
  • Then destructure the returned array to [reportKey, reportField
  • Then add pendingAction: policy?.pendingFields[reportKey] ?? null below
    return Object.values(filteredPolicyFieldList).map((reportField) => ({
    value: reportField.name,
    fieldID: reportField.fieldID,
    keyForList: String(reportField.orderWeight),
    orderWeight: reportField.orderWeight,
    isSelected: selectedReportFields.find((selectedReportField) => selectedReportField.name === reportField.name) !== undefined,
    text: reportField.name,

What alternative solutions did you explore? (Optional)

Result:

Screen.Recording.2024-07-04.at.7.10.52.in.the.morning.mp4

@etCoderDysto
Copy link
Contributor

Updated Proposal

  • Added video result

@techievivek
Copy link
Contributor

Adding a C+ so they can review the above proposals and help us fix this ASAP.

@techievivek techievivek added the External Added to denote the issue can be worked on by a contributor label Jul 4, 2024
@melvin-bot melvin-bot bot changed the title Report fields - Row is not grayed out when added/edited offline [$250] Report fields - Row is not grayed out when added/edited offline Jul 4, 2024
Copy link

melvin-bot bot commented Jul 4, 2024

Job added to Upwork: https://www.upwork.com/jobs/~018389cb0ae25e3928

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

melvin-bot bot commented Jul 4, 2024

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

@mollfpr
Copy link
Contributor

mollfpr commented Jul 4, 2024

Both proposal has the correct RCA, but the @etCoderDysto proposal has more detail for the implementation.

I'll suggest we go with @etCoderDysto proposal.

🎀 👀 🎀 C+ reviewed!

Copy link

melvin-bot bot commented Jul 4, 2024

Current assignee @techievivek is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new.

@nkdengineer
Copy link
Contributor

nkdengineer commented Jul 4, 2024

@mollfpr I don't think we need more detail here, I also referred the way to get the pending action here in my proposal.

pendingFields: {
[fieldKey]: CONST.RED_BRICK_ROAD_PENDING_ACTION.ADD,
},

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

melvin-bot bot commented Jul 10, 2024

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

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jul 10, 2024
Copy link

melvin-bot bot commented Jul 10, 2024

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

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

  • @mollfpr requires payment through NewDot Manual Requests
  • @etCoderDysto requires payment (Needs manual offer from BZ)

Copy link

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

  • [@mollfpr] The PR that introduced the bug has been identified. Link to the PR:
  • [@mollfpr] 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] 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] Determine if we should create a regression test for this bug.
  • [@mollfpr] 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 Weekly KSv2 and removed Weekly KSv2 labels Jul 15, 2024
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2024-07-17] [$250] Report fields - Row is not grayed out when added/edited offline [HOLD for payment 2024-07-22] [HOLD for payment 2024-07-17] [$250] Report fields - Row is not grayed out when added/edited offline Jul 15, 2024
Copy link

melvin-bot bot commented Jul 15, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.6-8 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-07-22. 🎊

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

  • @mollfpr requires payment through NewDot Manual Requests
  • @etCoderDysto requires payment (Needs manual offer from BZ)

Copy link

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

  • [@mollfpr] The PR that introduced the bug has been identified. Link to the PR:
  • [@mollfpr] 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] 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] Determine if we should create a regression test for this bug.
  • [@mollfpr] 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:

@Christinadobrzyn
Copy link
Contributor

Christinadobrzyn commented Jul 16, 2024

Hi @mollfpr @mountiny @techievivek can you check and see if this deploy blocker relates to this PR? #45461

Copy link

melvin-bot bot commented Jul 16, 2024

⚠️ 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.

@mollfpr
Copy link
Contributor

mollfpr commented Jul 16, 2024

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels Jul 16, 2024
@zanyrenney zanyrenney changed the title [HOLD for payment 2024-07-22] [HOLD for payment 2024-07-17] [$250] Report fields - Row is not grayed out when added/edited offline [HOLD for payment 2024-07-17] [$250] Report fields - Row is not grayed out when added/edited offline Jul 19, 2024
@zanyrenney
Copy link
Contributor

bump @shubham1206agra can you review the comment above as this is being raised as a deploy blocker?

@melvin-bot melvin-bot bot removed the Overdue label Jul 19, 2024
@shubham1206agra
Copy link
Contributor

@zanyrenney Already addressed here #45461 (comment)

@zanyrenney
Copy link
Contributor

Ah great, thank you!

@zanyrenney
Copy link
Contributor

I'll move ahead with the payments in this case 🙇🏼

@zanyrenney
Copy link
Contributor

have asked @etCoderDysto to apply to job for payout

@shubham1206agra
Copy link
Contributor

Payments will be handled later at one place for this.

@zanyrenney
Copy link
Contributor

Ah okay that's not what the payment summary says:
2024-07-19_14-52-55

But happy to go with that then. I will close this one out!

@etCoderDysto
Copy link
Contributor

$50 approved for @mollfpr

@zanyrenney Only mollfpr is paid. I am not paid yet.
And here is the payment summary

$50 each to @mollfpr and @etCoderDysto, once payment is made, we close this out.
cc @zanyrenney

@zanyrenney zanyrenney reopened this Jul 19, 2024
@zanyrenney
Copy link
Contributor

Cool, payment summary:
@mollfpr requires payment through NewDot Manual Requests - paid via ND
@etCoderDysto requires payment (Needs manual offer from BZ) - paid $50 via UPwork.

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 Engineering External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests