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-05-09] [$500] Currency - In WS default currency section searching for euro/rupee showing "no results found" #29618

Closed
6 tasks done
lanitochka17 opened this issue Oct 14, 2023 · 56 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 Not a priority

Comments

@lanitochka17
Copy link

lanitochka17 commented Oct 14, 2023

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: 1.3.84-0

Reproducible in staging?: Yes

Reproducible in production?: Yes

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: Applause - Internal Team

Slack conversation:

Action Performed:

  1. Go to https://staging.new.expensify.com/

  2. Tap on announce room

  3. Tap plus icon----Split bill

  4. Tap currency

  5. Search euro/rupee and note search results displayed

  6. Navigate back to LHN

  7. Tap profile---Workspaces

  8. Tap on a Workspace

  9. Tap on Workspace name

  10. Tap on default currency

  11. Enter euro/ rupee in search field

Expected Result:

In WS default currency section searching for euro/rupee showing "no results found" but in announce room split bill currency drop down searching for euro/rupee showing results. The behavior must not be inconsistent within the site

Actual Result:

In WS default currency section searching for euro/rupee showing "no results found" but in announce room split bill currency drop down searching for euro/rupee showing results. The behaviour is inconsistent within the site

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

Android: Native
Android: mWeb Chrome
Bug6236871_1697278697731.inconsistent.mp4
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01810f204b38ab0d0d
  • Upwork Job ID: 1714934578304249856
  • Last Price Increase: 2023-11-02
Issue OwnerCurrent Issue Owner: @laurenreidexpensify
@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Oct 14, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 14, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Oct 14, 2023

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

@Pujan92
Copy link
Contributor

Pujan92 commented Oct 14, 2023

Proposal

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

In WS currency selection currency name search is not working correctly

What is the root cause of that problem?

We are not considering currency name in the filtration, it is only checks for code and symbol currently.

return getDisplayText(currencyCode, currency.symbol).toLowerCase().includes(trimmedText);

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

We need to add name field also for comparing the search text.

 || currency.name.toLowerCase().includes(trimmedText)

OR

Use the same approach with the regex which we have used in IOUCurrencySelection

const searchRegex = new RegExp(Str.escapeForRegExp(searchValue.trim()), 'i');
const filteredCurrencies = _.filter(currencyOptions, (currencyOption) => searchRegex.test(currencyOption.text) || searchRegex.test(currencyOption.currencyName));

Result
Screen.Recording.2023-10-14.at.23.02.57.mov

@laurenreidexpensify laurenreidexpensify added the External Added to denote the issue can be worked on by a contributor label Oct 16, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 16, 2023

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 Oct 16, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 16, 2023

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

@parasharrajat
Copy link
Member

Let's use the same pattern as IOUCurrencySelection page as that is more updated. @Pujan92 's proposal looks good to me.

🎀 👀 🎀 C+ reviewed

@melvin-bot
Copy link

melvin-bot bot commented Oct 16, 2023

Triggered auto assignment to @cead22, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@laurenreidexpensify
Copy link
Contributor

@cead22 bump ^^

@cead22
Copy link
Contributor

cead22 commented Oct 18, 2023

@Pujan92 @parasharrajat is there a reason we're not using the same component here, or the same code to display the currencies? It seems like the main reason for this problem could be that we have code in 2 different places doing the same thing

@laurenreidexpensify laurenreidexpensify 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 Oct 19, 2023
@melvin-bot melvin-bot bot changed the title Currency - In WS default currency section searching for euro/rupee showing "no results found" [$500] Currency - In WS default currency section searching for euro/rupee showing "no results found" Oct 19, 2023
@melvin-bot
Copy link

melvin-bot bot commented Oct 19, 2023

Job added to Upwork: https://www.upwork.com/jobs/~01810f204b38ab0d0d

@melvin-bot
Copy link

melvin-bot bot commented Oct 19, 2023

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

@laurenreidexpensify
Copy link
Contributor

Readded external label to get the job on Upwork as looks like the API call failed the first time

@Pujan92
Copy link
Contributor

Pujan92 commented Oct 20, 2023

@Pujan92 @parasharrajat is there a reason we're not using the same component here, or the same code to display the currencies? It seems like the main reason for this problem could be that we have code in 2 different places doing the same thing

The functionality looks the same for both components, I am not sure but tagging @thiagobrez for their input as the workspace currency push page added recently in #27861

