-
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-12-21] [$500] [Wave 6: Categories] - Unexpected error when requesting money with a very long category in workspace chat #30683
Comments
Triggered auto assignment to @stephanieelliott ( |
Job added to Upwork: https://www.upwork.com/jobs/~018cfdce1c85555976 |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Ollyws ( |
Hey there shouldn't be any proper handling for requesting money with category. We can use if and AND condition to solve this issue. Let me know if you need a help. Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
@Ollyws, @stephanieelliott Huh... This is 4 days overdue. Who can take care of this? |
Sure... I can help you |
Hey @NisargDeveloper if you'd like to work on this, can you please post a proposal per the instructions in https://github.com/Expensify/App/blob/main/contributingGuides/CONTRIBUTING.md? |
hey! @stephanieelliott I tried to reproduce it. I'm thinking I'm missing step. May I know how can I setup Old Dot?. |
@NisargDeveloper can you lend context into which step you are getting hung up on? Perhaps @kbecciv can help clarify |
Hi, I’m Michael (Mykhailo) from Callstack and I would like to work on this issue. |
@NisargDeveloper Here is instruction how to set up Category in Olddot |
📣 @Ollyws 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
Assigning @rezkiy37 as they worked on these features and will handle this update too |
So, guys, looks like we have a collision regarding the maximum length of name for a category. We can add a category up to 256 symbols on the OD, 257 symbols are too long. However, when we create a money request on ND, the backend does not accept a category with 256 symbols name. OD.mp4Based on this, looks like we need to unify backend restrictions for name's length. cc @mountiny, @puneetlath |
Current assignee @Ollyws is eligible for the Internal assigner, not assigning anyone new. |
I noticed that this is also broken for OldDot. I'm asking in slack to confirm the path we want to take to fix this: https://expensify.slack.com/archives/C02MW39LT9N/p1701396084292819 |
We can't increase the category max length beyond 255, so we are going with the solution of improving the error feedback. Working on improving the error returned by the backend, it feels a bit junky the experience because the modal closes and then an error appears in the chat. I think a better and less confusing UX is to have the limit as a form validation that won't allow you to submit the expense. |
I put up a draft PR. The solution looks like this: Screen.Recording.2023-12-01.at.4.56.24.PM.movPlease let me know if you think that is fine to finish the PR (description/videos). |
@aldo-expensify, so, isn't there a way to align the limitation on the backend side? I looks odd that user can add a category, but cannot use. However, if really no way, then I agree with the detailed message. |
I'm guessing you are referring to rejecting in the backend (and frontend) a user creating a category longer than 255 because they won't be able to use it anyway. I think both things can be done independently: the validation proposed above and disallow creating long categories. The problem with implementing the second part is that categories can be added manually and also automatically from integrations with external services. The part of the integrations can get complicated if we want to provide some feedback about why some categories didn't load. Also, we would have to think about what would we do with long categories that are already in the database. Considering the complexity of that second part, and that this is an edge case (someone very very very rarely will add such long category), I don't think it is worth it to try the second part and we should only do the proposed front end validation when using the category. |
Made PR ready for review: #32394 |
Got you, makes sense. Thank you 🙂 |
This issue didn't update but the PR was pushed to prod on 12/14. Adjusting title to remember to issue payment after 7 day hold. |
Issue is ready for payment but no BZ is assigned. @dylanexpensify you are the lucky winner! Please verify the payment summary looks correct and complete the checklist. Thanks! |
Summarizing payment on this issue:
Upwork job is here: https://www.upwork.com/jobs/~018cfdce1c85555976 |
Accepted, thanks! |
All paid, thank you! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 1.3.94.0
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:
Issue found when executing PR #30264
Action Performed:
Precondition:
The following long category is set up on OldDot.
Meals: Level 2 nesting and a category name that could span two lines: Level 3 nesting and a category name that could span two lines: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Expected Result:
The request is successful.
Actual Result:
The request is not successful. It shows an unexpected error message.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
Bug6259289_1698837857753.20231101_100027.mp4
MacOS: Desktop
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: