-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[$250] Distance rates - Error shows up when adding distance rates to the workspace created from actionable whisper #51035
Comments
Triggered auto assignment to @anmurali ( |
@anmurali FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors |
ProposalPlease re-state the problem that we are trying to solve in this issue.Error shows up when adding distance rates to the workspace created from actionable whisper What is the root cause of that problem?The error is an invalid ID in the custom unit ![]() The RCA is when we categorize with a new workspace, it's created in frontend with a Line 3402 in 91c6e0c
What changes do you think we should make in order to solve the problem?If it's the new WS, we've passed some data in
Lines 3422 to 3425 in 91c6e0c
What alternative solutions did you explore? (Optional)NA |
ProposalPlease re-state the problem that we are trying to solve in this issue.Distance rates - Error shows up when adding distance rates to the workspace created from actionable whisper What is the root cause of that problem?When we press new workspace button a new workspace will be created with customUnits generated in FE onyx only
Line 8004 in 4a25c36
now we will have a draft policy in onyx only and when we open the workspace profile page we fetch the policy with that policyID from BE here
so now OPEN_POLICY_PROFILE_PAGE API will return a policy data and it will merge the customUnit that only existed in FE with customUnits from the server. Therefore, when we create a distance rate the customUnitRateID in onyx will be sent but the BE doesn't know it so it returns error
What changes do you think we should make in order to solve the problem?By the way, the problem is even more serious: if you finish on categorizing with the new workspace you created in track flow and create the expense but sign out or clear cache before opening the profile page of the new workspace created the workspace along with the expense created from the track expense will be lost as the data was only saved in onyx only not in server. Line 8004 in 4a25c36
similar to what we do when we create workspace in onboarding flow here
We can then remove What alternative solutions did you explore? (Optional) |
@anmurali Eep! 4 days overdue now. Issues have feelings too... |
@anmurali 6 days overdue. This is scarier than being forced to listen to Vogon poetry! |
@anmurali 10 days overdue. Is anyone even seeing these? Hello? |
@anmurali 12 days overdue now... This issue's end is nigh! |
Job added to Upwork: https://www.upwork.com/jobs/~021851723074244556259 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @shubham1206agra ( |
@anmurali @shubham1206agra this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
Requires internal engineer to add a parameter to fix customUnitID. 🎀👀🎀 C+ reviewed |
Triggered auto assignment to @Julesssss, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Thanks both. This is bad, but I'm afraid that backend changes are unlikely to be prioritised anytime soon. I think for now we should close. |
@Julesssss @anmurali Be sure to fill out the Contact List! |
@Julesssss what about #51035 (comment)? I think this should be fixed in the frontend, not only for the current issue but also for other reasons mentioned in the proposal. |
Yeah I did think you made a good follow up point about the problem becoming worse after going offline. But we'd still need backend changes, no?:
|
@Julesssss No we don't need BE changes.
will be requested and know the new policy data returned from the BE will be merged with the current workspace. BTW openProfilePage is not intended to create a new workpace, it's only intended to load any new changes on existing workspaces. What we should do we should use the existing method of creating a workspace similar to what we do when we create workspace in onboarding flow here that would create the necessary optimistic data and send CREATE_WORKSPACE API request to the BE.
|
We only create a draft policy because the user can cancel the flow and the created policy is unnecessary. |
But how we are handling it now is wrong that the root cause of the issue. If we want to discard the workspace when the user cancels the flow we can separately create the optimistic data first and only request create workspace API when the user finishes the flow but clear the optimistic data if the user aborts the flow. That still won't need BE changes. |
@mkzie2 Can you send me the response of the API? |
One possible solution is to clear the old customUnitID for now. One way is to somehow not add the customUnitID at all. But this might create some errors. BE solution is the best. |
Can we request internal team to do this now? |
Or we clear |
This is problematic since offline distance rates addition will fail. |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
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: 9.0.50-3
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
Distance rates will be added without issue
Actual Result:
Error shows up when adding distance rates to the workspace created from actionable whisper
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6637815_1729178169983.bandicam_2024-10-17_23-09-53-329.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @shubham1206agraThe text was updated successfully, but these errors were encountered: