-
Notifications
You must be signed in to change notification settings - Fork 30
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
Add update self hosted settings mutation #559
Add update self hosted settings mutation #559
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## main #559 +/- ##
=======================================
+ Coverage 95.84 95.86 +0.02
=======================================
Files 779 782 +3
Lines 17320 17370 +50
=======================================
+ Hits 16601 16651 +50
Misses 719 719
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Codecov ReportAll modified and coverable lines are covered by tests ✅ ✅ All tests successful. No failed tests found. 📢 Thoughts on this report? Let us know! |
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## main #559 +/- ##
==========================================
+ Coverage 91.37% 91.40% +0.02%
==========================================
Files 601 604 +3
Lines 16002 16052 +50
==========================================
+ Hits 14622 14672 +50
Misses 1380 1380
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found @@ Coverage Diff @@
## main #559 +/- ##
==========================================
+ Coverage 91.37% 91.40% +0.02%
==========================================
Files 601 604 +3
Lines 16002 16052 +50
==========================================
+ Hits 14622 14672 +50
Misses 1380 1380
Flags with carried forward coverage won't be shown. Click here to find out more.
|
…innakota/migrate-self-hosted-settings
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
|
||
if not settings.IS_ENTERPRISE: | ||
raise ValidationError( | ||
"enable_autoactivation and disable_autoactivation are only available in self-hosted environments" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: enable_auto_activation vs. enable_autoactivation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I could see it either way, but because we're camelcasing the input on AutoActivate, it seems more consistent
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these are what the methods are called in self_hosted.py
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ooo okay makes sense
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one small comment, otherwise lgtm
Purpose/Motivation
This PR closes codecov/engineering-team#1473. We want to move our REST endpoints to GQL. This change creates a mutation and adds an additional resolver that will be consumed in gazebo in
useSelfHostedSettings
andAutoActivateMembers
(we are currently making aGET
andPATCH
REST call).A follow up PR will be made in gazebo to migrate the endpoints.
After that, we will delete the old REST code, once we confirm that it is no longer in use.
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. In 2022 this entity acquired Codecov and as result Sentry is going to need some rights from me in order to utilize my contributions in this 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.