Skip to content
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

IOS - Chat - Main composer is displayed when editing second message #17531

Closed
1 of 6 tasks
kbecciv opened this issue Apr 17, 2023 · 180 comments
Closed
1 of 6 tasks

IOS - Chat - Main composer is displayed when editing second message #17531

kbecciv opened this issue Apr 17, 2023 · 180 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Weekly KSv2

Comments

@kbecciv
Copy link

kbecciv commented Apr 17, 2023

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Issue found when executing PR #17221

Action Performed:

  1. Open NewDot app
  2. Open any chat
  3. Send 2 messages
  4. Start edit for both messages

Expected Result:

Main compose box should not be displayed

Actual Result:

Main compose box appears on the screen once I start to edit second message

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: 1.3.0.0

Reproducible in staging?: Yes

Reproducible in production?: Yes

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

Bug6018008_IMG_9466.mp4

Expensify/Expensify Issue URL:

Issue reported by: Applause - Internal Team

Slack conversation:

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0193911d4ae1a59365
  • Upwork Job ID: 1648310272611299328
  • 2023-07-17
  • Automatic offers:
    • | | 0
    • s-alves10 | Contributor | 25753192
@kbecciv kbecciv added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Apr 17, 2023
@MelvinBot
Copy link

Triggered auto assignment to @zanyrenney (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@MelvinBot
Copy link

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@zanyrenney
Copy link
Contributor

zanyrenney commented Apr 18, 2023

I can reproduce this in production --
2023-04-18_13-57-32

@zanyrenney zanyrenney added the External Added to denote the issue can be worked on by a contributor label Apr 18, 2023
@melvin-bot melvin-bot bot changed the title IOS - Chat - Main composer is displayed when editing second message [$1000] IOS - Chat - Main composer is displayed when editing second message Apr 18, 2023
@MelvinBot
Copy link

Job added to Upwork: https://www.upwork.com/jobs/~0193911d4ae1a59365

@MelvinBot
Copy link

Current assignee @zanyrenney is eligible for the External assigner, not assigning anyone new.

@MelvinBot
Copy link

Triggered auto assignment to Contributor-plus team member for initial proposal review - @aimane-chnaif (External)

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Apr 18, 2023
@MelvinBot
Copy link

Triggered auto assignment to @techievivek (External), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@MelvinBot
Copy link

📣 @prempratapsingh! 📣

Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:

  1. Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
  2. Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
  3. Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.

Screen Shot 2022-11-16 at 4 42 54 PM

Format:

Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>

@MelvinBot
Copy link

✅ Contributor details stored successfully. Thank you for contributing to Expensify!

@chriscoderdr
Copy link

Proposal

Please re-state the problem that we are trying to solve in this issue.

Chat - Main composer is displayed when editing second message

What is the root cause of that problem?

toggleReportActionComposeView (which hides or shows the composer view) is being call with true when the first comment lost focus because the keyboardDidHideListener

What changes do you think we should make in order to solve the problem?

As we are calling toggleReportActionComposeView when the user click save changes and cancel we don't need this call on keyboardDidHide.

But fixing that issue there is another related problem that we see:
If you're editing 2 comments or more at the same time and press save changes or cancel in one of them composer view will be displayed.

To fix that second problem, I propose we take away the responsibility to call toggleReportActionComposeView from each individual message edit (ReportActionItemMessageEdit) and instead take that to ReportActionsList so we can know if more than one edit is being done and call it accordingly.

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.

@MelvinBot
Copy link

📣 @chriscoderdr! 📣

Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:

  1. Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
  2. Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
  3. Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.

Screen Shot 2022-11-16 at 4 42 54 PM

Format:

Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>

@chriscoderdr
Copy link

Contributor details
Your Expensify account email: christiangomezdev@gmail.com
Upwork Profile Link: https://www.upwork.com/freelancers/~01cd7e16173e014f7b

@MelvinBot
Copy link

✅ Contributor details stored successfully. Thank you for contributing to Expensify!

@melvin-bot melvin-bot bot added the Overdue label Apr 21, 2023
@techievivek
Copy link
Contributor

@aimane-chnaif Can you please have a look at the above proposal by @chriscoderdr

@melvin-bot melvin-bot bot removed the Overdue label Apr 21, 2023
@zanyrenney
Copy link
Contributor

Heading OOO, reapplying the Bug0 label for active management.

@zanyrenney zanyrenney removed their assignment Apr 21, 2023
@zanyrenney zanyrenney added Bug Something is broken. Auto assigns a BugZero manager. and removed Bug Something is broken. Auto assigns a BugZero manager. labels Apr 21, 2023
@MelvinBot
Copy link

Triggered auto assignment to @sonialiap (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@melvin-bot
Copy link

melvin-bot bot commented Jul 26, 2023

❌ There was an error making the offer to @s77rt for the Reviewer role. The BZ member will need to manually hire the contributor. cc @thienlnam

@melvin-bot
Copy link

melvin-bot bot commented Jul 26, 2023

📣 @s77rt 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job

@melvin-bot
Copy link

melvin-bot bot commented Jul 26, 2023

📣 @HezekielT You have been assigned to this job!
Please apply to the Upwork job and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Once you apply to this job, your Upwork ID will be stored and you will be automatically hired for future jobs!
Keep in mind: Code of Conduct | Contributing 📖

@melvin-bot
Copy link

melvin-bot bot commented Jul 26, 2023

📣 @s-alves10 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@techievivek
Copy link
Contributor

@sonialiap We have decided to share the bounty equal between @HezekielT and @s-alves10, and @s-alves10 alone would be eligible for the 50% bonus if the PR gets merged in 3 business days.

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Jul 26, 2023
@s-alves10
Copy link
Contributor

@s77rt

PR is ready for review

@melvin-bot
Copy link

melvin-bot bot commented Jul 28, 2023

🎯 ⚡️ Woah @s77rt / @s-alves10, great job pushing this forwards! ⚡️

The pull request got merged within 3 working days of assignment, so this job is eligible for a 50% #urgency bonus 🎉

  • when @s-alves10 got assigned: 2023-07-26 03:13:04 Z
  • when the PR got merged: 2023-07-28 18:14:51 UTC

On to the next one 🚀

@melvin-bot
Copy link

melvin-bot bot commented Aug 1, 2023

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Aug 1, 2023
@melvin-bot melvin-bot bot changed the title [$2000] IOS - Chat - Main composer is displayed when editing second message [HOLD for payment 2023-08-08] [$2000] IOS - Chat - Main composer is displayed when editing second message Aug 1, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Aug 1, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 1, 2023

Reviewing label has been removed, please complete the "BugZero Checklist".

@melvin-bot
Copy link

melvin-bot bot commented Aug 1, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.48-5 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-08-08. 🎊

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.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

For reference, here are some details about the assignees on this issue:

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

@melvin-bot
Copy link

melvin-bot bot commented Aug 1, 2023

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:

  • [@s77rt] The PR that introduced the bug has been identified. Link to the PR:
  • [@s77rt] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@s77rt] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@s77rt] Determine if we should create a regression test for this bug.
  • [@s77rt] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@sonialiap] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@s77rt
