App icon indicating copy to clipboard operation
App copied to clipboard

Download file doesn't have the same name as preview

Open isagoico opened this issue 5 years ago β€’ 18 comments

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Issue is failing PR https://github.com/Expensify/App/pull/4736

Action Performed:

  1. Navigate to staging chat
  2. Upload any word document (docx) or non-preview document
  3. Clicking on download file

Expected Result:

The download file should give the same filename as preview.

Actual Result:

The download file has different name than preview file.

Workaround:

Can the user still use Expensify without this being fixed? Have you informed them of the workaround?

Platform:

Where is this issue occurring?

  • Web
  • iOS
  • Android
  • Desktop App
  • Mobile Web

Version Number: 1.0.88-0

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

Notes/Photos/Videos: Any additional supporting documentation image

https://user-images.githubusercontent.com/44479856/131056638-1a1fcfc5-8dfc-41fb-b7dc-68cc73f33181.mp4

Expensify/Expensify Issue URL:

View all open jobs on GitHub

isagoico avatar Aug 27 '21 01:08 isagoico

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

MelvinBot avatar Aug 27 '21 01:08 MelvinBot

:wave: 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.

OSBotify avatar Aug 27 '21 01:08 OSBotify

@thienlnam @akshayasalvi I noticed this behaviour was present when working on the PR (mentioned here) Should this still be considered a deploy blocker even if it's failing the PR?

isagoico avatar Aug 27 '21 01:08 isagoico

~Proposal~ Suggestion

  1. We should pass the filename as a second paramter to the fileDownload method. https://github.com/Expensify/App/blob/5e883f3da811567e2bce647a61c0b570719705bb/src/components/AnchorForCommentsOnly/BaseAnchorForCommentsOnly/index.js#L31
  2. fileName is already available as a prop here.

parasharrajat avatar Aug 27 '21 06:08 parasharrajat

Yeah. We were not able to test it from localhost. I had recently added the fileName in the param. I’ll be raising the changes for the pr in a while.

akshayasalvi avatar Aug 27 '21 06:08 akshayasalvi

Awesome @akshayasalvi. Please tag this issue into your PR as well.

parasharrajat avatar Aug 27 '21 06:08 parasharrajat

PR Raised and issue tagged.

akshayasalvi avatar Aug 27 '21 07:08 akshayasalvi

I noticed this behaviour was present when working on the PR

Do we know if this is a regression? I can't recall if this was ever working or not. If not let's remove the deployBlocker label.

Julesssss avatar Aug 27 '21 09:08 Julesssss

So this is something new and issues are found for a new feature then it's good to push the new feature to the prod with fixes. so I think this justifies as a deployBlocker.

parasharrajat avatar Aug 27 '21 09:08 parasharrajat

Oh, didn't notice this was new. Sure, we just don't want to block the release for something that currently exists in prod.

Julesssss avatar Aug 27 '21 09:08 Julesssss

But it's already being fixed here https://github.com/Expensify/App/pull/4871 so we can just CP it. Should be quick.

parasharrajat avatar Aug 27 '21 10:08 parasharrajat

PR is deployed and working.

image

akshayasalvi avatar Aug 27 '21 17:08 akshayasalvi

Fix worked! https://github.com/Expensify/App/pull/4871#issuecomment-907365363 removing the deploy blocker label

isagoico avatar Aug 27 '21 17:08 isagoico

Looks like we can close this right? Good job @akshayasalvi

ctkochan22 avatar Aug 27 '21 17:08 ctkochan22

Thank you

akshayasalvi avatar Aug 27 '21 18:08 akshayasalvi

πŸš€ Deployed to staging by @sketchydroide in version: 1.0.88-3 πŸš€

platform result
πŸ€– android πŸ€– cancelled πŸ”ͺ
πŸ–₯ desktop πŸ–₯ cancelled πŸ”ͺ
🍎 iOS 🍎 cancelled πŸ”ͺ
πŸ•Έ web πŸ•Έ success βœ…

botify avatar Aug 30 '21 17:08 botify

πŸš€ Deployed to production by @roryabraham in version: 1.0.88-2 πŸš€

platform result
πŸ€– android πŸ€– success βœ…
πŸ–₯ desktop πŸ–₯ success βœ…
🍎 iOS 🍎 failure ❌
πŸ•Έ web πŸ•Έ success βœ…

botify avatar Aug 30 '21 17:08 botify

πŸš€ Deployed to production by @roryabraham in version: 1.0.90-2 πŸš€

platform result
πŸ€– android πŸ€– success βœ…
πŸ–₯ desktop πŸ–₯ success βœ…
🍎 iOS 🍎 failure ❌
πŸ•Έ web πŸ•Έ success βœ…

botify avatar Sep 01 '21 01:09 botify