Skip to content

fix: bug issue open time card plots the all-issue series - #608

Open
zjncs wants to merge 1 commit into
oss-compass:mainfrom
zjncs:fix/bug-issue-open-time
Open

zjncs wants to merge 1 commit into
oss-compass:mainfrom
zjncs:fix/bug-issue-open-time

Conversation

@zjncs

@zjncs zjncs commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

Problem

The card is titled and weighted as Bug Issue Open Time (community_service_and_support.metrics.bug_issue_open_time), but its chart tabs read metricCommunity.issueOpenTimeAvg/Mid and summaryCommunity.issueOpenTimeAvg/Mid - the open time of all issues. The GraphQL layer declares bugIssueOpenTimeAvg { mean, median } and bugIssueOpenTimeMid in both metricCommunity (packages/graphql/src/gql/query.graphql:174-175) and summaryCommunity (:361-364), and a grep shows the bug* fields are consumed nowhere in the app - so the chart, its avg/median summary reference lines and the downloaded image all render the wrong series.

Fix

Switch the four keys to bugIssueOpenTime*, and extract the tab map into an exported getChartTabs(t) factory so the key contract is testable (same pattern as the merged #407 processLanguages export).

Verification

  • New BugIssueOpenTime.test.tsx: RED before (keys were issueOpenTime*), GREEN after.
  • Suite run: all analyze tests pass (109 passed; the one failing intelligent-analysis/server/pathSafety failure is pre-existing on main and unrelated - a Windows path-separator issue).

Risk

The card now renders the series its title promises. No other consumer of the old keys in this card's context.

The card is titled and weighted as Bug Issue Open Time
(community_service_and_support.metrics.bug_issue_open_time), but its chart
tabs read metricCommunity.issueOpenTimeAvg/Mid and
summaryCommunity.issueOpenTimeAvg/Mid - the open time of ALL issues. The
GraphQL layer declares bugIssueOpenTimeAvg { mean, median } and
bugIssueOpenTimeMid in both metricCommunity (query.graphql:174-175) and
summaryCommunity (:361-364), and a grep shows the bug* fields are consumed
nowhere in the app - the card, its avg/median summary reference lines and
the downloaded image all render the wrong series.

Switch the four keys to bugIssueOpenTime*, and extract the tab map into an
exported getChartTabs(t) factory so the key contract is testable (same
pattern as the merged oss-compass#407 processLanguages export).
@vercel

vercel Bot commented Oct 21, 2026

Copy link
Copy Markdown

@zjncs is attempting to deploy a commit to the codersett's projects Team on Vercel.

A member of the Team first needs to authorize it.

Copilot AI balanced review requested due to automatic review settings October 21, 2026 05:15

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants