Skip to content

Commit

Permalink
Revert "feat(metrics_extraction): user_misery to fall back to Discover (
Browse files Browse the repository at this point in the history
#65232)"

This reverts commit 55c7b17.
  • Loading branch information
armenzg committed Feb 22, 2024
1 parent 0b5c026 commit 7b82b32
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 9 deletions.
3 changes: 1 addition & 2 deletions src/sentry/snuba/metrics/extraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,7 @@ def get_default_spec_version(cls: Any) -> SpecVersion:
"count_web_vitals": "on_demand_count_web_vitals",
"epm": "on_demand_epm",
"eps": "on_demand_eps",
# XXX: Remove support until we can fix the count_unique(users)
# "user_misery": "on_demand_user_misery",
"user_misery": "on_demand_user_misery",
}

# Mapping to infer metric type from Discover function.
Expand Down
2 changes: 0 additions & 2 deletions tests/sentry/relay/config/test_metric_extraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -1130,7 +1130,6 @@ def test_get_metric_extraction_config_with_count_web_vitals(
]


@pytest.mark.skip(reason="Re-enable when user misery is supported again.")
@django_db_all
def test_get_metric_extraction_config_with_user_misery(default_project: Project) -> None:
threshold = 100
Expand Down Expand Up @@ -1181,7 +1180,6 @@ def test_get_metric_extraction_config_with_user_misery(default_project: Project)
]


@pytest.mark.skip(reason="Re-enable when user misery is supported again.")
@django_db_all
def test_get_metric_extraction_config_user_misery_with_tag_columns(
default_project: Project,
Expand Down
2 changes: 0 additions & 2 deletions tests/sentry/search/events/builder/test_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -2923,14 +2923,12 @@ def _test_user_misery(
],
)

@pytest.mark.skip(reason="Re-enable when user misery is supported again.")
def test_run_query_with_on_demand_user_misery(self) -> None:
self._test_user_misery(
[("happy user", False), ("sad user", True)],
user_misery_formula(1, 2),
)

@pytest.mark.skip(reason="Re-enable when user misery is supported again.")
def test_run_query_with_on_demand_user_misery_no_miserable_users(self) -> None:
self._test_user_misery(
[("happy user", False), ("ok user", False)],
Expand Down
2 changes: 0 additions & 2 deletions tests/sentry/snuba/metrics/test_extraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,6 @@ def test_creates_on_demand_spec(self, aggregate, query) -> None:
("failure_count()", ""),
("failure_rate()", "release:bar"),
("failure_rate()", ""),
("user_misery(300)", ""),
("user_misery(300)", "transaction.duration:>0"),
],
)
def test_does_not_create_on_demand_spec(self, aggregate, query) -> None:
Expand Down
1 change: 0 additions & 1 deletion tests/snuba/api/endpoints/test_organization_events_mep.py
Original file line number Diff line number Diff line change
Expand Up @@ -3219,7 +3219,6 @@ def test_is_metrics_extracted_data_is_included(self) -> None:
response = self._make_on_demand_request(params)
self._assert_on_demand_response(response)

@pytest.mark.skip(reason="Re-enable when user misery is supported again.")
def test_transaction_user_misery(self) -> None:
user_misery_field = "user_misery(300)"
apdex_field = "apdex(300)"
Expand Down

0 comments on commit 7b82b32

Please sign in to comment.