-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
feat(github-growth): allow hiding repos #52766
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
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #52766 +/- ##
=======================================
Coverage 79.37% 79.37%
=======================================
Files 4921 4921
Lines 206601 206603 +2
Branches 35315 35316 +1
=======================================
+ Hits 163983 163997 +14
+ Misses 37592 37584 -8
+ Partials 5026 5022 -4
|
@@ -20,6 +20,7 @@ class RepositorySerializer(serializers.Serializer): | |||
# XXX(dcramer): these are aliased, and we prefer 'active' over 'visible' | |||
("visible", "visible"), | |||
("active", "active"), | |||
("hidden", "hidden"), |
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.
Just curious, why do we set choices as a tuple with duplicate values?
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 think sometimes you can have different values of what you allow to be sent to the API and what the serializer outputs as the value https://github.com/getsentry/sentry/blob/master/src/sentry/api/validators/servicehook.py#L10
Allow setting a
Repository
object's status toObjectStatus.HIDDEN
.For ER-1718