Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/sentry/conf/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -1056,7 +1056,7 @@ def create_partitioned_queues(name):
# Enable version 2 of reprocessing (completely distinct from v1)
"organizations:reprocessing-v2": False,
# Enable sorting+filtering by semantic version of a release
"organizations:semver": False,
"organizations:semver": True,
# Enable basic SSO functionality, providing configurable single sign on
# using services like GitHub / Google. This is *not* the same as the signup
# and login with Github / Azure DevOps that sentry.io provides.
Expand All @@ -1081,13 +1081,13 @@ def create_partitioned_queues(name):
# Enable the mobile screenshots feature
"organizations:mobile-screenshots": False,
# Enable the adoption chart in the releases page
"organizations:release-adoption-chart": False,
"organizations:release-adoption-chart": True,
# Enable the release adoption stage labels and sorting+filtering by them
"organizations:release-adoption-stage": False,
"organizations:release-adoption-stage": True,
# Store release bundles as zip files instead of single files
"organizations:release-archives": False,
# Enable the new release details experience
"organizations:release-comparison": False,
"organizations:release-comparison": True,
# Enable the release details performance section
"organizations:release-comparison-performance": False,
# Enable percent displays in issue stream
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -609,10 +609,11 @@ def test_with_adoption_stages(self):
"sentry-api-0-organization-release-details",
kwargs={"organization_slug": self.organization.slug, "version": release1.version},
)
response = self.client.get(f"{url}?adoptionStages=1", format="json")
assert response.status_code == 200, response.content
# Not returned because we don't have the feature.
assert "adoptionStages" not in response.data
with self.feature({"organizations:release-adoption-stage": False}):
response = self.client.get(f"{url}?adoptionStages=1", format="json")
assert response.status_code == 200, response.content
# Not returned because we don't have the feature.
assert "adoptionStages" not in response.data

with self.feature("organizations:release-adoption-stage"):
response = self.client.get(url, format="json")
Expand Down
12 changes: 7 additions & 5 deletions tests/sentry/api/endpoints/test_organization_releases.py
Original file line number Diff line number Diff line change
Expand Up @@ -817,12 +817,14 @@ def test_with_adoption_stages(self):
)
release1.add_project(project1)
url = reverse("sentry-api-0-organization-releases", kwargs={"organization_slug": org.slug})
response = self.client.get(f"{url}?adoptionStages=1", format="json")

assert response.status_code == 200, response.content
assert len(response.data) == 1
# Not returned because we don't have the feature.
assert "adoptionStages" not in response.data[0]
with self.feature({"organizations:release-adoption-stage": False}):
response = self.client.get(f"{url}?adoptionStages=1", format="json")

assert response.status_code == 200, response.content
assert len(response.data) == 1
# Not returned because we don't have the feature.
assert "adoptionStages" not in response.data[0]

with self.feature("organizations:release-adoption-stage"):
response = self.client.get(url, format="json")
Expand Down
4 changes: 4 additions & 0 deletions tests/sentry/api/serializers/test_organization.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ def test_simple(self):
"performance-tag-page",
"performance-tag-explorer",
"relay",
"release-adoption-chart",
"release-adoption-stage",
"release-comparison",
"semver",
"shared-issues",
"sso-basic",
"sso-saml2",
Expand Down