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 Onyx PR 588][$100] Migrate AuthScreens to useOnyx #49103

Open
roryabraham opened this issue Sep 12, 2024 · 42 comments
Open

[HOLD Onyx PR 588][$100] Migrate AuthScreens to useOnyx #49103

roryabraham opened this issue Sep 12, 2024 · 42 comments
Assignees
Labels
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 Expensify/react-native-onyx#588

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
@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!

@melvin-bot melvin-bot bot added the Overdue label Sep 16, 2024
@roryabraham
Copy link
Contributor Author

PR review in progress

@melvin-bot melvin-bot bot added the Overdue label Oct 3, 2024
Copy link

melvin-bot bot commented Oct 4, 2024

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

@roryabraham roryabraham removed their assignment Oct 4, 2024
@melvin-bot melvin-bot bot removed the Overdue label Oct 4, 2024
@roryabraham
Copy link
Contributor Author

roryabraham commented Oct 4, 2024

Headed on parental leave. Between @c3024 @BhuvaneshPatil and @blazejkustra this issue should be pretty well-handled. But going to pull in another Expensify engineer to help out with the final review. @MonilBhavsar choosing you at random, hope you don't mind 🙂

@MonilBhavsar
Copy link
Contributor

Happy parental leave, Rory! I can take over this 🫡

@parasharrajat
Copy link
Member

is this issue completed?

@melvin-bot melvin-bot bot added the Overdue label Oct 9, 2024
@MonilBhavsar
Copy link
Contributor

Not yet, it's on HOLD as per this #49103 (comment)

@zanyrenney
Copy link
Contributor

Issue is still on hold, per the comment above!

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Oct 14, 2024
@zanyrenney
Copy link
Contributor

Issue is on HOLD

@melvin-bot melvin-bot bot removed the Overdue label Oct 17, 2024
@zanyrenney
Copy link
Contributor

@MonilBhavsar i am going to make this weekly for now. If this gets taken off hold, please feel free to make DAILY.

@zanyrenney zanyrenney added Weekly KSv2 and removed Daily KSv2 labels Oct 17, 2024
@MonilBhavsar MonilBhavsar changed the title [HOLD][$100] Migrate AuthScreens to useOnyx [HOLD Issue 48725][$100] Migrate AuthScreens to useOnyx Oct 17, 2024
@fabioh8010
Copy link
Contributor

Just a note here: We have this Onyx PR that will fix the issues with infinite loading noticed in this migration, but I noticed an additional problem that is not covered by my PR and it happens by just migrating the component to useOnyx. I will cross-post the message I left in the PR.

❗️You will notice that after second login on Web/mWeb, user is redirected to settings page instead of home. Please have in mind that this issue is not related to these fixes, but instead one more fix that would be necessary to be made on E/App when migrating AuthScreens.tsx to useOnyx.❗️

@MonilBhavsar
Copy link
Contributor

Thanks for the heads up @fabioh8010! 👍

@MonilBhavsar MonilBhavsar changed the title [HOLD Issue 48725][$100] Migrate AuthScreens to useOnyx [HOLD Onyx PR 588][$100] Migrate AuthScreens to useOnyx Oct 23, 2024
@melvin-bot melvin-bot bot added the Overdue label Oct 31, 2024
@zanyrenney
Copy link
Contributor

@MonilBhavsar @fabioh8010 @BhuvaneshPatil please remember to keep the issue updated with progress, there hasn't been any update here in awhile! Thanks!

@melvin-bot melvin-bot bot removed the Overdue label Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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
Development

No branches or pull requests

9 participants