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

[PAID] [$125] Report fields - List values field does not show the content in alphabetical order #47039

Closed
6 tasks done
IuliiaHerets opened this issue Aug 8, 2024 · 38 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 Engineering External Added to denote the issue can be worked on by a contributor

Comments

@IuliiaHerets
Copy link

IuliiaHerets commented Aug 8, 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: v9.0.18-1
Reproducible in staging?: Y
Reproducible in production?: N
This issue was found when executing this PR #46382
Email or phone of affected tester (no customers): applausetester+kh050806@applause.expensifail.com
Issue reported by: Applause Internal Team

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to workspace settings > Report fields.
  3. Click Add field.
  4. Select List from Type.
  5. Click List values.
  6. Click Add value.
  7. Add a few list values randomly.
  8. Click back button.

Expected Result:

List values field will show the content in alphabetical order.

Actual Result:

List values field does not show the content in alphabetical order, which is not consistent with the list in List values page.

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

Bug6565112_1723077570232.20240808_083209.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0164fa6c8455234523
  • Upwork Job ID: 1821472046215029241
  • Last Price Increase: 2024-08-08
  • Automatic offers:
    • shubham1206agra | Contributor | 103445958
Issue OwnerCurrent Issue Owner: @strepanier03
@IuliiaHerets IuliiaHerets 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 Aug 8, 2024
Copy link

melvin-bot bot commented Aug 8, 2024

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

Copy link

melvin-bot bot commented Aug 8, 2024

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

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Aug 8, 2024
Copy link
Contributor

github-actions bot commented Aug 8, 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.

@IuliiaHerets
Copy link
Author

We think that this bug might be related to #wave-control

@paultsimura
Copy link
Contributor

IMO this shouldn't be a deploy blocker, and it's not a regression – it's a missed nuance from the implementation of a new feature.

The PR that introduced alphabetical ordering was merged 2 days ago: #46757
The PR that added list values to the menu item was merged yesterday: #46382

cc: @Krishna2323 @shubham1206agra

@BhuvaneshPatil
Copy link
Contributor

Proposal

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

Report fields - List values field does not show the content in alphabetical order

What is the root cause of that problem?

We are directly showing list values in order we get from ONYX.

const listValues = Object.values(policy?.fieldList?.[reportFieldKey]?.values ?? {});

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

We shall add sort method on list values. We shall convert it to lowercase while comparing.

const listValues = Object.values(policy?.fieldList?.[reportFieldKey]?.values ?? {}).sort(localeCompare);
Screen.Recording.2024-08-08.at.2.09.11.PM.mov

What alternative solutions did you explore? (Optional)

@grgia grgia added External Added to denote the issue can be worked on by a contributor and removed DeployBlockerCash This issue or pull request should block deployment DeployBlocker Indicates it should block deploying the API labels Aug 8, 2024
@melvin-bot melvin-bot bot changed the title Report fields - List values field does not show the content in alphabetical order [$250] Report fields - List values field does not show the content in alphabetical order Aug 8, 2024
Copy link

melvin-bot bot commented Aug 8, 2024

Job added to Upwork: https://www.upwork.com/jobs/~0164fa6c8455234523

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

melvin-bot bot commented Aug 8, 2024

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

@grgia grgia assigned shubham1206agra and unassigned situchan Aug 8, 2024
@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Aug 8, 2024
Copy link

melvin-bot bot commented Aug 8, 2024

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

@shubham1206agra
Copy link
Contributor

@Krishna2323 Can you please raise a PR on urgent basis?

@Krishna2323
Copy link
Contributor

@shubham1206agra, yes.

@mountiny mountiny changed the title [$250] Report fields - List values field does not show the content in alphabetical order [$125] Report fields - List values field does not show the content in alphabetical order Aug 8, 2024
Copy link

melvin-bot bot commented Aug 8, 2024

Upwork job price has been updated to $125

@grgia grgia assigned mountiny and unassigned grgia Aug 9, 2024
@grgia
Copy link
Contributor

grgia commented Aug 9, 2024

Assigning @mountiny

@mountiny mountiny added Daily KSv2 and removed Hourly KSv2 labels Aug 10, 2024
@mountiny
Copy link
Contributor

@Krishna2323 What is your ETA for the PR you reckon

@Krishna2323
Copy link
Contributor

@mountiny, I was waiting for the assignment, will raise PR today.

@Krishna2323
Copy link
Contributor

@shubham1206agra, PR ready for review ^

@shubham1206agra
Copy link
Contributor

@mountiny Bump for payment here

@mountiny mountiny added Daily KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Reviewing Has a PR in review Weekly KSv2 labels Aug 27, 2024
@mountiny mountiny changed the title [$125] Report fields - List values field does not show the content in alphabetical order [HOLD for payment 2024-08-27] [$125] Report fields - List values field does not show the content in alphabetical order Aug 27, 2024
@mountiny
Copy link
Contributor

@strepanier03 this is ready for payment $125 to @shubham1206agra and to @Krishna2323

@strepanier03
Copy link
Contributor

Today is the 27th so payment isn't late, handling this as normal.

@strepanier03
Copy link
Contributor

Payment summary

@strepanier03
Copy link
Contributor

Offer sent to @shubham1206agra is pending still so I'll check again in the morning.

@shubham1206agra
Copy link
Contributor

@strepanier03 Offer accepted

@strepanier03 strepanier03 changed the title [HOLD for payment 2024-08-27] [$125] Report fields - List values field does not show the content in alphabetical order [PAID] [$125] Report fields - List values field does not show the content in alphabetical order Aug 28, 2024
@strepanier03
Copy link
Contributor

Thanks @shubham1206agra - I have paid the contract and closed it.

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

10 participants