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 2022-12-02] [$1,000] [Form Refactor] RequestorStep #9581

Closed
8 tasks
luacmartins opened this issue Jun 27, 2022 · 76 comments
Closed
8 tasks
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

@luacmartins
Copy link
Contributor

Coming from the New Expensify Forms design doc, we should refactor RequestorStep to use the new form component, follow the guidelines below:

Here's an example of a Form refactor: #9056

Guidelines

  1. Replace the form component with Form.js.
  2. Create a unique Onyx key in ONYXKEYS.FORM and pass it as the formID prop to Form.
  3. Pass a validate callback prop.
  4. Pass an onSubmit callback prop that calls the API via an action.
  5. Update all inputs wrapped by Form, following the guidelines in Refactor inputs.
  6. Remove any unused code.

Testing

Verify that:

  • UI looks as it did before the refactor
  • Values can be added and edited
  • Errors are highlighted correctly (input border)
  • Error messages show up correctly
  • Draft values are saved properly
  • Form alerts are displayed correctly
  • Clicking the fix the errors link focuses the first input with error
  • No duplicate submission of the form occurs (when it's already submitting)
@luacmartins luacmartins added External Added to denote the issue can be worked on by a contributor Engineering Daily KSv2 labels Jun 27, 2022
@melvin-bot
Copy link

melvin-bot bot commented Jun 27, 2022

Triggered auto assignment to @NicMendonca (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

@NicMendonca
Copy link
Contributor

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Daily KSv2 labels Jun 28, 2022
@melvin-bot
Copy link

melvin-bot bot commented Jun 28, 2022

Triggered auto assignment to Contributor-plus team member for initial proposal review - @Santhosh-Sellavel (Exported)

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jun 28, 2022
@melvin-bot
Copy link

melvin-bot bot commented Jun 28, 2022

Triggered auto assignment to @neil-marcellini (Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@melvin-bot melvin-bot bot changed the title [Form Refactor] RequestorStep [$250] [Form Refactor] RequestorStep Jun 28, 2022
@Murodjon000
Copy link

Hi 👋 @neil-marcellini, may i update RequsterStep, i checked the details, the steps that i will do using Form.js component inside RequestorStep component properly refactoring the code. In old one clicking the fix the errors is not working as expected, While refactoring i will stick to the instructions above.

@luacmartins
Copy link
Contributor Author

This issue is being put on hold due to push to page discussions, as per this comment.

@luacmartins luacmartins changed the title [$250] [Form Refactor] RequestorStep [HOLD] [$250] [Form Refactor] RequestorStep Jun 29, 2022
@luacmartins
Copy link
Contributor Author

luacmartins commented Jun 29, 2022

@Murodjon000 thanks for the interest. However, this issue is now on hold and we won't assign anyone to it until the hold is removed.

@melvin-bot melvin-bot bot added the Overdue label Jul 6, 2022
@neil-marcellini
Copy link
Contributor

On HOLD, but we said we would discuss push to page this week, have we?

@neil-marcellini
Copy link
Contributor

^ Still on hold unless the push to page discussion is complete.

@melvin-bot melvin-bot bot removed the Overdue label Jul 18, 2022
@melvin-bot melvin-bot bot added the Overdue label Jul 27, 2022
@neil-marcellini
Copy link
Contributor

Holding

@abekkala
Copy link
Contributor

@mollfpr has been hired in Upwork

@Santhosh-Sellavel I still can not find your profile in Upwork in order to hire you

@JmillsExpensify
Copy link

Special note: Please treat this issue with urgency, as it's a headline initiative in our product roadmap at the moment. Standardizing our approach here will help us get a handle on related bugs. Thanks!

@Santhosh-Sellavel
Copy link
Collaborator

@mollfpr We are on a clock here, if get it merged by tomorrow we are eligible for a bonus!

@mollfpr
Copy link
Contributor

mollfpr commented Nov 16, 2022

@Santhosh-Sellavel On it! Need to finish some of the recordings.

@mollfpr
Copy link
Contributor

mollfpr commented Nov 16, 2022

Pulled you guys to the PR @neil-marcellini @Santhosh-Sellavel!

I found a bug when using the StatePicker need to double-click the option to select the value, I guess it's because of the onBlur of the text input. It's not related to this refactor, so we should log that issue after this is complete.

@kevinksullivan
Copy link
Contributor

FYI @abekkala I hired Santhosh. You can typically find him under "My Hires". Let's get this one knocked out!

@abekkala
Copy link
Contributor

That cross post above was done by mistake - my clipboard pasted the wrong link - ugh.

@abekkala
Copy link
Contributor

@mollfpr @Santhosh-Sellavel Is there an update on the PR for this?

@mollfpr
Copy link
Contributor

mollfpr commented Nov 18, 2022

@abekkala Yup, it was reviewed this morning. I just update the PR, and ready for another review.

@melvin-bot melvin-bot bot added the Overdue label Nov 21, 2022
@Santhosh-Sellavel
Copy link
Collaborator

Review in progress

@melvin-bot melvin-bot bot removed the Overdue label Nov 21, 2022
@neil-marcellini
Copy link
Contributor

I just merged the PR.

@melvin-bot melvin-bot bot added the Overdue label Nov 25, 2022
@Santhosh-Sellavel
Copy link
Collaborator

PR is already merged

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Overdue Daily KSv2 labels Nov 25, 2022
@melvin-bot melvin-bot bot changed the title [$1,000] [Form Refactor] RequestorStep [HOLD for payment 2022-12-02] [$1,000] [Form Refactor] RequestorStep Nov 25, 2022
@melvin-bot
Copy link

melvin-bot bot commented Nov 25, 2022

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.2.31-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 2022-12-02. 🎊

After the hold period, please check if any of the following need payment for this issue, and if so check them off after paying:

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

@melvin-bot
Copy link

melvin-bot bot commented Nov 25, 2022

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:

  • [@mollfpr / @Santhosh-Sellavel / @neil-marcellini] The PR that introduced the bug has been identified. Link to the PR: N/A refactor PR
  • [@mollfpr / @Santhosh-Sellavel / @neil-marcellini] 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: N/A refactor PR
  • [@mollfpr / @Santhosh-Sellavel / @neil-marcellini] 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 refactor PR
  • [@abekkala] A regression test has been added or updated so that the same bug will not reach production again. Link to the GH issue for creating the test here:

@abekkala
Copy link
Contributor

@luacmartins I'm having a hard time determining if there is a tests section that matches this in TestRail. I've looked under the Request Money and Split bills section.
Not only am I having a hard time determining a matching test, I'm not sure what the test steps would be as this GH wasn't necessarily I bug reproduction.
Does this even require a regression test?

@luacmartins
Copy link
Contributor Author

@abekkala thanks for checking. This PR should already be covererd in the regression tests for Add/Delete Bank account so we should be good here!

@abekkala
Copy link
Contributor

Thanks @luacmartins!

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Dec 2, 2022
@abekkala
Copy link
Contributor

abekkala commented Dec 2, 2022

Payments have been made to @Santhosh-Sellavel and @mollfpr
We're all set here! Closing

Thank you 🎉

@abekkala abekkala closed this as completed Dec 2, 2022
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