@thiagobrez
Copy link
Contributor

@Pujan92 I believe it's because when I worked on this, the IOUCurrencySelection page was still using the old list, OptionsSelector, and in #27861 we're using the new implementation SelectionList. Other differences might come because previously, WS currency selector was using the old pattern with native HTML select, so it didn't need search

@melvin-bot melvin-bot bot added the Overdue label Oct 23, 2023
@laurenreidexpensify
Copy link
Contributor

@cead22 are you fine to assign now with the additional context?

@melvin-bot melvin-bot bot removed the Overdue label Oct 23, 2023
@cead22
Copy link
Contributor

cead22 commented Oct 24, 2023

@thiagobrez @Pujan92 I imagine auto complete in a currency selector is always going to work by looking at the currency, code, and symbol. If that's a safe assumption, would it make sense to design a solution such that all currency selectors moving forward share this functionality?

@cead22
Copy link
Contributor

cead22 commented Oct 24, 2023

Not yet @laurenreidexpensify :)

@melvin-bot melvin-bot bot added the Overdue label Oct 26, 2023
@parasharrajat
Copy link
Member

@tsa321 let's move forward with #30889 (comment) steps. Let me know if you have some questions.

@tsa321
Copy link
Contributor

tsa321 commented Mar 8, 2024

@parasharrajat Ok, I am working on it...

@parasharrajat
Copy link
Member

@laurenreidexpensify please reopen this issue.

@laurenreidexpensify laurenreidexpensify added Weekly KSv2 and removed Monthly KSv2 labels Apr 16, 2024
@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels May 2, 2024
@melvin-bot melvin-bot bot changed the title [$500] Currency - In WS default currency section searching for euro/rupee showing "no results found" [HOLD for payment 2024-05-09] [$500] Currency - In WS default currency section searching for euro/rupee showing "no results found" May 2, 2024
Copy link

melvin-bot bot commented May 2, 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 May 2, 2024
Copy link

melvin-bot bot commented May 2, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.69-2 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-05-09. 🎊

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

  • @parasharrajat requires payment through NewDot Manual Requests
  • @tsa321 requires payment (Needs manual offer from BZ)

Copy link

melvin-bot bot commented May 2, 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:

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

@laurenreidexpensify
Copy link
Contributor

Payment Summary:

C+ @parasharrajat requires payment through NewDot Manual Requests $500
Contributor: @tsa321 $500 - offer sent in Upwork, please accept

@parasharrajat
Copy link
Member

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:

Regression Test Steps

  1. Go to workspace settings and select default currency
  2. The currency selection list will appears and type "euro"
  3. The euro currency must be available in the list
  4. Select the euro currency, then notice the default currency is changed into euro
  5. Repeat step 2-4 for other search text like "rupee", "pound", "Australia" then notice the Indian rupee , England pounds, Australia dollar is available in the list for the respected search text.

Do you agree 👍 or 👎 ?

Copy link

melvin-bot bot commented May 9, 2024

Payment Summary

Upwork Job

BugZero Checklist (@laurenreidexpensify)

  • 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/1714934578304249856/hired)
  • I have paid out the Upwork contracts or cancelled the ones that are incorrect
  • I have verified the payment summary above is correct

@tsa321
Copy link
Contributor

tsa321 commented May 9, 2024

@laurenreidexpensify I have accepted the job interview in the upwork. Link: https://www.upwork.com/jobs/~0143fc0e3c3d547cfc

@laurenreidexpensify
Copy link
Contributor

@tsa321 pls accept next step in upwork and i will issue payment thanks

@parasharrajat
Copy link
Member

@laurenreidexpensify Please feel free to close it, I will request it later.

@laurenreidexpensify
Copy link
Contributor

@parasharrajat am waiting to complete Contributor payment first as they are on upwork :)

@tsa321
Copy link
Contributor

tsa321 commented May 10, 2024

@laurenreidexpensify I have accepted the offer.

@laurenreidexpensify
Copy link
Contributor

Payment Summary:

C+ @parasharrajat requires payment through NewDot Manual Requests $500
Contributor: @tsa321 $500 - paid in Upwork

@parasharrajat
Copy link
Member

Payment requested as per #29618 (comment)

@JmillsExpensify
Copy link

$500 approved for @parasharrajat

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 Not a priority
Projects
None yet
Development

No branches or pull requests

8 participants