Skip to content

Commit 309365e

Browse files
Merge branch 'master' into fix/flaky-results-search-query-builder-spec-v2
2 parents d919935 + b06ca47 commit 309365e

File tree

311 files changed

+7077
-3243
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

311 files changed

+7077
-3243
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -832,6 +832,7 @@ tests/sentry/api/endpoints/test_organization_attribute_mappings.py @get
832832
/static/app/components/core/ @getsentry/design-engineering
833833
/static/app/components/dnd/ @getsentry/design-engineering
834834
/static/app/components/pageFilters/ @getsentry/design-engineering
835+
/static/app/components/backendJsonFormAdapter/ @getsentry/design-engineering
835836
/static/app/icons/ @getsentry/design-engineering
836837
/static/app/stories/ @getsentry/design-engineering
837838
/static/app/components/commandPalette/ @getsentry/design-engineering

eslint.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,7 @@ export default typescript.config([
609609
'@typescript-eslint/no-for-in-array': 'error',
610610
'@typescript-eslint/no-unnecessary-template-expression': 'error',
611611
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
612+
'@typescript-eslint/no-unnecessary-type-parameters': 'error',
612613
'@typescript-eslint/switch-exhaustiveness-check': [
613614
'error',
614615
{considerDefaultExhaustiveForUnions: true},

migrations_lockfile.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ replays: 0007_organizationmember_replay_access
3131

3232
seer: 0005_delete_seerorganizationsettings
3333

34-
sentry: 1064_eventattachment_date_expires_now
34+
sentry: 1065_delete_customdynamicsamplingrule
3535

3636
social_auth: 0003_social_auth_json_field
3737

3838
tempest: 0003_use_encrypted_char_field
3939

4040
uptime: 0055_backfill_2xx_status_assertion
4141

42-
workflow_engine: 0111_add_workflowfirehistory_date_added_index
42+
workflow_engine: 0112_drop_redundant_error_detector_workflows

src/sentry/analytics/events/autofix_events.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ class AiAutofixPrCreatedCompletedEvent(AiAutofixPhaseEvent):
7272
@analytics.eventclass("ai.autofix.agent_handoff")
7373
class AiAutofixAgentHandoffEvent(AiAutofixPhaseEvent):
7474
coding_agent: str | None
75+
initiator: str | None = None
7576

7677

7778
analytics.register(AiAutofixRootCauseStartedEvent)

src/sentry/api/bases/rule.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ def convert_args(
6262
if use_workflow_engine:
6363
try:
6464
arw = AlertRuleWorkflow.objects.get(
65-
rule_id=rule_id, workflow__organization=project.organization
65+
rule_id=rule_id,
66+
workflow__organization=project.organization,
67+
workflow__status=ObjectStatus.ACTIVE,
6668
)
6769
kwargs["rule"] = arw.workflow
6870
except AlertRuleWorkflow.DoesNotExist:

src/sentry/api/endpoints/organization_events_stats.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
Referrer.API_ENDPOINT_REGRESSION_ALERT_CHARTCUTERIE.value,
5454
Referrer.API_FUNCTION_REGRESSION_ALERT_CHARTCUTERIE.value,
5555
Referrer.DISCOVER_SLACK_UNFURL.value,
56+
Referrer.EXPLORE_SLACK_UNFURL.value,
5657
]
5758

5859
logger = logging.getLogger(__name__)

src/sentry/api/endpoints/project_rule_details.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,10 @@ def delete(self, request: Request, project: Project, rule: Rule | Workflow) -> R
451451
rule=rule, user_id=request.user.id, type=RuleActivityType.DELETED.value
452452
)
453453
scheduled = CellScheduledDeletion.schedule(rule, days=0, actor=request.user)
454+
# The Rule's scheduled deletion should take care of the workflow, but
455+
# we mark it pending immediately so we don't return it while the deletion is in progress.
456+
for workflow in Workflow.objects.filter(alertruleworkflow__rule_id=rule.id):
457+
workflow.update(status=ObjectStatus.PENDING_DELETION)
454458

455459
self.create_audit_entry(
456460
request=request,

src/sentry/api/endpoints/user_organizationintegrations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@ def get(self, request: Request, user) -> Response:
5353
return self.paginate(
5454
request=request,
5555
queryset=queryset,
56-
on_results=lambda x: serialize(x, request.user),
56+
on_results=lambda x: [item for item in serialize(x, request.user) if item is not None],
5757
paginator_cls=OffsetPaginator,
5858
)

src/sentry/conf/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2817,7 +2817,7 @@ def custom_parameter_sort(parameter: dict) -> tuple[str, int]:
28172817
BETA_GROUPING_CONFIG = ""
28182818

28192819
# How long the migration phase for grouping lasts
2820-
SENTRY_GROUPING_CONFIG_TRANSITION_DURATION = 30 * 24 * 3600 # 30 days
2820+
SENTRY_GROUPING_CONFIG_TRANSITION_DURATION = 90 * 24 * 3600 # 90 days, until groups age out
28212821

28222822
SENTRY_USE_GRANIAN = True
28232823

src/sentry/dashboards/models/generate_dashboard_artifact.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
Intervals = Literal["5m", "15m", "30m", "1h", "4h", "12h", "24h"]
3939

4040
# Blocklist for frequently hallucinated functions or functions we want to avoid using
41-
FUNCTION_BLOCKLIST: set[str] = {"spm", "apdex", "http_error_count"}
41+
FUNCTION_BLOCKLIST: set[str] = {"spm", "apdex", "http_error_count", "http_error_count_percent"}
4242

4343

4444
class GeneratedWidgetQuery(BaseModel):

0 commit comments

Comments
 (0)