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

[HOLD for Payment 2024-09-12][$250] Import categories - Nothing happens after dragging and dropping file into RHP #48533

Closed
2 of 6 tasks
IuliiaHerets opened this issue Sep 4, 2024 · 35 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 External Added to denote the issue can be worked on by a contributor

Comments

@IuliiaHerets
Copy link

IuliiaHerets commented Sep 4, 2024

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.0.29-0
Reproducible in staging?: Y
Reproducible in production?: N
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to workspace settings > Categories.
  3. Click 3-dot menu.
  4. Click Import spreadsheet.
  5. Drag and drop a file into the RHP.

Expected Result:

The file can be dragged and dropped into the RHP.

Actual Result:

Nothing happens after dragging and dropping file into RHP.

Workaround:

Unknown

Platforms:

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6592372_1725411668751.20240904_075359.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021831640860340610285
  • Upwork Job ID: 1831640860340610285
  • Last Price Increase: 2024-09-05
Issue OwnerCurrent Issue Owner: @
Issue OwnerCurrent Issue Owner: @JmillsExpensify
@IuliiaHerets IuliiaHerets added DeployBlockerCash This issue or pull request should block deployment Bug Something is broken. Auto assigns a BugZero manager. labels Sep 4, 2024
Copy link

melvin-bot bot commented Sep 4, 2024

