Skip to content

Commit

Permalink
Merge branch 'jferg/support-in-releases' of github.com:getsentry/sent…
Browse files Browse the repository at this point in the history
…ry into jferg/support-in-releases
  • Loading branch information
JoshFerge committed Sep 11, 2024
2 parents 8116802 + f8f57dd commit 486f3a2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/sentry/search/events/datasets/filter_aliases.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
from __future__ import annotations

from collections.abc import Mapping
from collections.abc import Mapping, Sequence
from functools import reduce
from typing import Sequence

from snuba_sdk import Column, Condition, Function, Op

Expand Down
12 changes: 9 additions & 3 deletions tests/sentry/issues/endpoints/test_organization_group_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -1476,7 +1476,9 @@ def test_semver(self, _: MagicMock) -> None:
]

# Test multiple semver in same filter
response = self.get_response(sort_by="date", limit=10, query=f"{SEMVER_ALIAS}:[1.2.3,1.2.5]")
response = self.get_response(
sort_by="date", limit=10, query=f"{SEMVER_ALIAS}:[1.2.3,1.2.5]"
)
assert response.status_code == 200, response.content
assert [int(r["id"]) for r in response.json()] == [
release_1_g_1,
Expand All @@ -1487,7 +1489,9 @@ def test_semver(self, _: MagicMock) -> None:
release_3_g_2,
]

response = self.get_response(sort_by="date", limit=10, query=f"{SEMVER_ALIAS}:[>1.2.3,<2.0.0]")
response = self.get_response(
sort_by="date", limit=10, query=f"{SEMVER_ALIAS}:[>1.2.3,<2.0.0]"
)
assert response.status_code == 200, response.content
assert [int(r["id"]) for r in response.json()] == [
release_2_g_1,
Expand All @@ -1496,7 +1500,9 @@ def test_semver(self, _: MagicMock) -> None:
release_3_g_2,
]

response = self.get_response(sort_by="date", limit=10, query=f"{SEMVER_ALIAS}:[1.2.3,>2.0.0]")
response = self.get_response(
sort_by="date", limit=10, query=f"{SEMVER_ALIAS}:[1.2.3,>2.0.0]"
)
assert response.status_code == 200, response.content
assert [int(r["id"]) for r in response.json()] == [
release_1_g_1,
Expand Down

0 comments on commit 486f3a2

Please sign in to comment.