Skip to content

Commit

Permalink
fix time to first response
Browse files Browse the repository at this point in the history
  • Loading branch information
ravenac95 committed Nov 29, 2024
1 parent b962022 commit a68d74d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion warehouse/metrics_mesh/models/metrics_factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@
entity_types=["artifact", "project", "collection"],
),
"avg_time_to_first_response": MetricQueryDef(
ref="prs_time_to_merge.sql",
ref="time_to_first_response.sql",
rolling=RollingConfig(
windows=[90, 180],
unit="day",
Expand Down
4 changes: 2 additions & 2 deletions warehouse/metrics_mesh/oso_metrics/time_to_first_response.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ select @metrics_sample_date(time) as metrics_sample_date,
from metrics.issue_event_time_deltas
where (
(
event_type in ("PULL_REQUEST_MERGED", "ISSUE_CLOSED")
event_type in ('PULL_REQUEST_MERGED', 'ISSUE_CLOSED')
and comments = 0
)
or (
event_type in ("PULL_REQUEST_REVIEW_COMMENT", "ISSUE_COMMENT")
event_type in ('PULL_REQUEST_REVIEW_COMMENT', 'ISSUE_COMMENT')
and comments = 1
)
)
Expand Down

0 comments on commit a68d74d

Please sign in to comment.