-
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 2024-01-24] [$500] Workspace - Invite message does not remain when refresh page #32835
Comments
Triggered auto assignment to @bfitzexpensify ( |
Job added to Upwork: https://www.upwork.com/jobs/~01e780374dd3bf487d |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rushatgabhane ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Refreshing the web app and revisiting the workspace invite message page won't show the previously saved invite message. What is the root cause of that problem?In workspace invite message page, we get the message from the onyx and use a selector. App/src/pages/workspace/WorkspaceInviteMessagePage.js Lines 264 to 267 in eebd7ee
Then, in the component constructor, we set the message state to the message from onyx if found. App/src/pages/workspace/WorkspaceInviteMessagePage.js Lines 84 to 86 in eebd7ee
But after we refresh the page, somehow the What changes do you think we should make in order to solve the problem?I haven't dug deeper into the onyx code as to why But now the selector is useless. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Workspace - Invite message does not remain when refresh page What is the root cause of that problem?The issue here is a simple case of react lifecycle no aligning with the intended behaviour, the App/src/pages/workspace/WorkspaceInviteMessagePage.js Lines 84 to 86 in bc77287
What changes do you think we should make in order to solve the problem?We already have a componentDidUpdate(prevProps) {
...
if(prevProps.workspaceInviteMessageDraft !== this.props.workspaceInviteMessageDraft){
this.setState({welcomeNote: this.props.workspaceInviteMessageDraft});
} ResultScreen.Recording.2023-12-11.at.11.45.38.PM.mov |
ProposalPlease re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?
What alternative solutions did you explore? (Optional)
|
@rushatgabhane, @bfitzexpensify Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
reviewing |
C+ reviewed 🎀 👀 🎀 I like @DylanDylann's proposal #32835 (comment) |
Triggered auto assignment to @johnmlee101, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @DylanDylann 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
#32839 is similar to this one |
@rushatgabhane I think it's better to remove the selector. The onyx data is simply a plain string. There is no special logic in the selector, it just returns whatever values the onyx data have, which is the same as not having a selector. The selector just adds unnecessary complexity. The selector logic basically,
Which is already handled by cc: @johnmlee101 |
@rushatgabhane PR #33269 is ready to review |
I think the important point in this issue is that we need to find out the RCA (Why the current selector does not work correctly). Use or not use the selector is just a refactor. |
The main root cause is basically the same, that is the Onyx data is not available initially after a refresh, and both solutions are to keep the component "loading" the required data with a different approach, handling it manually or letting |
So, will I get any compensation because my solution is used on the PR? I'm still the same with my opinion above. cc: @johnmlee101 |
This issue has not been updated in over 15 days. @johnmlee101, @rushatgabhane, @bfitzexpensify, @DylanDylann eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
|
PR on prod 1 week ago. @bfitzexpensify could you please attach a payment summary. Thank you 🙇 |
@bfitzexpensify Could you help to move forward this issue? |
I'll step in on this one, as Ben is OOO. Payment summary:
|
@DylanDylann Your contract has been paid out. |
$500 payment approved for @rushatgabhane based on summary above. |
Closing this issue, as no regression test is required. |
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.11-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: Applause - Internal Team
Slack conversation:
Action Performed:
Expected Result:
Once entered invite message should remain when invite more users when refresh the page
Actual Result:
Invite message does not remain when refresh page
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6309308_1702313690749.Recording__1529.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @bfitzexpensifyThe text was updated successfully, but these errors were encountered: