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

Delete comment - Deleted comment is still visible in receiver side #3249

Closed
isagoico opened this issue May 31, 2021 · 10 comments
Closed

Delete comment - Deleted comment is still visible in receiver side #3249

isagoico opened this issue May 31, 2021 · 10 comments
Assignees

Comments

@isagoico
Copy link

isagoico commented May 31, 2021

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


Expected Result:

Deleted comment should not be visible for receiver after it has been deleted.

Actual Result:

Deleted comment is still visible in receiver side and it only shows a blank attachment. When login out and in again the comment is not visible.

Action Performed:

Pre-requisite: be logged in to sender and receiver accounts at the same time.

  1. As the sender account, send an image to account B (receiver)
  2. Delete the comment with the image.
  3. As the receiver account, check the conversation with the sender account.

Workaround:

Login out and in again will not show the deleted comment anymore.

Platform:

Where is this issue occurring?

Web ✔️
iOS
Android
Desktop App
Mobile Web

Version Number: 1.0.58-0

Logs: https://stackoverflow.com/c/expensify/questions/4856

Notes/Photos/Videos:
Found while executing QA for #2046

image

Expensify/Expensify Issue URL:

View all open jobs on Upwork

@isagoico isagoico added DeployBlockerCash This issue or pull request should block deployment Engineering Daily KSv2 labels May 31, 2021
@MelvinBot
Copy link

Triggered auto assignment to @MariaHCD (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@OSBotify
Copy link
Contributor

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open StagingDeployCash deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@github-actions github-actions bot added Hourly KSv2 and removed Daily KSv2 labels May 31, 2021
@isagoico
Copy link
Author

Added the deploy blocker label since the Delete comment feature has not hit production yet.

@MariaHCD
Copy link
Contributor

MariaHCD commented Jun 1, 2021

Tagging @sketchydroide as you worked on the original issue! 🙌🏼

@MariaHCD MariaHCD assigned sketchydroide and unassigned MariaHCD Jun 1, 2021
@sketchydroide
Copy link
Contributor

Thanks @MariaHCD.

Hmm, not sure what is happening, but I'll take a look

@sketchydroide
Copy link
Contributor

Might need some help sorting this out, I think I know what is happening, but not sure on how to fix it.
So when someone deletes the attachement they are changing '[Attachment]' to '' wich basically sets the comment as no longer being an attachement but I assume all the attachement information would still be around. I think this might need a bit more work on the Web side, but maybe not a bug on e.cash itself.
Or maybe we should no able to delete attachements for now, and the logic to shouldShow should be the same for both edit and delete.

Any thought and inputs @rory @yuwenmemon @marcaaron?

@roryabraham
Copy link
Contributor

I just merged a contributor PR which implements a separate function called canEditReportAction and uses it to determine whether or not to show these actions. It should return false for any attachment reportActions, and should temporarily resolve this to prevent it from being a deploy blocker.

@sketchydroide
Copy link
Contributor

sketchydroide commented Jun 1, 2021

ok cool, I've checked the PR, and it does one of the things I suggested, so I'm happy that this should no longer be a deploy blocker @isagoico can we check please :)

To be clear we can no longer delete attachements, the delete button should not be visible anymore for attachements.

@isagoico
Copy link
Author

isagoico commented Jun 1, 2021

Checked and the option to delete is not there 🎉 Removing deploy blocker label
image

@isagoico isagoico removed the DeployBlockerCash This issue or pull request should block deployment label Jun 1, 2021
@sketchydroide
Copy link
Contributor

Ok closing this one then, as we can't reproduce it anymore, and we will probably need make a decision on how to handle attachements somewhere else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants