Skip to content

Download file doesn't have the same name as preview #4868

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

Closed
isagoico opened this issue Aug 27, 2021 · 18 comments
Closed

Download file doesn't have the same name as preview #4868

isagoico opened this issue Aug 27, 2021 · 18 comments
Assignees

Comments

@isagoico
Copy link

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 #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

Bug5211160_Name.mp4

Expensify/Expensify Issue URL:

View all open jobs on GitHub

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

Triggered auto assignment to @ctkochan22 (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.

@isagoico
Copy link
Author

@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?

@parasharrajat
Copy link
Member

parasharrajat commented Aug 27, 2021

Proposal Suggestion

  1. We should pass the filename as a second paramter to the fileDownload method.
  2. fileName is already available as a prop here.

@akshayasalvi
Copy link
Contributor

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.

@parasharrajat
Copy link
Member

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

@akshayasalvi
Copy link
Contributor

PR Raised and issue tagged.

@Julesssss
Copy link
Contributor

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.

@parasharrajat
Copy link
Member

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.

@Julesssss
Copy link
Contributor

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

@parasharrajat
Copy link
Member

But it's already being fixed here #4871 so we can just CP it. Should be quick.

@akshayasalvi
Copy link
Contributor

PR is deployed and working.

image

@isagoico
Copy link
Author

Fix worked! #4871 (comment) removing the deploy blocker label

@isagoico isagoico removed the DeployBlockerCash This issue or pull request should block deployment label Aug 27, 2021
@ctkochan22
Copy link
Contributor

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

@akshayasalvi
Copy link
Contributor

Thank you

@botify
Copy link

botify commented Aug 30, 2021

🚀 Deployed to staging by @sketchydroide in version: 1.0.88-3 🚀

platform result
🤖 android 🤖 cancelled 🔪
🖥 desktop 🖥 cancelled 🔪
🍎 iOS 🍎 cancelled 🔪
🕸 web 🕸 success ✅

@botify
Copy link

botify commented Aug 30, 2021

🚀 Deployed to production by @roryabraham in version: 1.0.88-2 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 failure ❌
🕸 web 🕸 success ✅

@botify
Copy link

botify commented Sep 1, 2021

🚀 Deployed to production by @roryabraham in version: 1.0.90-2 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 failure ❌
🕸 web 🕸 success ✅

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

9 participants