-
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-07-14] [$1000] Original message is displayed for few seconds after adding emoji reaction on edited message #21826
Comments
Triggered auto assignment to @jliexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?
Code for `toggleEmojiReaction`function toggleEmojiReaction(reportID, reportAction, emoji, paramSkinTone = preferredSkinTone) {
const latestReportAction = ReportActionsUtils.getReportAction(reportID, reportAction);
const message = latestReportAction.message[0];
const reactionObject = message.reactions && _.find(message.reactions, (reaction) => reaction.emoji === emoji.name);
const skinTone = emoji.types === undefined ? null : paramSkinTone; // only use skin tone if emoji supports it
if (reactionObject) {
if (hasAccountIDReacted(currentUserAccountID, reactionObject.users, skinTone)) {
return removeEmojiReaction(reportID, latestReportAction, emoji, skinTone);
}
}
return addEmojiReaction(reportID, latestReportAction, emoji, skinTone);
} What alternative solutions did you explore? (Optional)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.What is the root cause of that problem?When user opens the emoji picker from the reaction bar, App/src/components/Reactions/MiniQuickEmojiReactions.js Lines 59 to 71 in d1a743c
The value of App/src/pages/home/report/ContextMenu/ContextMenuActions.js Lines 60 to 63 in 53e4154
This is the root cause What changes do you think we should make in order to solve the problem?We can get latest App/src/libs/actions/Report.js Line 1641 in 53e4154
The final function would look like
This works as expected. Result21826_mac_chrome.mp4What alternative solutions did you explore? (Optional) |
Comment : #21826 (comment)Check below video for fix if necessary. Fixed VideoEditText-PickerFixVideo.mp4 |
Did some Android issues for Sophie, so doing an issue swap as I'm a bit swamped today and working 50%. |
Job added to Upwork: https://www.upwork.com/jobs/~015a60dfce3c07cce2 |
Current assignee @sophiepintoraetz is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rushatgabhane ( |
@jeet-dhandha i agree with the root cause and the solution. |
Triggered auto assignment to @neil-marcellini, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Sounds good to me too thanks! |
📣 @rushatgabhane You have been assigned to this job! |
📣 @jeet-dhandha You have been assigned to this job! |
📣 @dhanashree! 📣
|
The BZ member will need to manually hire dhanashree for this role Reporter. Please store your Upwork details and apply to our Upwork job so this process is automatic in the future! |
@neil-marcellini @rushatgabhane - Will create a PR and send here. |
Okay so @jeet-dhandha - can you confirm whether your PR introduced a regression? If so, it is correct that is a 50% deduction for you, @rushatgabhane? (So 1500/2 = $750) Lastly, what is needed to close out this issue? |
@sophiepintoraetz There’s a pr which needs to be merged before mine so waiting for that. |
Okay but to be clear, your PR did not introduce a regression? |
It introduced on DEV env, basically someone was testing on main branch and had a issue in reacting with emoji in a thread chat’s first message. So i fixed it before it can go to Stagging. But my PR was not merged due to this #17996 PR. |
So you can somewhat count it as a regression on DEV end. |
Any idea on when can we merge that PR ? |
Okay so we actually can't release payment until the 7 day window has passed. I think if a regression is introduced in production, that would have the penalty applied...so you're lucky! And Rushat will be best placed to say when we can merge. |
Hi @sophiepintoraetz, I have accepted the offer, you have also sent invite for that job so not accepting that as offer already accepted. |
@neil-marcellini, @rushatgabhane, @sophiepintoraetz, @jeet-dhandha Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Waiting for @stitesExpensify to complete the requested changes on this PR : #17996 and then i will have to make changes accordingly for my PR and then we will be able to complete this. @stitesExpensify if you need any help completing it quicker do tell me. Hoping to hear from you soon. |
Hi @sophiepintoraetz, I just got another offer for this issue from @trjExpensify and I understood that it was already paid after accepting it. Not sure what to do about it, kindly suggest. |
Most probably offer was for #20423 as @trjExpensify sent me offer with this issue title and had mentioned that offer was sent on that issue. |
Yeah, I just fudged the contract title on #20243. My bad! Paid that one out anyhow! |
Not overdue |
@aimane-chnaif should i take a pull from |
I think you can pull main and fix conflict as there's not much code changes |
Thanks will do that. |
@jeet-dhandha @aimane-chnaif @rushatgabhane - can we confirm the PR for this issue has merged with no regressions in the last 7 days? I'm not sure why we're talking about creating/editing branches if the PR has merged? |
@sophiepintoraetz i think they're talking about a different issue. But the bottom line is this - @jeet-dhandha needs to be paid $500 (half of base price because no bonus in case of regression) |
Got it - thanks. @anmurali or @JmillsExpensify will pay you $500 in NewDot once you've completed the checklist here! |
Payment issue to Jeet and contract ended - closing. |
@sophiepintoraetz wondering does the payment gets 1/3rd when received ? |
@jeet-dhandha - see the comment from the c+ here |
Reviewed details for @rushatgabhane. This is accurate and approved for payment in NewDot. |
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:
App should not display older message i.e. message before edit on adding reaction to edited message
Actual Result:
App displays older message i.e. message before edit on adding reaction to edited message
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.33-3
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
older.edit.message.is.displayed.on.reaction.2.mp4
Recording.946.mp4
Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1687870862782029
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: