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

[Due for payment 2025-03-05] [Due for payment 2025-03-05] [$100] Migrate AuthScreens to useOnyx #49103

Open
roryabraham opened this issue Sep 12, 2024 · 98 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Weekly KSv2

Comments

@roryabraham
Copy link
Contributor

roryabraham commented Sep 12, 2024

Currently Held on #51942

Coming from https://expensify.slack.com/archives/C01GTK53T8Q/p1725973460005309?thread_ts=1725905735.105989&cid=C01GTK53T8Q

Migrate src/libs/Navigation/AppNavigator/AuthScreens.tsx to use useOnyx instead of withOnyx.

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021834281376353079480
  • Upwork Job ID: 1834281376353079480
  • Last Price Increase: 2024-09-12
  • Automatic offers:
    • c3024 | Reviewer | 103949192
    • BhuvaneshPatil | Contributor | 103949194
Issue OwnerCurrent Issue Owner: @zanyrenney
@roryabraham roryabraham added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Sep 12, 2024
@roryabraham roryabraham self-assigned this Sep 12, 2024
Copy link

melvin-bot bot commented Sep 12, 2024

Triggered auto assignment to @zanyrenney (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@roryabraham roryabraham added the External Added to denote the issue can be worked on by a contributor label Sep 12, 2024
Copy link

melvin-bot bot commented Sep 12, 2024

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

@melvin-bot melvin-bot bot changed the title Migrate AuthScreens to useOnyx [$250] Migrate AuthScreens to useOnyx Sep 12, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Sep 12, 2024
Copy link

melvin-bot bot commented Sep 12, 2024

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

@roryabraham roryabraham changed the title [$250] Migrate AuthScreens to useOnyx [$100] Migrate AuthScreens to useOnyx Sep 12, 2024
Copy link

melvin-bot bot commented Sep 12, 2024

Upwork job price has been updated to $100

@BhuvaneshPatil
Copy link
Contributor

BhuvaneshPatil commented Sep 12, 2024

Dibs

@BhuvaneshPatil
Copy link
Contributor

Do we need to submit proposal?

@nkdengineer
Copy link
Contributor

Proposal

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

Migrate AuthScreens to useOnyx

What is the root cause of that problem?

This is an improvement

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

Remove the withOnyx here and use useOnyx hook. Also remove the type props here

const [session] = useOnyx(ONYXKEYS.SESSION);
const [lastOpenedPublicRoomID] = useOnyx(ONYXKEYS.LAST_OPENED_PUBLIC_ROOM_ID);
const [initialLastUpdateIDAppliedToClient] = useOnyx(ONYXKEYS.ONYX_UPDATES_LAST_UPDATE_ID_APPLIED_TO_CLIENT);

export default withOnyx<AuthScreensProps, AuthScreensProps>({

What alternative solutions did you explore? (Optional)

@zanyrenney
Copy link
Contributor

@roryabraham @c3024 want to take a look at the proposals here please?

@c3024
Copy link
Contributor

c3024 commented Sep 13, 2024

It is a simple enough task. I think it is fine to give it to @BhuvaneshPatil if he has not been assigned any other useOnyx migration. Otherwise @nkdengineer can be assigned.

🎀 👀 🎀 C+ Reviewed

Copy link

melvin-bot bot commented Sep 13, 2024

Current assignee @roryabraham is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new.

@BhuvaneshPatil
Copy link
Contributor

Thanks @c3024 ,
I am not assigned to any migration task

@roryabraham
Copy link
Contributor Author

Both @BhuvaneshPatil and @nkdengineer are now assigned to one other migration each, so I'm going to treat this one on a first-come-first-serve and give it to @BhuvaneshPatil

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Sep 13, 2024
Copy link

melvin-bot bot commented Sep 13, 2024

📣 @c3024 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job

Copy link

melvin-bot bot commented Sep 13, 2024

📣 @BhuvaneshPatil 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer 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 📖

@BhuvaneshPatil
Copy link
Contributor

Copy link

melvin-bot bot commented Sep 16, 2024

@BhuvaneshPatil, @roryabraham, @zanyrenney, @c3024 Whoops! This issue is 2 days overdue. Let's get this updated quick!

@github-project-automation github-project-automation bot moved this from LOW to Done in [#whatsnext] #quality Feb 14, 2025
@melvin-bot melvin-bot bot removed the Overdue label Feb 14, 2025
@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Feb 17, 2025
@WojtekBoman
Copy link
Contributor

WojtekBoman commented Feb 19, 2025

The new PR is ready for review
cc: @deetergp @c3024

Copy link

melvin-bot bot commented Feb 24, 2025

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

Copy link

melvin-bot bot commented Feb 25, 2025

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Feb 25, 2025
@blazejkustra
Copy link
Contributor

PR got reverted again 😢 (here)

FYI @WojtekBoman is OOO this week, most likely he'll come back to this early next week. Meanwhile @deetergp could we reopen this issue?

@deetergp deetergp reopened this Feb 25, 2025
@deetergp deetergp changed the title [HOLD for payment 2025-02-06] [HOLD for payment 2025-02-05] [HOLD for payment 2025-02-04] [$100] Migrate AuthScreens to useOnyx [$100] Migrate AuthScreens to useOnyx Feb 25, 2025
@deetergp
Copy link
Contributor

Rough go! 😢 Reopened.

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Feb 26, 2025
@melvin-bot melvin-bot bot changed the title [$100] Migrate AuthScreens to useOnyx [Due for payment 2025-03-05] [$100] Migrate AuthScreens to useOnyx Feb 26, 2025
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Feb 26, 2025
Copy link

melvin-bot bot commented Feb 26, 2025

Reviewing label has been removed, please complete the "BugZero Checklist".

Copy link

melvin-bot bot commented Feb 26, 2025

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

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

Copy link

melvin-bot bot commented Feb 26, 2025

@c3024 @zanyrenney @c3024 The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Feb 26, 2025
@melvin-bot melvin-bot bot changed the title [Due for payment 2025-03-05] [$100] Migrate AuthScreens to useOnyx [Due for payment 2025-03-05] [Due for payment 2025-03-05] [$100] Migrate AuthScreens to useOnyx Feb 26, 2025
Copy link

melvin-bot bot commented Feb 26, 2025

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.6-1 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 2025-03-05. 🎊

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

Copy link

melvin-bot bot commented Feb 26, 2025

@c3024 @zanyrenney @c3024 The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

@zanyrenney
Copy link
Contributor

BugZero Checklist:

  • [Contributor] Classify the bug:
Bug classification

Source of bug:

  • 1a. Result of the original design (eg. a case wasn't considered)
  • 1b. Mistake during implementation
  • 1c. Backend bug
  • 1z. Other:

Where bug was reported:

  • 2a. Reported on production (eg. bug slipped through the normal regression and PR testing process on staging)
  • 2b. Reported on staging (eg. found during regression or PR testing)
  • 2d. Reported on a PR
  • 2z. Other:

Who reported the bug:

  • 3a. Expensify user
  • 3b. Expensify employee
  • 3c. Contributor
  • 3d. QA
  • 3z. Other:
  • [Contributor] 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:

  • [Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source 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:

  • [Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.

Regression Test Proposal Template
  • [BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.

    Link to issue:

Regression Test Proposal

Precondition:

Test:

Do we agree 👍 or 👎

@zanyrenney
Copy link
Contributor

@c3024 please complete the checklist above!

@c3024
Copy link
Contributor

c3024 commented Mar 5, 2025

@zanyrenney

This PR was reverted again. New PR is in the works.

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. External Added to denote the issue can be worked on by a contributor Weekly KSv2
Projects
Status: Done
Development

No branches or pull requests