Triggered auto assignment to @JmillsExpensify (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 Sep 4, 2024

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

@melvin-bot melvin-bot bot added the Daily KSv2 label Sep 4, 2024
@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Sep 4, 2024
Copy link
Contributor

github-actions bot commented Sep 4, 2024

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

@mkzie2
Copy link
Contributor

mkzie2 commented Sep 4, 2024

Edited by proposal-police: This proposal was edited at 2024-09-04 09:42:02 UTC.

Proposal

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

Nothing happens after dragging and dropping file into RHP.

What is the root cause of that problem?

The drop event data here does not include the file's URI, later we would early return if it's missing URI:

if (!file.uri) {
return;
}

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

We need to manually create it following the below implementation:

const data = event.dataTransfer?.files[0];
if (data) {
data.uri = URL.createObjectURL(data);
displayFileInModal(data);
}

In here, create URI for the file object:

if (file) {
    file.uri = URL.createObjectURL(file);
    readFile(file);
}

@tuseefahmed786
Copy link

Edited by proposal-police: This proposal was edited at 2024-09-04 09:42:02 UTC.

Proposal

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

Nothing happens after dragging and dropping file into RHP.

What is the root cause of that problem?

The drop event data here does not include the file's URI, later we would early return if it's missing URI:

if (!file.uri) {
return;
}

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

We need to manually create it following the below implementation:

const data = event.dataTransfer?.files[0];
if (data) {
data.uri = URL.createObjectURL(data);
displayFileInModal(data);
}

In here, create URI for the file object:

if (file) {
    file.uri = URL.createObjectURL(file);
    readFile(file);
}

I was considering another method. I see that manually creating the URI with URL.createObjectURL is a workable solution. However, I wanted to make a point about potential memory management issues.

When using URL.createObjectURL, it's important to remember that these object URLs persist in memory until explicitly overridden. To prevent a possible memory leak, we should make sure that we call URL.revokeObjectURL() when the object URL is no longer needed.

Would it be helpful to add this cleanup step to our solution to manage memory usage more efficiently? I'd love to get feedback!

Copy link

melvin-bot bot commented Sep 4, 2024

📣 @tuseefahmed786! 📣
Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:

  1. Make sure you've read and understood the contributing guidelines.
  2. Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
  3. Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
  4. Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
    Screen Shot 2022-11-16 at 4 42 54 PM
    Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>

@mountiny
Copy link
Contributor

mountiny commented Sep 4, 2024

cc @filip-solecki @rushatgabhane @rlinoz coming from the import spreadsheet PR

@mountiny
Copy link
Contributor

mountiny commented Sep 4, 2024

This indeed feels like a blocker for the feature, not demoting. Added @rushatgabhane as he reviewed the original PR #47827

@filip-solecki
Copy link
Contributor

@mkzie2 Proposal looks good, maybe it will be better to put createObjectURL function inside readFile and use revokeObjectURL in finally as @tuseefahmed786 mentioned

@dannymcclain
Copy link
Contributor

Random little piece of feedback that kinda almost feels related to this, can we update the "Drop your file here" text to use our text color instead of textSupporting color? textSupporting doesn't look very good on that green.

CleanShot 2024-09-04 at 09 09 42@2x

cc @Expensify/design

@mountiny
Copy link
Contributor

mountiny commented Sep 4, 2024

@mkzie2 this is a deploy blocker, are you able to raise this PR and make it ready for review/ testing in the next couple of hours?

@mkzie2
Copy link
Contributor

mkzie2 commented Sep 4, 2024

Sure thing!

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Hourly KSv2 labels Sep 4, 2024
@shawnborton
Copy link
Contributor

I like that idea Danny!

@mountiny mountiny removed the DeployBlockerCash This issue or pull request should block deployment label Sep 5, 2024
@rlinoz rlinoz changed the title [$250] Import categories - Nothing happens after dragging and dropping file into RHP [Awaiting Payment 2024-09-12][$250] Import categories - Nothing happens after dragging and dropping file into RHP Sep 12, 2024
Copy link

melvin-bot bot commented Sep 16, 2024

@JmillsExpensify, @MariaHCD, @rushatgabhane, @mkzie2 10 days overdue. Is anyone even seeing these? Hello?

@rlinoz rlinoz changed the title [Awaiting Payment 2024-09-12][$250] Import categories - Nothing happens after dragging and dropping file into RHP [HOLD for Payment 2024-09-12][$250] Import categories - Nothing happens after dragging and dropping file into RHP Sep 16, 2024
@MariaHCD
Copy link
Contributor

The fix for this one was deployed to production. I believe we're just awaiting payment.

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Overdue Daily KSv2 labels Sep 17, 2024
Copy link

melvin-bot bot commented Sep 24, 2024

@JmillsExpensify, @MariaHCD, @rushatgabhane, @mkzie2 Huh... This is 4 days overdue. Who can take care of this?

@JmillsExpensify
Copy link

Payment summary:

@melvin-bot melvin-bot bot removed the Overdue label Sep 25, 2024
@garrettmknight
Copy link
Contributor

$250 approved for @rushatgabhane

@melvin-bot melvin-bot bot added the Overdue label Sep 27, 2024
Copy link

melvin-bot bot commented Sep 30, 2024

@JmillsExpensify, @MariaHCD, @rushatgabhane, @mkzie2 Huh... This is 4 days overdue. Who can take care of this?

@JmillsExpensify
Copy link

@mkzie2 are you still due payment on this issue?

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Oct 2, 2024
@mkzie2
Copy link
Contributor

mkzie2 commented Oct 7, 2024

@JmillsExpensify Yes, do you mind sending me an offer https://www.upwork.com/freelancers/~019f73367b03c6d784

Copy link

melvin-bot bot commented Oct 7, 2024

@JmillsExpensify, @MariaHCD, @rushatgabhane, @mkzie2 Huh... This is 4 days overdue. Who can take care of this?

Copy link

melvin-bot bot commented Oct 9, 2024

@JmillsExpensify, @MariaHCD, @rushatgabhane, @mkzie2 6 days overdue. This is scarier than being forced to listen to Vogon poetry!

@JmillsExpensify
Copy link

Offer sent!

@melvin-bot melvin-bot bot removed the Overdue label Oct 9, 2024
@mkzie2
Copy link
Contributor

mkzie2 commented Oct 10, 2024

@JmillsExpensify offer accepted, we can pay out and close 👍

@melvin-bot melvin-bot bot added the Overdue label Oct 14, 2024
Copy link

melvin-bot bot commented Oct 15, 2024

@JmillsExpensify, @MariaHCD, @rushatgabhane, @mkzie2 Eep! 4 days overdue now. Issues have feelings too...

@JmillsExpensify
Copy link

All done!

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 External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests