-
Notifications
You must be signed in to change notification settings - Fork 3k
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-11-17] [$250] Clean the usage of double onyx call on profile page #29165
Comments
Job added to Upwork: https://www.upwork.com/jobs/~013768a6222352d168 |
Triggered auto assignment to @johncschuster ( |
This comment was marked as off-topic.
This comment was marked as off-topic.
Triggered auto assignment to Contributor-plus team member for initial proposal review - @burczu ( |
Bug0 triage checklist is not required for this GH, as this is just a code improvement issue. |
Dibs |
Is it available without a proposal? I would like to take it. |
I would appreciate it if you can share the proposal beforehand. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Clean the usage of double onyx call on profile page What is the root cause of that problem?double onyx is used so we should clean that make only one and create a new component for Notificaion preference What changes do you think we should make in order to solve the problem?
before proceeding with this we should upgrade latest version of react-native-onyx
|
@burczu Can you please have a look at the above proposals. Thanks. |
Gentle bump @burczu |
@techievivek I'm sorry, I was busy reviewing PR's - I'll get back to checking proposals soon. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Friendly bump @burczu |
Not overdue, assigned the GH to @pradeepmdk |
Just to inform, I'll be ooo for the next few days and we'll be back on Monday, November 6th. |
@johncschuster @burczu @pradeepmdk @techievivek this issue is now 3 weeks old. There is one more week left before this issue breaks WAQ and will need to go internal. What needs to happen to get a PR in review this week? Please create a thread in #expensify-open-source to discuss. Thanks! |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.97-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-11-17. 🎊 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:
|
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:
|
bump for payment |
@johncschuster bump for payment |
Gentle bump @johncschuster ^ |
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:
This was just refactor of an existing feature.
n/a
n/a
As this was just a refactor, I guess we should expect regression tests for this feature: #27394 should cover testing this issue.
|
@johncschuster bump for payment |
@techievivek can u help me for payment here |
Sorry I dropped the ball, @pradeepmdk. I'll get payment issued this morning. |
Thank you @johncschuster |
Payment has been issued! Thanks for your patience! |
Problem
We currently have used a double onyx call on the profile page to subscribe to the DM chat report in order for notification preference to update correctly for the profile page. This was reported during PR review here: #28200 (comment)
App/src/pages/ProfilePage.js
Lines 306 to 317 in a63f853
Discussed here: #28200 (comment)
Why is this important?
Using a double Onyx subscription for any component is not a recommended practice so it would be nice to clean that up. Moreover, we have now enabled the notification preference option for all the chat reports so maybe we can create a separate component for the notification preference page and reuse that across various pages.
Solution
Create a separate component for notification preference and get rid of the double onyx call on the profile page. Feel free to come up with your own solutions.
Here is a potential solution to the problem: #28200 (comment)
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: