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

[$250] [HOLD for payment 2024-10-08] Don't apply failureData for "admin required" API responses #49753

Closed
6 tasks done
roryabraham opened this issue Sep 25, 2024 · 16 comments
Closed
6 tasks done
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Internal Requires API changes or must be handled by Expensify staff Weekly KSv2

Comments

@roryabraham
Copy link
Contributor

roryabraham commented Sep 25, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1727300442697579

Action Performed:

  1. User is a policy admin
  2. User opens workspace settings
  3. User goes offline
  4. User changes a workspace setting
  5. User is removed as a policy admin
  6. User comes back online

Expected Result:

The API request to change the workspace setting is sent and returns a 460 status code, but we don't see a red dot.

Actual Result:

The API request to change the workspace setting is sent. It fails with a 4xx error code (requires admin). The user sees a 404 page (this part is expected), but the next time they open workspace settings they see a red dot next to the workspace that is not dismissible.

Workaround

n/a

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

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021843762912418850228
  • Upwork Job ID: 1843762912418850228
  • Last Price Increase: 2024-10-08
Issue OwnerCurrent Issue Owner: @
@roryabraham roryabraham added Weekly KSv2 Planning Changes still in the thought process NewFeature Something to build that is a new item. labels Sep 25, 2024
@roryabraham roryabraham self-assigned this Sep 25, 2024
Copy link

melvin-bot bot commented Sep 25, 2024

Triggered auto assignment to @greg-schroeder (NewFeature), see https://stackoverflowteams.com/c/expensify/questions/14418#:~:text=BugZero%20process%20steps%20for%20feature%20requests for more details. Please add this Feature request to a GH project, as outlined in the SO.

@roryabraham roryabraham added Bug Something is broken. Auto assigns a BugZero manager. and removed NewFeature Something to build that is a new item. labels Sep 25, 2024
Copy link

melvin-bot bot commented Sep 25, 2024

Current assignee @greg-schroeder is eligible for the Bug assigner, not assigning anyone new.

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Sep 25, 2024
@roryabraham roryabraham removed the Planning Changes still in the thought process label Sep 25, 2024
@roryabraham roryabraham added the Internal Requires API changes or must be handled by Expensify staff label Sep 26, 2024
@roryabraham
Copy link
Contributor Author

Marked internal because I have a PR already, just want a C+ reviewer

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Sep 26, 2024
@roryabraham roryabraham changed the title Validate admin access for admin-required API endpoints Don't apply failureData for "admin required" API responses Sep 26, 2024
@greg-schroeder
Copy link
Contributor

greg-schroeder commented Sep 27, 2024

Internal label doesn't assign a C+: https://github.com/Expensify/Expensify/issues/405038

Asked for a volunteer in the C+ room: https://expensify.slack.com/archives/C02NK2DQWUX/p1727466386723609

@greg-schroeder
Copy link
Contributor

Assigning @allgandalf as C+ reviewer for #49753 (comment)

@greg-schroeder
Copy link
Contributor

NVM, it's @ishpaul777 ! Sike!

@greg-schroeder
Copy link
Contributor

This is on staging. Awaiting deploy to prod

@greg-schroeder
Copy link
Contributor

This was deployed 10/1 and automation failed. Regression period is 10/8 technically

@greg-schroeder greg-schroeder removed the Reviewing Has a PR in review label Oct 3, 2024
@greg-schroeder greg-schroeder added the Awaiting Payment Auto-added when associated PR is deployed to production label Oct 3, 2024
@greg-schroeder greg-schroeder changed the title Don't apply failureData for "admin required" API responses [HOLD for payment 2024-10-08] Don't apply failureData for "admin required" API responses Oct 3, 2024
@greg-schroeder
Copy link
Contributor

@roryabraham what's the bounty for this one? Standard $250?

@roryabraham
Copy link
Contributor Author

yep, thanks

Copy link

melvin-bot bot commented Oct 8, 2024

Payment Summary

Upwork Job

BugZero Checklist (@greg-schroeder)

  • I have verified the correct assignees and roles are listed above and updated the neccesary manual offers
  • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants//hired)
  • I have paid out the Upwork contracts or cancelled the ones that are incorrect
  • I have verified the payment summary above is correct

@greg-schroeder greg-schroeder added the External Added to denote the issue can be worked on by a contributor label Oct 8, 2024
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2024-10-08] Don't apply failureData for "admin required" API responses [$250] [HOLD for payment 2024-10-08] Don't apply failureData for "admin required" API responses Oct 8, 2024
Copy link

melvin-bot bot commented Oct 8, 2024

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

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

melvin-bot bot commented Oct 8, 2024

Current assignee @ishpaul777 is eligible for the External assigner, not assigning anyone new.

@melvin-bot melvin-bot bot added Daily KSv2 and removed Weekly KSv2 labels Oct 8, 2024
@greg-schroeder greg-schroeder added Weekly KSv2 and removed External Added to denote the issue can be worked on by a contributor Daily KSv2 Help Wanted Apply this label when an issue is open to proposals by contributors labels Oct 8, 2024
@greg-schroeder
Copy link
Contributor

Payment summary:

C+: @ishpaul777 - $250 - Paid via Upwork

@greg-schroeder
Copy link
Contributor

Sent you an offer @ishpaul777 - I'll pay ya right away once you accept!

@ishpaul777
Copy link
Contributor

thanks! accepted

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. Internal Requires API changes or must be handled by Expensify staff Weekly KSv2
Projects
Development

No branches or pull requests

4 participants