You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2024-01-05][$500] Search - Nothing happens when hitting Enter key on the selected user #33654
Version Number: v1.4.18-2 Reproducible in staging?: y Reproducible in production?: n 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:
Go to Search.
Hit Enter.
Expected Result:
The user in the list is selected.
Actual Result:
Nothing happens when hitting Enter key.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
👋 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:
Identify the pull request that introduced this issue and revert it.
changed the title [-]Web - Search - Nothing happens when hitting Enter key on the selected user[/-][+]Search - Nothing happens when hitting Enter key on the selected user[/+]on Dec 27, 2023
Due to that focusedItemKey will be options-selector-input and focusedOption will be undefined and it will return early. Earlier we weren't provided the testId for the option selector input and on enter it provides focusedItemKey undefined and we follow the else condition in ternary where we considers focusedIndex of the list.
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.18-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-01-04. 🎊
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.
External issue reporter
Contributor that fixed the issue
Contributor+ that helped on the issue and/or PR
For reference, here are some details about the assignees on this issue:
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:
[@situchan] The PR that introduced the bug has been identified. Link to the PR:
[@situchan] 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:
[@situchan] 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:
[@situchan] Determine if we should create a regression test for this bug.
[@situchan] 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:
changed the title [-][HOLD for payment 2024-01-04] [$500] Search - Nothing happens when hitting Enter key on the selected user[/-][+][HOLD for payment 2024-01-05] [HOLD for payment 2024-01-04] [$500] Search - Nothing happens when hitting Enter key on the selected user[/+]on Dec 29, 2023
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.19-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-01-05. 🎊
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.
External issue reporter
Contributor that fixed the issue
Contributor+ that helped on the issue and/or PR
For reference, here are some details about the assignees on this issue:
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:
[@situchan] The PR that introduced the bug has been identified. Link to the PR:
[@situchan] 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:
[@situchan] 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:
[@situchan] Determine if we should create a regression test for this bug.
[@situchan] 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:
changed the title [-][HOLD for payment 2024-01-05] [HOLD for payment 2024-01-04] [$500] Search - Nothing happens when hitting Enter key on the selected user[/-][+][HOLD for payment 2024-01-05][$500] Search - Nothing happens when hitting Enter key on the selected user[/+]on Jan 5, 2024
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: N/A
Determine if we should create a regression test for this bug.
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.
This was deploy blocker, which means QA team caught this during regression test on staging build.
So no need another regression test.
Activity
github-actions commentedon Dec 27, 2023
👋 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:
melvin-bot commentedon Dec 27, 2023
Triggered auto assignment to @Beamanator (
Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.[-]Web - Search - Nothing happens when hitting Enter key on the selected user[/-][+]Search - Nothing happens when hitting Enter key on the selected user[/+]Pujan92 commentedon Dec 27, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Row isn't selected on pressing enter for the option selector
What is the root cause of that problem?
testIDfor the input and on pressing an enter it will fetchtestIDof the focused element here.App/src/components/OptionsSelector/BaseOptionsSelector.js
Lines 305 to 307 in 9e81447
Due to that
focusedItemKeywill beoptions-selector-inputandfocusedOptionwill be undefined and it will return early. Earlier we weren't provided the testId for the option selector input and on enter it providesfocusedItemKeyundefined and we follow the else condition in ternary where we considersfocusedIndexof the list.App/src/components/OptionRow.js
Lines 167 to 168 in 9e81447
What changes do you think we should make in order to solve the problem?
We should avoid comparing the
keyForListwhen thefocusedItemKeyisoptions-selector-inputhere.App/src/components/OptionsSelector/BaseOptionsSelector.js
Line 307 in 9e81447
Beamanator commentedon Dec 27, 2023
Hmm @Pujan92 it looks like #33491 was merged 3 hours ago and is not on staging yet, but the bug is reproducible in staging
situchan commentedon Dec 27, 2023
@Beamanator it's automation bug. Already deployed to staging. As you see, it's in deploy checklist
Pujan92 commentedon Dec 27, 2023
Yes, I am seeing that change with the inspect element in the staging.
Beamanator commentedon Dec 27, 2023
Ooh good catch!
While I like your solution @Pujan92 , I don't really like that we started using
testIDOptionRow in https://github.com/Expensify/App/pull/33265/files for a non-test-related fix 🤔 do y'all think we should update that to justid? Or am I crazy?Pujan92 commentedon Dec 27, 2023
I agree @Beamanator , using
nativeIdmakes sense instead oftestID.situchan commentedon Dec 27, 2023
Agree
Beamanator commentedon Dec 27, 2023
Nice, @Pujan92 are you up for making that change along with the change you proposed?
34 remaining items
melvin-bot commentedon Dec 28, 2023
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.18-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-01-04. 🎊
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:
melvin-bot commentedon Dec 28, 2023
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:
[-][HOLD for payment 2024-01-04] [$500] Search - Nothing happens when hitting Enter key on the selected user[/-][+][HOLD for payment 2024-01-05] [HOLD for payment 2024-01-04] [$500] Search - Nothing happens when hitting Enter key on the selected user[/+]melvin-bot commentedon Dec 29, 2023
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.19-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-01-05. 🎊
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:
melvin-bot commentedon Dec 29, 2023
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:
jliexpensify commentedon Jan 5, 2024
Hi @situchan - bump to complete the checklist please!
jliexpensify commentedon Jan 5, 2024
Payment Summary:
Upwork job
[-][HOLD for payment 2024-01-05] [HOLD for payment 2024-01-04] [$500] Search - Nothing happens when hitting Enter key on the selected user[/-][+][HOLD for payment 2024-01-05][$500] Search - Nothing happens when hitting Enter key on the selected user[/+]situchan commentedon Jan 5, 2024
This was deploy blocker, which means QA team caught this during regression test on staging build.
So no need another regression test.
jliexpensify commentedon Jan 5, 2024
Paid and closed!
Note: there were 2 payment dates (the 4th and 5th) and I'm OOO for the next 2 days so I paid now. It's the 5th in the APAC region as well :)