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 2021-11-04] Default workspace image is not displayed if a invalid file is uploaded - Reported by: @akshayasalvi #5783

Closed
isagoico opened this issue Oct 12, 2021 · 18 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Engineering External Added to denote the issue can be worked on by a contributor Weekly KSv2

Comments

@isagoico
Copy link

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Action Performed:

  1. Navigate to workspace editor.
  2. Upload a non image file (e.g a zip file)

Expected Result:

An error is displayed and the default image of the workspace is shown

Actual Result:

An error is displayed and the workspace image is blank

Workaround:

Navigating to another modal and back to the workspace editor shows the default image.

Platform:

Where is this issue occurring?

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

Version Number: 1.1.7-3

Reproducible in staging?: Yes
Reproducible in production?: Yes

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

Notes/Photos/Videos: Any additional supporting documentation

Recording.226.mp4

Expensify/Expensify Issue URL:

Issue reported by: @akshayasalvi
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1633985168146100

View all open jobs on GitHub

@MelvinBot
Copy link

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

@flodnv flodnv removed their assignment Oct 13, 2021
@flodnv flodnv added the External Added to denote the issue can be worked on by a contributor label Oct 13, 2021
@MelvinBot
Copy link

Triggered auto assignment to @marklouisdeshaun (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

@flodnv
Copy link
Contributor

flodnv commented Oct 13, 2021

cc @kevinksullivan @MitchExpensify do we want to remove the n6-hold on this one?

@parasharrajat
Copy link
Member

parasharrajat commented Oct 13, 2021

@flodnv I think we need these polishes to be done quickly.

Proposal

  1. I checked that even if Backend threw an error, we are proceeding to set the URL which is wrong.

This does not throw error and allow this statement to run

this.setState({avatarURL: url}, resolve);
.

To fix this

  1. We should throw an error in UploadAvatar in non 200 and remove the growl from there.
  2. Now update the 'uploadAvatar' in the component
    a. resetting the image in the catch by this statement
            this.setState({previewAvatarURL: ''});

@MelvinBot
Copy link

@marklouisdeshaun Whoops! This issue is 2 days overdue. Let's get this updated quick!

@kevinksullivan
Copy link
Contributor

Removing N6 hold as this is relevant to the N6 use case.

@flodnv
Copy link
Contributor

flodnv commented Oct 18, 2021

@marklouisdeshaun can you please export this job to Upwork so we can hire @parasharrajat ?

@marklouisdeshaun
Copy link
Contributor

@MelvinBot MelvinBot removed the Overdue label Oct 18, 2021
@MelvinBot MelvinBot added Weekly KSv2 Help Wanted Apply this label when an issue is open to proposals by contributors and removed Daily KSv2 labels Oct 18, 2021
@MelvinBot
Copy link

Triggered auto assignment to @Jag96 (Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@Jag96
Copy link
Contributor

Jag96 commented Oct 18, 2021

@parasharrajat I've sent the offer via Upwork, feel free to get started on a PR

@MelvinBot MelvinBot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Oct 18, 2021
@dylanexpensify
Copy link
Contributor

taking over for Mark!

@botify botify added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Oct 28, 2021
@botify botify changed the title Default workspace image is not displayed if a invalid file is uploaded - Reported by: @akshayasalvi [HOLD for payment 2021-11-04] Default workspace image is not displayed if a invalid file is uploaded - Reported by: @akshayasalvi Oct 28, 2021
@botify
Copy link

botify commented Oct 28, 2021

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.1.10-2 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 2021-11-04. 🎊

@akshayasalvi
Copy link
Contributor

@dylanexpensify While resolved by somebody else, there would be a payment for reporting this one right?

@dylanexpensify
Copy link
Contributor

Correct @akshayasalvi! Once we pay out for the issue being completed, we'll also pay out the reporting bonus to you 😄

@dylanexpensify
Copy link
Contributor

@parasharrajat sent payment and closed contract!

@akshayasalvi can you please apply to this so we can hire/pay out your reporting bonus? :) https://www.upwork.com/jobs/~01567cf1bb91247d9c

@akshayasalvi
Copy link
Contributor

@dylanexpensify Done

@dylanexpensify
Copy link
Contributor

@akshayasalvi sent offer!

@dylanexpensify
Copy link
Contributor

@akshayasalvi payment sent! Job closed, contract ended

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

No branches or pull requests

10 participants