-
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-06-19] [$1000] welcome message value not trimmed after click save. #20013
Comments
Triggered auto assignment to @lschurr ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Welcome message value not trimmed after click save. What is the root cause of that problem?There is no trim for App/src/pages/ReportWelcomeMessagePage.js Lines 46 to 48 in a6e6fe9
What changes do you think we should make in order to solve the problem?We need to Trim const submitForm = useCallback(() => {
Report.updateWelcomeMessage(props.report.reportID, props.report.welcomeMessage, welcomeMessage.trim());
}, [props.report.reportID, props.report.welcomeMessage, welcomeMessage]); What alternative solutions did you explore? (Optional) |
Proposal |
How to solve that issue?We should remove the space from the welcome message string before saving it. |
📣 @SoftEverest! 📣
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
Job added to Upwork: https://www.upwork.com/jobs/~01ab72ee2de7dd767d |
Current assignee @lschurr is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @eVoloshchak ( |
Triggered auto assignment to @alex-mechler ( |
@eVoloshchak could you review the proposals here? Is this a duplicate report? |
@lschurr could you possibly assign this issue to me? I want to contribute to Expensify app firstly with this issue. |
@lschurr @eVoloshchak I have proposed the solution for this before the first proposal here, Please consider this and review it. I have been trying to contribute to Expensify for many days, would be great if I got the chance to this one. |
@eVoloshchak @alex-mechler are you able to weigh in here? |
@lschurr @alex-mechler @eVoloshchak
Thanks! |
@ahmedGaber93 I don't think this should be a valid reason to not accept my proposal. I have clearly mentioned the issue and the proposal here. I am trying to contribute first time here, @alex-mechler @eVoloshchak @lschurr can you please look into my proposal and the mentioned comment. Also, there is no point in reporting a new issue that is just an extension of the already reported issue. This issue already incorporates inconsistency with the welcome message hence I mentioned the exact point there 3 days ago with the issue resolution proposal. Thanks! |
ProposalPlease re-state the problem that we are trying to solve in this issue.Whitespace on welcome message is not trimmed What is the root cause of that problem?Welcome message isn't trimmed upon submitting to backend What changes do you think we should make in order to solve the problem?Trimming function updateWelcomeMessage(reportID, previousValue, newValue) {
newValue = newValue.trim()
// No change needed, navigate back
if (previousValue === newValue) {
Navigation.goBack();
return;
}
const parsedWelcomeMessage = ReportUtils.getParsedComment(newValue); What alternative solutions did you explore? (Optional)Since untrimmed welcome message could be already existed by now, so I also propose to trim any existing welcome message upon showing it on the page. <TextInput
inputID="welcomeMessage"
label={props.translate('welcomeMessagePage.welcomeMessage')}
multiline
numberOfLines={10}
maxLength={CONST.MAX_COMMENT_LENGTH}
ref={welcomeMessageInputRef}
value={welcomeMessage.trim()}
onChangeText={handleWelcomeMessageChange}
autoCapitalize="none"
/> |
Looks like something related to As a reminder, please make sure that all proposals are not workarounds and that any and all attempt to fix the issue holistically have been made before proceeding with a solution. Proposals to change our Feel free to drop a note in #expensify-open-source with any questions. |
📣 @reinaldosg! 📣
|
@kavimuru's proposal here looks good to me! 🎀👀🎀 C+ reviewed! |
Thanks! @kavimuru was posting @ahmedGaber93's proposal from slack when they initially reported the bug, so assigning @ahmedGaber93 here! |
📣 @ahmedGaber93 You have been assigned to this job by @alex-mechler! |
@alex-mechler @eVoloshchak PR is ready for review. |
🎯 ⚡️ Woah @eVoloshchak / @ahmedGaber93, 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 🚀 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.26-4 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-19. 🎊 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.
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:
|
@eVoloshchak @ahmedGaber93 - please apply for the job in Upwork: https://www.upwork.com/jobs/~01ab72ee2de7dd767d |
@eVoloshchak do we need a regression test for this one? |
I don't think we need a regression test here. The bug isn't impactful and kind of an edge case |
Offers sent in Upwork. |
@lschurr I accept the offer, but we missed issue reporter bounty in the offer. |
@ahmedGaber93 - it should be $1000 and then we add a $500 bonus when we pay. |
I paid $1500 to both. Closing! |
@lschurr Sorry, it is my fault, but I am talking about issue reporter Bounty 250$ |
Ah, gotcha! I didn't notice that you were also the reporter on this one @ahmedGaber93. I'll add that $250. |
@lschurr I received it, Thanks! |
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:
Welcome message should trimmed after click save.
Actual Result:
Welcome message not trimmed after click save.
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.22-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
Screen.Recording.2023-05-30.at.11.51.24.PM.mov
Recording.843.mp4
Expensify/Expensify Issue URL:
Issue reported by: @ahmedGaber93
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1685483613790139
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: