Skip to content

fix: pass explicit ensure_assignment param down #93769

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

Merged
merged 1 commit into from
Jun 17, 2025

Conversation

ajay-sentry
Copy link
Contributor

@ajay-sentry ajay-sentry commented Jun 17, 2025

We don't want to assign seats everytime, namely for the following case:

  • Monitor already enabled and has seat assigned
  • Status "active" passed in to monitor endpoint
  • Endpoint "ensures" seat assignment and creates a new seat

I'm unsure if the assignment logic is smart enough to not create this new seat, so its probably better to be safe than sorry.

Amends #93751

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

@ajay-sentry ajay-sentry requested a review from a team as a code owner June 17, 2025 22:10
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jun 17, 2025
Copy link

codecov bot commented Jun 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #93769      +/-   ##
==========================================
- Coverage   88.03%   88.02%   -0.01%     
==========================================
  Files       10329    10329              
  Lines      596109   596109              
  Branches    23146    23146              
==========================================
- Hits       524756   524750       -6     
- Misses      70897    70903       +6     
  Partials      456      456              

@ajay-sentry ajay-sentry merged commit f2d6d50 into master Jun 17, 2025
66 checks passed
@ajay-sentry ajay-sentry deleted the Ajay/pass-explicit-param-to-update-fn branch June 17, 2025 22:51
Copy link

sentry-io bot commented Jun 18, 2025

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ UptimeMonitorNoSeatAvailable monitors.uptime.result_consumer View Issue

Did you find this useful? React with a 👍 or 👎

andrewshie-sentry pushed a commit that referenced this pull request Jun 19, 2025
We don't want to assign seats everytime, namely for the following case:

- Monitor already enabled and has seat assigned
- Status "active" passed in to monitor endpoint
- Endpoint "ensures" seat assignment and creates a new seat

I'm unsure if the assignment logic is smart enough to not create this
new seat, so its probably better to be safe than sorry.

Amends #93751

<!--

  Sentry employees and contractors can delete or ignore the following.

-->

### Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated
in the State of Delaware in 2015 as Functional Software, Inc. and is
gonna need some rights from me in order to utilize my contributions in
this here PR. So here's the deal: I retain all rights, title and
interest in and to my contributions, and by keeping this boilerplate
intact I confirm that Sentry can use, modify, copy, and redistribute my
contributions, under Sentry's choice of terms.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants