-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[$1000] Getting errors on other workspaces too if you get an error in a single workspace #16830
Comments
Triggered auto assignment to @laurenreidexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
Job added to Upwork: https://www.upwork.com/jobs/~01e5262531be62da28 |
Current assignee @laurenreidexpensify is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @sobitneupane ( |
Triggered auto assignment to @AndrewGable ( |
Sorry took me a while longer than normal to review, can confirm all checks out and ready for external |
ProposalPlease re-state the problem that we are trying to solve in this issue.Workspace error is "shared" to all workspaces. What is the root cause of that problem?The error comes from server response in this form of json Focus on the App/src/pages/workspace/WorkspaceSettingsPage.js Lines 89 to 90 in 4ee21e9
This means, all workspace have the same key, so when we receive an error on one workspace, all the workspace will also show the same error. What changes do you think we should make in order to solve the problem?
|
ProposalPlease re-state the problem that we are trying to solve in this issue.When typing in multiple emojis into the workspace name, we get a back-end invalid length error, and the error propagates to other workspaces. What is the root cause of that problem?There're 2 problems here:
What changes do you think we should make in order to solve the problem?
Since the C's
The validation can be added to this function
What alternative solutions did you explore? (Optional)
|
Thanks for the proposal everyone. Proposal from @tienifr looks good to me. He is proposing to improve front-end validation along with uniqueness in formID. 🎀👀🎀 C+ reviewed cc: @AndrewGable |
That won't solve the initial issue of this GH, right?. If there is another server error, the "shared error" issue will happen again. I think the different length validation should be handled on a separate issue. |
@bernhardoj thanks for the concern, the "shared error" will be solved with the 2nd part of my proposal, that part is similar to your proposal.
The different length issue is what leads the user to notice this bug so I think it's part of the issue and can be handled here. |
It's related, but has a different root cause. We previously have a case where even we have the same root cause, yet handled on a separate issue #15925. Why this case would be different? There is also another related issue that @hoangzinh mentioned on his proposal. Why we ignore that? We can simply revert the old workspace value in I would love to hear and accept any decision from @AndrewGable. |
@bernhardoj IMO that's expected, not an issue. If we revert the old workspace value the user will have no idea what happened (let's say if the user updates the workspace name when offline, then comes back online). Anyway that case will not happen if we have proper validation from client-side. Let's wait for @AndrewGable to take a look. Thanks! |
@sobitneupane @AndrewGable bump on review ^^ |
Sorry for delay, agree with @sobitneupane. Assigned @tienifr. |
As mentioned in my proposal:
I believe we need to put this issue on hold until BE change is made. CC: @laurenreidexpensify |
@laurenreidexpensify Just a friendly remind in case you missed this! |
thanks @tienifr - @AndrewGable are we good to hold this one? |
Note to myself: I have sent offers to C, C+ and bug reporter in Upwork, but still waiting on @AndrewGable confirmation re: hold |
Bump @AndrewGable in case you missed it: #16830 (comment). In addition, while we're waiting for BE update, I think we should proceed with reviewing the PR: #16958. @sobitneupane What do you think? |
@tienifr As per my understanding the change in backend is required to prevent such issues in the future. For this specific case, your PR should be sufficient to solve the issue, right? |
My proposal has two parts:
Therefore, my PR would fully work only when BE is updated. Otherwise, only the first one is resolved. For example, if it were another issue not related to workspace name and causing BE error, user wouldn't get notified; since BE's |
In that case, I will prefer reviewing the PR only after the change in backend. Overall, PR looks good to me. |
@AndrewGable, @sobitneupane, @laurenreidexpensify, @tienifr Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@AndrewGable do we have an idea of where the change in the backend is being made? I'm a bit confused here if we're still held on a specific issue, or whether we need to write another PR for the change referred to here? |
Starting a convo in Slack https://expensify.slack.com/archives/C049HHMV9SM/p1680274078505429 |
Still discussing backend change in Slack in thread above |
Conversation ongoing in Slack |
Bumped Slack thread for next steps |
Bumped Slack thread again |
1 similar comment
Bumped Slack thread again |
As discussed in Slack today, we can no longer reproduce this so am closing. thank you |
hi @laurenreidexpensify, I think contributors are eligible for compensation here since the solution was valid at the point of assignment and the PR process already started, just that due to some other changes, the solution became out of date. Another recent similar case is here and here Thanks! |
@laurenreidexpensify could you take a look at this? Thanks! |
Folks I will review the comments here tomorrow and give a recommendation. thanks for the flag! |
@tienifr I've issued payment in Upwork as you were already hired for the job there, @sobitneupane I had to create a new issue #20242 to complete payment for you, so let's finish up payment on that issue 👍 |
@laurenreidexpensify thank you for looking into this! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
Other workspaces should not be affected if an error arises in a single workspace
Actual Result:
Other workspaces also gets the same error when one workspaces gets the error on general settings page
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.2.93-4
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
Notes/Photos/Videos: Any additional supporting documentation
workspace.mp4
Recording.116.mp4
Expensify/Expensify Issue URL:
Issue reported by: @priya-zha
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1680274078505429
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: