-
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
[HOLD for payment 2023-06-02] [$1000] white space accepted as description in Assign task #18796
Comments
Triggered auto assignment to @strepanier03 ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.leading and trailing space accepted as description and title in Assign task What is the root cause of that problem?we're not trimming the title and description What changes do you think we should make in order to solve the problem?We can App/src/pages/tasks/NewTaskDetailsPage.js Line 51 in 46390d6
App/src/pages/tasks/NewTaskTitlePage.js Line 58 in 46390d6
What alternative solutions did you explore? (Optional)None |
I think it was decided that we shouldn't fiddle with the user input in this issue cc @pecanoro |
I opened a discussion internally to see what we should do in these cases. |
Thanks @pecanoro! |
I'm following along with the discussion. Also, I don't have the task option in my FAB, so I'll look into that for proper testing on my end. |
Bumped the discussion in Slack. |
We haven't reached a decision yet but I bumped the thread so we can move forward. |
The discussion was opened up to a wider audience today. Post in #expensify-open-source here. If no pushback by tomorrow I'll move this forward with trimming as the goal. |
Conclusion of discussion: We have decided to take an always trim stance moving forward so we are free to move this to external to work on trimming the white space. Note: We don't want to trim white space between individual words of course. |
Job added to Upwork: https://www.upwork.com/jobs/~011652c334684162d9 |
Current assignee @strepanier03 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 @iwiznia ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.leading and trailing spaces space accepted as description and title in Assign task What is the root cause of that problem?we're not trimming the title and description What changes do you think we should make in order to solve the problem?We can App/src/pages/tasks/NewTaskDetailsPage.js Line 51 in 46390d6
App/src/pages/tasks/NewTaskTitlePage.js Line 60 in 7378626
App/src/pages/tasks/TaskTitlePage.js Line 63 in 7378626
What alternative solutions did you explore? (Optional)None |
ProposalPlease re-state the problem that we are trying to solve in this issue.While Assigning a task, in the first section of modal that opens from right. Description value that is saved is saved with trialing and leading spaces. What is the root cause of that problem?The root cause of problem is we are not cleaning (trimming) the value before we set that value in state. App/src/pages/tasks/NewTaskDetailsPage.js Lines 50 to 53 in 01875f4
What changes do you think we should make in order to solve the problem?The solution to this problem is trimming the value before actually saving it into state ( App/src/pages/tasks/NewTaskDetailsPage.js Lines 50 to 51 in 01875f4
What alternative solutions did you explore? (Optional)There are many places where we are taking input for description in
|
Add App/src/pages/tasks/NewTaskDetailsPage.js Lines 86 to 89 in 46390d6
Add also add
OR we can add App/src/components/EmojiPicker/EmojiPickerMenu/index.js Lines 487 to 496 in d7cbeca
App/src/components/EmojiPicker/EmojiPickerMenu/index.js Lines 383 to 384 in d7cbeca
cc: @sobitneupane |
@sobitneupane, @gadhiyamanan maybe it would be better to call trim inside all those methods instead of on the caller? |
In that case, We can add Line 289 in a891b6c
Line 365 in a891b6c
Line 393 in a891b6c
Line 401 in a891b6c
Line 409 in a891b6c
|
Cool, sounds good. |
📣 @gadhiyamanan You have been assigned to this job by @iwiznia! |
@sobitneupane PR is ready for review |
🎯 ⚡️ Woah @sobitneupane / @gadhiyamanan, great job pushing this forwards! ⚡️ The pull request got merged within 2 working days of assignment, so this job is eligible for a 50% #urgency bonus 🎉
On to the next one 🚀 |
PR is merged and awaiting deploy. All good here for now. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.18-2 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 2023-06-02. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
Speed bonus assessment: Contributor hired on May 22 / PR merged on May 24 = 2 days Eligible for bonus As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Prepping for hold removal tomorrow. @gadhiyamanan - I have hired you for the job in Upwork. I will pay the reporting bonus for this job in the one I hired you for so we don't have to make a second job, if that's okay. The total with speed bonus will be $1750. @sobitneupane - I've hired you as well. Feel free to complete the checklist and I'll update it and create the reg test GH if needed, then do the pay out. Back tomorrow 👋 |
https://expensify.slack.com/archives/C049HHMV9SM/p1685954728540999
I don't think separate regression test will be required. QA should make sure that white space are not accepted in any text input. |
Awesome, thank you for that @sobitneupane. I have paid everyone and finished off the checklist. Closing this out now. Fantastic job everyone! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
description should be trimmed
Actual Result:
description not trimmed
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.13.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
Notes/Photos/Videos: Any additional supporting documentation
Simulator.Screen.Recording.-.iPhone.13.-.2023-05-10.at.20.13.42.mp4
Recording.557.mp4
Expensify/Expensify Issue URL:
Issue reported by: @gadhiyamanan
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1683729900378959
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: