Skip to content

Conversation

@DominikB2014
Copy link
Contributor

@DominikB2014 DominikB2014 commented Jan 23, 2026

Similar to #106524 but for releases dataset

There's a lot of files changed here, but most is copy and paste from static/app/views/dashboards/datasetConfig/releases.tsx into the new hooks

@linear
Copy link

linear bot commented Jan 23, 2026

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jan 23, 2026
@DominikB2014 DominikB2014 marked this pull request as ready for review January 26, 2026 15:42
@DominikB2014 DominikB2014 requested a review from a team as a code owner January 26, 2026 15:42
url: '/organizations/org-slug/metrics/data/',
body: MetricsTotalCountByReleaseIn24h(),
headers: {
link:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Link is the correct casing used, checked this in the response headers of the network tab. It's also the http standard casing This was causing a test case to fail

@DominikB2014 DominikB2014 marked this pull request as draft January 26, 2026 16:00
This reverts commit 6185b9b.
Copy link
Contributor

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.


if (afterFetchData) {
afterFetchData(responseData);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Duplicate callback execution in release widget hooks

Medium Severity

The afterFetchData callback is called inside the hooks during the transformedData computation, but genericWidgetQueries.tsx already has a useEffect (lines 219-259) that calls afterFetchSeriesData/afterFetchTableData when hook data changes. This causes the same callback to execute twice for every data fetch, which could lead to duplicate side effects or state inconsistencies. The callback calls in the hooks (lines 212-214 and 405-407) appear to be redundant.

Additional Locations (1)

Fix in Cursor Fix in Web

@DominikB2014 DominikB2014 marked this pull request as draft January 26, 2026 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants