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-08-09] [$250] Workspace - Invited member is allowed to upload workspace avatar, but the upload fails #46098

Closed
6 tasks done
izarutskaya opened this issue Jul 24, 2024 · 43 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

@izarutskaya
Copy link

izarutskaya commented Jul 24, 2024

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


Version Number: 9.0.11-2
Reproducible in staging?: Y
Reproducible in production?: N
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team

Action Performed:

Precondition:

  • Admin invites employee to a workspace.
  • The workspace does not have avatar set up.
  • The following steps will be performed by the employee.
  1. Go to staging.new.expensify.com
  2. Go to workspace settings > Profile.
  3. Click on the avatar.
  4. Upload an avatar.

Expected Result:

Invited member should not be allowed to upload the workspace avatar (production behavior).

Actual Result:

Invited member is allowed to upload the workspace avatar, but the upload fails.

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

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

Screenshots/Videos

Bug6551262_1721802951672.20240724_143318.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01cecd7459223b27f7
  • Upwork Job ID: 1816065082489022429
  • Last Price Increase: 2024-07-24
  • Automatic offers:
    • ishpaul777 | Reviewer | 103312496
Issue OwnerCurrent Issue Owner: @muttmuure
@izarutskaya izarutskaya added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. DeployBlocker Indicates it should block deploying the API labels Jul 24, 2024
Copy link

melvin-bot bot commented Jul 24, 2024

Triggered auto assignment to @muttmuure (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 Jul 24, 2024

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

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Jul 24, 2024
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.

@izarutskaya
Copy link
Author

We think this issue might be related to the #collect project.

@izarutskaya
Copy link
Author

Production

bandicam.2024-07-24.12-30-50-687.mp4

@grgia grgia added the External Added to denote the issue can be worked on by a contributor label Jul 24, 2024
@melvin-bot melvin-bot bot changed the title Workspace - Invited member is allowed to upload workspace avatar, but the upload fails [$250] Workspace - Invited member is allowed to upload workspace avatar, but the upload fails Jul 24, 2024
Copy link

melvin-bot bot commented Jul 24, 2024

Job added to Upwork: https://www.upwork.com/jobs/~01cecd7459223b27f7

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jul 24, 2024
Copy link

melvin-bot bot commented Jul 24, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @ishpaul777 (External)

@grgia grgia added Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Help Wanted Apply this label when an issue is open to proposals by contributors DeployBlocker Indicates it should block deploying the API Hourly KSv2 labels Jul 24, 2024
@grgia
Copy link
Contributor

grgia commented Jul 24, 2024

Making external

@daledah
Copy link
Contributor

daledah commented Jul 24, 2024

Proposal

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

Invited member is allowed to upload the workspace avatar, but the upload fails.

What is the root cause of that problem?

This condition

if (isUsingDefaultAvatar) {
openPicker({
onPicked: showAvatarCropModal,
});
return;
}
is placed incorrectly, so if it's default avatar the user can always open picker even though the avatar edit is disabled

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

Move

if (isUsingDefaultAvatar) {
openPicker({
onPicked: showAvatarCropModal,
});
return;
}
to below here

The disabled and enablePreview should always be checked first.

What alternative solutions did you explore? (Optional)

@daledah
Copy link
Contributor

daledah commented Jul 24, 2024

I updated my proposal slightly to clarify the permalink

@grgia I can raise the PR immediately once assigned

@ishpaul777
Copy link
Contributor

Let me quickly verify your solution @daledah

@grgia
Copy link
Contributor

grgia commented Aug 21, 2024

not overdue melvin

@grgia grgia removed the Overdue label Aug 21, 2024
@melvin-bot melvin-bot bot added the Overdue label Aug 21, 2024
@muttmuure
Copy link
Contributor

closing this out tomorrow

@melvin-bot melvin-bot bot removed the Overdue label Aug 21, 2024
@muttmuure
Copy link
Contributor

Invited @daledah

@melvin-bot melvin-bot bot added the Overdue label Aug 26, 2024
Copy link

melvin-bot bot commented Aug 26, 2024

@grgia, @muttmuure, @ishpaul777, @daledah Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@ishpaul777
Copy link
Contributor

This is good to close i think ?

@muttmuure
Copy link
Contributor

Waiting for @daledah to answer invite: https://www.upwork.com/jobs/~01cecd7459223b27f7

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Aug 27, 2024
@muttmuure
Copy link
Contributor

Bump @daledah

@melvin-bot melvin-bot bot removed the Overdue label Aug 30, 2024
@muttmuure
Copy link
Contributor

Dropping to weekly

@muttmuure muttmuure added Weekly KSv2 and removed Daily KSv2 labels Sep 1, 2024
@daledah
Copy link
Contributor

daledah commented Sep 3, 2024

@muttmuure Sorry missed this, I applied to the job

@melvin-bot melvin-bot bot added the Overdue label Sep 9, 2024
@muttmuure muttmuure added Daily KSv2 and removed Weekly KSv2 labels Sep 10, 2024
@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Sep 10, 2024
@ishpaul777
Copy link
Contributor

All good to close if we are done with payments

Copy link

melvin-bot bot commented Sep 13, 2024

@grgia, @muttmuure, @ishpaul777, @daledah Whoops! This issue is 2 days overdue. Let's get this updated quick!

@muttmuure
Copy link
Contributor

Offer is still pending @daledah https://www.upwork.com/nx/wm/offer/103894514

@melvin-bot melvin-bot bot removed the Overdue label Sep 13, 2024
@daledah
Copy link
Contributor

daledah commented Sep 14, 2024

@muttmuure Thanks for bumping, I have accepted

@muttmuure
Copy link
Contributor

Nice, paid

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

5 participants