Copy link
Contributor

s77rt commented Aug 2, 2023

Checklist is not due yet. We reverted the PR.

@techievivek Can we re-open this for proposals?

@techievivek
Copy link
Contributor

I think it would mess up the automation here 🤣, what would happen to the existing payment? Also, do we need to update the bounty to 1000 again?

@s77rt
Copy link
Contributor

s77rt commented Aug 2, 2023

There is no payment due here. If it may be easier we can close this issue and move it to the new one?

@techievivek
Copy link
Contributor

Ok, just to confirm, we don't pay anything if the PR gets reverted? I agree that moving the discussion to the new issue would be better.

@s-alves10
Copy link
Contributor

s-alves10 commented Aug 2, 2023

There is one issue related to main composer
#23908

I think it'd be good to close this issue as well and create a new issue containing all cases we've found.
I can create a bug report for this if you don't mind
And I think $2000 is reasonable for the start price

@techievivek
Copy link
Contributor

To summarize what happened over here, we reverted the PR selected for this issue and we will need to investigate further to find a proper fix for the bug(it's a complex one). Therefore, we have decided to close this issue and continue the discussion or propose new solutions at #23908. Additionally, I agree that a starting price of $2000 is reasonable for this bug. Thank you all for your efforts.

We have to make no payment over here.

@techievivek techievivek changed the title [HOLD for payment 2023-08-08] [$2000] IOS - Chat - Main composer is displayed when editing second message IOS - Chat - Main composer is displayed when editing second message Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Weekly KSv2
Projects
None yet
Development

No branches or pull requests