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

[WAITING ON DOMINICTB][HOLD for payment 2024-08-01] [$250] Report field - List field shows "dropdown" as selected when different initial value is default #44843

Closed
6 tasks done
kavimuru opened this issue Jul 4, 2024 · 32 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

@kavimuru
Copy link

kavimuru commented Jul 4, 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: 9.0.4-0
Reproducible in staging?: y
Reproducible in production?: n
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4695978
Email or phone of affected tester (no customers):
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 chat.
  3. Submit two expenses.
  4. Go to workspace settings > Report fields.
  5. Click Add field.
  6. Create a List type report field, add a few list values and select an initial value (important).
  7. Go to workspace chat.

Expected Result:

The List type report field will have the initial list value in Step 6 as selected.

Actual Result:

The List type report field shows "dropdown" as the initial list value.

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

Bug6533100_1720103746001.20240704_223441.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0162c3c8677de552d3
  • Upwork Job ID: 1808914763702199073
  • Last Price Increase: 2024-07-04
  • Automatic offers:
    • shubham1206agra | Contributor | 102994079
Issue OwnerCurrent Issue Owner: @jliexpensify
@kavimuru kavimuru 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 @jliexpensify (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

melvin-bot bot commented Jul 4, 2024

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

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Jul 4, 2024
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.

@kavimuru
Copy link
Author

kavimuru commented Jul 4, 2024

@stitesExpensify 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.

@kavimuru
Copy link
Author

kavimuru commented Jul 4, 2024

We think this bug might be related to #wave-collect - Release 1

@dominictb
Copy link
Contributor

dominictb commented Jul 4, 2024

Proposal

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

The List type report field shows "dropdown" as the initial list value.

What is the root cause of that problem?

we already have the logic to merge the reportField from policy and report in

const mergedFieldIds = Array.from(new Set([...policyReportFields.map(({fieldID}) => fieldID), ...reportFields.map(({fieldID}) => fieldID)]));

But we're not setting the optimistic data for report.fieldList in

so the reportFiled in this case will be the reportField from policy

const fieldValue = isTitleField ? report.reportName : reportField.value ?? reportField.defaultValue;

and it has value: dropdown

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

We can get the report by policyID and expense type.

then set the optimistic data for reportField of report same as what BE return (without value key)

Screenshot 2024-07-04 at 23 40 25

We can check the bug for other field type (text, date) as well.

What alternative solutions did you explore? (Optional)

We can remove the value: dropdown in reportField of policy optimistically

Result

Screenshot 2024-07-05 at 00 10 07

@dominictb
Copy link
Contributor

Updated proposal to add the result

@tgolen
Copy link
Contributor

tgolen commented Jul 4, 2024

@dominictb can you please create a PR for this? Were you able to identify if this is a regression, and if so, from which PR?

@tgolen tgolen added the External Added to denote the issue can be worked on by a contributor label Jul 4, 2024
Copy link

melvin-bot bot commented Jul 4, 2024

Job added to Upwork: https://www.upwork.com/jobs/~0162c3c8677de552d3

@melvin-bot melvin-bot bot changed the title Report field - List field shows "dropdown" as selected when different initial value is default [$250] Report field - List field shows "dropdown" as selected when different initial value is default Jul 4, 2024
@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
@tgolen tgolen assigned tgolen and unassigned stitesExpensify Jul 4, 2024
Copy link

melvin-bot bot commented Jul 4, 2024

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

@tgolen tgolen removed the DeployBlocker Indicates it should block deploying the API label Jul 4, 2024
@luacmartins
Copy link
Contributor

luacmartins commented Jul 4, 2024

Report fields are under a beta and this doesn't really break anything, so removing the deployer label.

@luacmartins luacmartins removed the DeployBlockerCash This issue or pull request should block deployment label Jul 4, 2024
@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Jul 9, 2024
@rushatgabhane
Copy link
Member

rushatgabhane commented Jul 17, 2024

Approved, pending internal review and merge

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Jul 25, 2024
@melvin-bot melvin-bot bot changed the title [$250] Report field - List field shows "dropdown" as selected when different initial value is default [HOLD for payment 2024-08-01] [$250] Report field - List field shows "dropdown" as selected when different initial value is default Jul 25, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jul 25, 2024
Copy link

melvin-bot bot commented Jul 25, 2024

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

Copy link

melvin-bot bot commented Jul 25, 2024

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

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

  • @rushatgabhane requires payment through NewDot Manual Requests
  • @dominictb requires payment (Needs manual offer from BZ)

Copy link

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

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

@jliexpensify
Copy link
Contributor

@dominictb what's your Upworks profile? Could you also add your Upworks name to your GH profile please?

Alternatively, you can apply here: https://www.upwork.com/jobs/~0162c3c8677de552d3

@jliexpensify
Copy link
Contributor

jliexpensify commented Jul 25, 2024

Payment Summary

Upworks job

@shubham1206agra
Copy link
Contributor

@rushatgabhane will be given payment at the end of project.

@jliexpensify
Copy link
Contributor

Cheers, fixed!

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Jul 31, 2024
@jliexpensify
Copy link
Contributor

bump @dominictb what's your Upworks profile? Could you also add your Upworks name to your GH profile please?

Alternatively, you can apply here: https://www.upwork.com/jobs/~0162c3c8677de552d3

Copy link

melvin-bot bot commented Aug 1, 2024

Payment Summary

Upwork Job

BugZero Checklist (@jliexpensify)

  • I have verified the correct assignees and roles are listed above and updated the neccesary manual offers
  • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants/1808914763702199073/hired)
  • I have paid out the Upwork contracts or cancelled the ones that are incorrect
  • I have verified the payment summary above is correct

@jliexpensify
Copy link
Contributor

Bump @dominictb to provide me with your upworks profile

Bump @rushatgabhane for checklist

@rushatgabhane
Copy link
Member

rushatgabhane commented Aug 2, 2024

@jliexpensify regression steps to add -

  1. Go to workspace settings > Report fields.
  2. Click Add field.
  3. Create a List type report field, add a few list values and select an initial value (important).
  4. Go to workspace chat.
  5. Submit two expenses.
  6. Verify that: The List type report field will have the initial list value as selected

@rushatgabhane
Copy link
Member

no separate payment required for report fields

@jliexpensify jliexpensify changed the title [HOLD for payment 2024-08-01] [$250] Report field - List field shows "dropdown" as selected when different initial value is default [WAITING ON DOMINICTB][HOLD for payment 2024-08-01] [$250] Report field - List field shows "dropdown" as selected when different initial value is default Aug 2, 2024
@dominictb
Copy link
Contributor

@jliexpensify Sorry for the delay, here's my Upwork profile https://www.upwork.com/freelancers/~01f70bed1934fd35d5

@jliexpensify
Copy link
Contributor

Thanks @dominictb , invited you.

@dominictb
Copy link
Contributor

@jliexpensify I accepted it thanks 🙏

@jliexpensify
Copy link
Contributor

Paid, and job closed.

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
Development

No branches or pull requests

10 participants