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 2023-07-14] [$250] Migrate NewChatPage.js to function component #16239

Closed
1 task
marcaaron opened this issue Mar 20, 2023 · 53 comments
Closed
1 task
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 Improvement Item broken or needs improvement.

Comments

@marcaaron
Copy link
Contributor

marcaaron commented Mar 20, 2023

Class Component Migration

Filenames

  • src/pages/NewChatPage.js
    • type: React.Component
    • has state values: true
    • has refs: false
    • has context: false
    • lifecycle methods: none

Task

  • We currently have some class components in our codebase that we would like to refactor to a function component.
  • Here's a link with some general advice on how to refactor a class component to a function component: https://react.dev/reference/react/Component#alternatives
  • If you need additional guidance, please ask in #expensify-open-source
  • Test for any regressions and verify that there are no breaking changes
Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~013e875c428c833da0
  • Upwork Job ID: 1664707231797780480
  • Last Price Increase: 2023-06-02
@marcaaron marcaaron added Engineering Improvement Item broken or needs improvement. labels Mar 20, 2023
@melvin-bot melvin-bot bot locked and limited conversation to collaborators Mar 20, 2023
@thienlnam thienlnam self-assigned this Mar 20, 2023
@Expensify Expensify unlocked this conversation Mar 21, 2023
@thienlnam thienlnam assigned thienlnam and unassigned thienlnam Mar 21, 2023
@marcaaron marcaaron changed the title [HOLD] Migrate NewChatPage.js to function component [HOLD][$250] Migrate NewChatPage.js to function component Apr 13, 2023
@marcaaron
Copy link
Contributor Author

Heads up! The pricing for this issue has been adjusted based on the scope of the work and the fact that no complex bug investigations or proposal are required.

@thienlnam
Copy link
Contributor

Thanks @marcaaron! I will have to counter your offer, unfortunately I can only do this for the original $1000. Thank you for your consideration and please let me know

@marcaaron
Copy link
Contributor Author

👢

@marcaaron marcaaron changed the title [HOLD][$250] Migrate NewChatPage.js to function component [$250] Migrate NewChatPage.js to function component Jun 2, 2023
@marcaaron marcaaron added the Daily KSv2 label Jun 2, 2023
@marcaaron
Copy link
Contributor Author

Heads up, I'm taking this issue off HOLD and making it a Daily. If you are unable to work on it please remove your assignment and add the External + Help Wanted labels as per this update.

@Nikhil-Vats
Copy link
Contributor

Hey @thienlnam 👋, I can take this up if you don't have time for this.

@thienlnam
Copy link
Contributor

Thanks for the ping, that would be great actually

@thienlnam thienlnam added the External Added to denote the issue can be worked on by a contributor label Jun 2, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 2, 2023

Job added to Upwork: https://www.upwork.com/jobs/~013e875c428c833da0

@melvin-bot
Copy link

melvin-bot bot commented Jun 2, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Jun 2, 2023

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

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

melvin-bot bot commented Jun 2, 2023

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

@multijump
Copy link
Contributor

I would like to take this issue

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Jun 2, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 2, 2023

📣 @Nikhil-Vats You have been assigned to this job by @thienlnam!
Please apply to this job in Upwork 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 📖

@melvin-bot
Copy link

melvin-bot bot commented Jun 2, 2023

📣 @multijump! 📣
Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:

  1. Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
  2. Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
  3. Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
    Screen Shot 2022-11-16 at 4 42 54 PM
    Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>

@CortneyOfstad CortneyOfstad added the Bug Something is broken. Auto assigns a BugZero manager. label Jun 30, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 30, 2023

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

@Expensify Expensify deleted a comment from melvin-bot bot Jun 30, 2023
@Expensify Expensify deleted a comment from melvin-bot bot Jun 30, 2023
@greg-schroeder
Copy link
Contributor

C+ review is complete, waiting on @thienlnam to confirm and merge I believe

@melvin-bot melvin-bot bot added the Overdue label Jul 3, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 3, 2023

Based on my calculations, the pull request did not get merged within 3 working days of assignment. Please, check out my computations here:

  • when @Nikhil-Vats got assigned: 2023-06-02 18:55:42 Z
  • when the PR got merged: 2023-07-03 19:28:34 UTC
  • days elapsed: 21

On to the next one 🚀

@thienlnam
Copy link
Contributor

Just merged!

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Jul 3, 2023
@greg-schroeder
Copy link
Contributor

Awaiting deploy to prod

@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 Jul 7, 2023
@melvin-bot melvin-bot bot changed the title [$250] Migrate NewChatPage.js to function component [HOLD for payment 2023-07-14] [$250] Migrate NewChatPage.js to function component Jul 7, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 7, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.37-7 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-07-14. 🎊

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

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 Jul 7, 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:

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

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Jul 13, 2023
@twisterdotcom
Copy link
Contributor

@Nikhil-Vats
Copy link
Contributor

Accepted @twisterdotcom

@aimane-chnaif
Copy link
Contributor

aimane-chnaif commented Jul 14, 2023

@aimane-chnaif not listed here: https://github.com/Expensify/Web-Expensify/blob/main/_devportal/lib/KernelScheduling/Data.php#L242.

What list is there?

Edit: Ah, I assume newDot payment

@twisterdotcom
Copy link
Contributor

Yes sorry, it's the newDot payment one. Just for my own sanity @aimane-chnaif!

@melvin-bot melvin-bot bot added the Overdue label Jul 17, 2023
@twisterdotcom
Copy link
Contributor

Paid out!

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 Improvement Item broken or needs improvement.
Projects
None yet
Development

No branches or pull requests

9 participants