-
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
[C+ Checklist Needs Completion] [$500] OpenPublicProfilePage
API not called as soon as avatar is clicked
#36610
Comments
OpenPublicProfilePage
API not called as soon as avatar is clickedOpenPublicProfilePage
API not called as soon as avatar is clicked
Job added to Upwork: https://www.upwork.com/jobs/~01eff48078e4b5dadf |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @cubuspl42 ( |
Triggered auto assignment to @anmurali ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.OpenPublicProfilePage API not called as soon as avatar is clicked What is the root cause of that problem?The api is called if it doesn't have minimum details here Lines 141 to 142 in 1c0d126
Which means if details.avatar is emptyLines 123 to 124 in 1c0d126
What changes do you think we should make in order to solve the problem?we should make the api call if Lines 123 to 124 in 1c0d126
alternatively We could also make api call dependent on non-existence of the data like What alternative solutions did you explore? (Optional) |
As avatar url is already available in personal details list I think it should not make a call to
|
Actually this is not a bug (The user mentioned in the video has his profile to hidden, you should not be able to see his private details until you're logged in/ talked with them. This is linked to another issue, let me find that one and edit this comment. |
Triggered auto assignment to @greg-schroeder ( |
@greg-schroeder rotated the label since I will be OOO till 29th! I can take it back when I return! |
@codinggeek2023 could you clarify what you mean? The bug is that when you open a profile we aren't calling the |
Your proposed solution would break the avatar functionality in case the avatar is changed from another device because if we apply the solution that would mean the More context / video example here #36577 (comment). |
ProposalPlease re-state the problem that we are trying to solve in this issue.OpenPublicProfilePage API not called as soon as profile page is opened. What is the root cause of that problem?See
OpenPublicProfilePage api call made in PersonalDetails.openPublicProfilePage. ProfilePage receives personal details in props, normally. If so, hasMinimumDetails is set to true, which prevents openPublicProfilePage from being called. What changes do you think we should make in order to solve the problem?ProfilePage calls openPublicProfilePage regardless of value of hasMinimumDetails. |
@FitseTLT Could you elaborate on the root cause analysis? Are we discussing a corner case? Is the current (old) |
@kmbcook I think the check is included to minimize the number of unnecessary API calls. I think it would be preferable to fix the check instead of removing it, if it's reasonably easy. |
@cubuspl42 the issue itself is about the API call not being made, not about personal details not being current. Is there some reason the issue was written the way it was, some reason why the API call MUST be made when the profile page is opened? |
I think we should use |
In such a case, I believe we should go with @kmbcook C+ reviewed 🎀 👀 🎀 |
OpenPublicProfilePage
API not called as soon as avatar is clickedOpenPublicProfilePage
API not called as soon as avatar is clicked
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.47-10 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 2024-03-13. 🎊 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:
|
There's regression - #37986 |
Given that this issue requires the API call to be made, are these two issues mutually exclusive (this one and #37986)? |
@kmbcook Not necessarily... It's a X -> Y -> Z situation. We solved problem X, and the solution uncovered a performance problem Y. Problem Y likely existed before, but it's easier to observe now. The problem Y is likely solvable. The question is whether we handle it as a separate problem or say that it was our fault that we didn't solve X and Y in one go. Of course, I prefer the first interpretation. |
@stitesExpensify what do you think about the above re: regression? |
@kmbcook can you please accept the offer I sent you so I can pay you? thanks! |
I think we go with "not a regression". While this did technically cause the problem, the actual issue already existed, and we did not ask for the lag to be fixed here on the issue, or during testing on the PR. |
offer sent to @kmbcook for $500 next up is @cubuspl42 is the checklist! |
OpenPublicProfilePage
API not called as soon as avatar is clickedOpenPublicProfilePage
API not called as soon as avatar is clicked
Done |
|
@cubuspl42 @anmurali @kmbcook @greg-schroeder @stitesExpensify this issue is now 4 weeks old and preventing us from maintaining WAQ, can you:
Thanks! |
Current assignee @cubuspl42 is eligible for the Internal assigner, not assigning anyone new. |
Added the regression test. @greg-schroeder - have you paid @kmbcook ? If yes, can you please close this issue? I wasn't sure if that last payment had gone out yet. |
Yup! All done, closing. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 1.4.42-1
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @puneetlath
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1708010767314729
Action Performed:
Expected Result:
the OpenPublicProfilePage API should get called as soon as you open the profile page.
Actual Result:
it isn't getting called until you click on the avatar. This means that the profile data isn't getting loaded when you open the profile, even though it should be.
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Screen.Recording.2024-02-15.at.10.24.18.AM.mov
Recording.2736.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: