-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 2024-07-24][$250] mWeb/Safari - Attachments - New tab doesn't open when clicking the download button from the overflow menu on a .doc file #43857
Comments
Triggered auto assignment to @jliexpensify ( |
@jliexpensify FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors |
We think that this bug might be related to #vip-vsp |
ios <> Android swapsies |
Job added to Upwork: https://www.upwork.com/jobs/~018590692829acb48f |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @DylanDylann ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Opening a new tab is expected behaviour but it should be the same for context menu download button. Inconsistency bugsafari_file_download_inconsistency.mp4What is the root cause of that problem?We are not passing the
What changes do you think we should make in order to solve the problem?We should check if the attachment html is link and pass the to: const isLinkAttachment = html.startsWith('<a href');
fileDownload(sourceURLWithAuth, originalFileName ?? '', undefined, isLinkAttachment && Browser.isMobileSafari()).then(() => Download.setDownload(sourceID, false)); We should also check on other places where What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.A new tab opens and the download starts What is the root cause of that problem?We pass
What changes do you think we should make in order to solve the problem?I think we don't need to open a new tab when downloading the file in mWeb safari.
Instead, we will do nothing when clicking on the download button if a file is downloading in mWeb safari. To do that we can get all download collection and check we're downloading a file or not. Or we can create another Onyx key to know whether we download a file. What alternative solutions did you explore? (Optional) |
@nkdengineer Did you test your proposal with the previous problem? Please provide a test branch then I can ensure that there are no risks if we revert to the previous solution |
@Krishna2323 Please keep your proposal consistent.
Two these sections are conflict |
@Krishna2323 One more thing
Which places you want to mention here? |
@DylanDylann, I updated my proposal code snippet part. We also need to check if the attachment is a link or not before passing
In RCA section I explained the reason for the behaviour and inconsistency.
I think we only need to make change for the context menu. |
This is not the problem you are trying to solve |
@Krishna2323 In this section
Please re-state the problem you see and you are trying to resolve in your proposal. I don't see any value in this section when you copy the issue title. On the contrary, it confuses me |
@DylanDylann, opening a new tab is expected behaviour and we should do the same when downloading from the attachment from context menu.
Sorry for that, updated the proposal. |
@DylanDylann The test branch here. |
@kadiealexander, @DylanDylann Eep! 4 days overdue now. Issues have feelings too... |
@dukenv0307 will take this issue |
@dukenv0307 sorry for the delay! Please take a look at the proposals. |
Thanks for all your proposals @nkdengineer @Krishna2323. I want to re-confirm the expectations.
IMO, we should fix 2 to match 1 like @Krishna2323's proposal. (We can use REGEX_LINK_IN_ANCHOR to detect the anchor attachment) 🎀👀🎀 C+ reviewed |
Triggered auto assignment to @srikarparsi, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Pls let me know what your thought ^ @srikarparsi |
@srikarparsi @kadiealexander @dukenv0307 this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
Yes, this sounds good. I updated the issue's title and description. |
📣 @Krishna2323 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
Waiting for your PR @Krishna2323 |
Will raise PR by end of tomorrow. |
@dukenv0307, PR ready for review ^ |
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:
|
Payouts due:
Upwork job is here. |
BugZero Checklist:
Regression tests:
Do we 👍 or 👎 |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 1.4.84-2
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4636547
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
Download starts on a new tab
Actual Result:
Download starts on the same tab
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6516195_1718645800178.IMG_9378.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @dukenv0307The text was updated successfully, but these errors were encountered: