-
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
[Awaiting checklist] [$125] Task-Inconsistency in error display on creating task with long task title #50398
Comments
Triggered auto assignment to @twisterdotcom ( |
@twisterdotcom 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 |
This comment was marked as off-topic.
This comment was marked as off-topic.
ProposalPlease re-state the problem that we are trying to solve in this issue.Task-Inconsistency in error display on creating task with long task title What is the root cause of that problem?When we create task from create task page, we have validation for title length so we haven't considered a display error message in case task title is too long. But we could not implement the same validation for markdown. What changes do you think we should make in order to solve the problem?Make changes to errors for failure data here errors: title.length>CONST.TITLE_CHARACTER_LIMIT ?ErrorUtils.getMicroSecondOnyxErrorWithTranslationKey('task.titleTooLong') : ErrorUtils.getMicroSecondOnyxErrorWithTranslationKey('task.genericCreateTaskFailureMessage'), Line 269 in cb0ccbc
include new error in en.ts and es.ts files titleTooLong: 'Task title is too long', Line 4083 in cb0ccbc
taskTitleTooLong: 'El título de la tarea es demasiado largo', Line 4128 in cb0ccbc
What alternative solutions did you explore? (Optional)Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
Very edge case, so downgrading but it is a bug. |
Job added to Upwork: https://www.upwork.com/jobs/~021844741867905614976 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @shubham1206agra ( |
Upwork job price has been updated to $125 |
The problem is that we are creating this task inline and do not validate it in the composer. But we should have done it. |
@shubham1206agra you are right, we do not validate it in composer.
Do you have any suggestions how can we inform user about the length if we validate in composer? I can't think of any... |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@twisterdotcom I don't think we are showing error at correct place. We should show error before submitting the message. Just like maximum limit exceeded for comment. Do you agree with this comment? |
@twisterdotcom @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! |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@twisterdotcom Bump here #50398 (comment) |
Man this bug is so niche. Yes, I agree, if we can show the error earlier, ie before they even try to send the message to create the task, that is better and as you say, more in line with the comment maximum error. |
I actually don't love this |
📣 @wildan-m 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@marcaaron Markdown only renders in the main composer when creating a new chat. It does not render when editing an existing chat, so task title validation is not necessary for other cases. |
Feels like a pre-optimization? |
Or we can make a more specific hook? |
@marcaaron Before, I only included the code logic in the main composer since it would be exclusively used there.
can you provide more details on the suggestion? the current specific logic would call existing logic from |
Yeah, sorry, I don't know how to add more details here without doing the work for you. Mainly, I'm not wanting to see the argument to add some "exceptional" functionality. We can create a new method or just have the logic run each time. Pick either one. |
@hoangzinh @marcaaron The PR is ready with the most recent feedback. #52941. Thanks! |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.74-8 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-12-19. 🎊 For reference, here are some details about the assignees on this issue:
|
@hoangzinh @twisterdotcom @hoangzinh The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button] |
Payment Summary:
|
BugZero Checklist:
Bug classificationSource of bug:
Where bug was reported:
Who reported the bug:
Regression Test ProposalTest:
Do we agree 👍 or 👎 |
Requested payment in ND |
$125 approved for @hoangzinh |
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: v9.0.46-2
Reproducible in staging?: Y
Reproducible in production?: Y
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
There must not be inconsistency in error display for long task title while creating task using assign task & via []
Actual Result:
Inconsistency in error display for long task title while creating task using assign task & via [] .
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6628212_1728383597986.screenrecorder-2024-10-08-12-39-22-160_compress_1.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @hoangzinhThe text was updated successfully, but these errors were encountered: