Skip to content

[Due for payment 2025-04-18] Threads - 'Download as PDF" option is be shown for DM thread, room and workspace chat #59873

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
3 of 8 tasks
jponikarchuk opened this issue Apr 9, 2025 · 29 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering Reviewing Has a PR in review

Comments

@jponikarchuk
Copy link

jponikarchuk commented Apr 9, 2025

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: 9.1.25-0
Reproducible in staging?: Yes
Reproducible in production?: Unable to check, new feature
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A
If this was caught during regression testing, add the test name, ID and link from TestRail: Exp
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Device used: Mac 15.3 / Chrome
App Component: Chat Report View

Action Performed:

Precondition:

  • Log in with Expensifail account.
  1. Go to staging.new.expensify.com
  2. Go to 1:1 DM.
  3. Send a message.
  4. Right click on the message > Reply in thread.
  5. Click on the thread header.

Expected Result:

'Download as PDF" option will not be shown for DM thread.

Actual Result:

'Download as PDF" option is be shown for DM thread.
When trying to download the PDF, it fails.

The download PDF option is also seen in room details page and workspace chat.

Workaround:

Unknown

Platforms:

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

1.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @RachCHopkins
@jponikarchuk jponikarchuk added Bug Something is broken. Auto assigns a BugZero manager. DeployBlockerCash This issue or pull request should block deployment labels Apr 9, 2025
Copy link

melvin-bot bot commented Apr 9, 2025

Triggered auto assignment to @RachCHopkins (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

Copy link

melvin-bot bot commented Apr 9, 2025

Triggered auto assignment to @mollfpr (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

@melvin-bot melvin-bot bot added the Daily KSv2 label Apr 9, 2025
Copy link

melvin-bot bot commented Apr 9, 2025

💬 A slack conversation has been started in #expensify-open-source

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Apr 9, 2025
Copy link
Contributor

github-actions bot commented Apr 9, 2025

👋 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.

@nkdengineer
Copy link
Contributor

Proposal

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

'Download as PDF" option is be shown for DM thread.
When trying to download the PDF, it fails.

What is the root cause of that problem?

This comes from https://github.com/Expensify/App/pull/58084/files#diff-409b0e2fb439856e9897b808014031ce244a427d116ed30f37a2e0117599adc4L558

We removed the check caseID === CASES.MONEY_REPORT then the Download as PDF option is shown for all reports if the beta is enabled.

if (canUsePDFExport) {

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

We should add the check the report is an expense report or not back

if (canUsePDFExport && caseID === CASES.MONEY_REPORT) {

if (canUsePDFExport) {

What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?

None

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.

@mananjadhav
Copy link
Collaborator

@jnowakow looks like from our PR.

@jnowakow
Copy link
Contributor

jnowakow commented Apr 9, 2025

@mananjadhav yup :/ will take a look

@mollfpr
Copy link
Contributor

mollfpr commented Apr 9, 2025

@jnowakow Are you able to create the fix PR soon?

@nkdengineer
Copy link
Contributor

@mollfpr I can help with a quick fix if @jnowakow is not available.

@SzymczakJ
Copy link
Contributor

SzymczakJ commented Apr 9, 2025

@jnowakow asked me to take over this issue. From what I see, the @nkdengineer's solution fixes the issue. I can raise a PR, but I wouldn't do anything more than @nkdengineer did in his proposal.

Should we give it to @nkdengineer? @mollfpr

@mollfpr
Copy link
Contributor

mollfpr commented Apr 9, 2025

@SzymczakJ Thanks for the confirmation, and I agree with you. I also confirm that @nkdengineer can create the PR soon. So I'll assign the issue to them.

@mollfpr
Copy link
Contributor

mollfpr commented Apr 9, 2025

@mananjadhav I'm assigning for the PR review. Thanks!

@melvin-bot melvin-bot bot added the Weekly KSv2 label Apr 9, 2025
@luacmartins
Copy link
Contributor

FYI we reverted the original offending PR

Copy link

melvin-bot bot commented Apr 9, 2025

⚠️ 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.

@luacmartins luacmartins removed the DeployBlockerCash This issue or pull request should block deployment label Apr 9, 2025
@jasperhuangg
Copy link
Contributor

This was fixed!

@nkdengineer
Copy link
Contributor

@jasperhuangg Should I get the payment here since the PR is done and we decided to revert the offending PR?

@jasperhuangg
Copy link
Contributor

@nkdengineer Ah thanks for bringing that to my attention. Because you were assigned by an internal employee and you drafted a PR, you are owed 100% payment for your time. @RachCHopkins can we be sure that @nkdengineer gets paid out here?

@jasperhuangg jasperhuangg reopened this Apr 10, 2025
@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Apr 11, 2025
@melvin-bot melvin-bot bot changed the title Threads - 'Download as PDF" option is be shown for DM thread, room and workspace chat [Due for payment 2025-04-18] Threads - 'Download as PDF" option is be shown for DM thread, room and workspace chat Apr 11, 2025
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Apr 11, 2025
Copy link

melvin-bot bot commented Apr 11, 2025

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

Copy link

melvin-bot bot commented Apr 11, 2025

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.26-10 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 2025-04-18. 🎊

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

  • @mananjadhav requires payment through NewDot Manual Requests
  • @nkdengineer requires payment (Needs manual offer from BZ)

Copy link

melvin-bot bot commented Apr 11, 2025

@mananjadhav @RachCHopkins @mananjadhav The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Weekly KSv2 labels Apr 15, 2025
@RachCHopkins
Copy link
Contributor

@mananjadhav do we need a checklist here? Also, I assume there is no payment for you.

@mananjadhav
Copy link
Collaborator

Yeah looks like no payment. The PR was reverted, so no checklist as well.

@RachCHopkins
Copy link
Contributor

@nkdengineer I have sent you an offer!

@RachCHopkins
Copy link
Contributor

Payment Summary:

Upwork job here

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Apr 17, 2025
@RachCHopkins
Copy link
Contributor

Contributor has been paid, the contract has been completed, and the Upwork post has been closed.

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. Daily KSv2 Engineering Reviewing Has a PR in review
Projects
None yet
Development

No branches or pull requests

9 participants