-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 2023-09-07] [$1000] Chat - MagicCodeInput stories are broken #24287
Comments
Triggered auto assignment to @sonialiap ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Chat - MagicCodeInput stories are broken What is the root cause of that problem?We have defined default value as App/src/components/MagicCodeInput.js Line 54 in 32326f6
and App/src/components/MagicCodeInput.js Lines 117 to 137 in 32326f6
but we have value as App/src/components/MagicCodeInput.js Lines 74 to 80 in 32326f6
What changes do you think we should make in order to solve the problem?we should add early return condition here App/src/components/MagicCodeInput.js Line 74 in 32326f6
if(!value) return []; What alternative solutions did you explore? (Optional)We can pass empty string as a value from MagicCodeInput story |
ProposalPlease re-state the problem that we are trying to solve in this issue.MagicCodeInput stories are not working and broken. What is the root cause of that problem?We are not setting the required props correctly. What changes do you think we should make in order to solve the problem?We need to update the Template function with the needed props to work the stories correctly. App/src/stories/MagicCodeInput.stories.js Lines 14 to 17 in 316a545
Extra: If we need to provide some initial value then we can pass an extra arg called ResultScreen.Recording.2023-08-09.at.1.49.17.AM.mov |
Thanks for creating the issue! For some context, I discovered that the MagicCodeInput story was broken while going through the PR checklist after having modified the MagicCodeInput component. When asking about how broken stories should be handled, I got the suggestion of reporting it as a bug: https://app.slack.com/client/T03SC9DTT/C01GTK53T8Q/thread/C01GTK53T8Q-1690918046.950089 |
ProposalPlease re-state the problem that we are trying to solve in this issue.MagicCodeInput stories throw some errors What is the root cause of that problem?The first error we can see is Line 13 in 5510a95
We already provide the context here (OnyxProvider). Lines 16 to 22 in 5510a95
The problem is, the network context value is initially We can only reproduce this first issue when we open the storybook for the first time with the Onyx still empty. If it's not empty, you can clear it first The second error is App/src/components/MagicCodeInput.js Lines 74 to 75 in 5510a95
What changes do you think we should make in order to solve the problem?
to here Lines 12 to 14 in 5510a95
We did this when initializing the app Lines 24 to 39 in 5510a95
This will fix the MagicCodeInput story, but I also see some errors on other stories. Read more below. Let me know if we should handle them all. read more
|
I don't know what this tool is, but I can reproduce the behavior described. Triaging to external |
Job added to Upwork: https://www.upwork.com/jobs/~011893a5d0539986e8 |
Current assignee @sonialiap is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rushatgabhane ( |
i like @bernhardoj's proposal. Because it fixes the network error and undefined |
Triggered auto assignment to @Julesssss, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @rushatgabhane Please request via NewDot manual requests for the Reviewer role ($1000) |
📣 @bernhardoj 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
📣 @joh42 🎉 An offer has been automatically sent to your Upwork account for the Reporter role 🎉 Thanks for contributing to the Expensify app! |
Can I have a confirmation whether we want to fix other storybook issue too? |
PR is ready |
FYI I am OOO this week. Feel free to reassign in the meantime, or I will be back on Monday 28th |
Based on my calculations, the pull request did not get merged within 3 working days of assignment. Please, check out my computations here:
On to the next one 🚀 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.59-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 2023-09-07. 🎊 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:
As a reminder, here are the bonuses/penalties that should be applied for any External 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:
|
Not overdue, we're awaiting payment. |
|
Created a manual request here - https://staging.new.expensify.com/r/4875420951036856 |
Waiting for payment |
@rushatgabhane review + bonus = $1500 - please request in NewDot |
$1,500 payment approved for @rushatgabhane based on BZ summary. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
npm run storybook
https://staging.new.expensify.com/docs/index.html?path=/story/components-magiccodeinput--auto-focus
Expected Result:
The MagicCodeInput stories should not be broken
Actual Result:
The MagicCodeInput stories are broken
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.50.2
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
Notes/Photos/Videos: Any additional supporting documentation
Recording.5768.mp4
Expensify/Expensify Issue URL:
Issue reported by: @joh42
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1690918863039709
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: