Skip to content

feat(dashboards): enable on demand metric queries#54279

Merged
obostjancic merged 11 commits into
masterfrom
ogi/feat/odme-dashboards-frontend
Aug 8, 2023
Merged

feat(dashboards): enable on demand metric queries#54279
obostjancic merged 11 commits into
masterfrom
ogi/feat/odme-dashboards-frontend

Conversation

@obostjancic

@obostjancic obostjancic commented Aug 7, 2023

Copy link
Copy Markdown
Member

@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Aug 7, 2023
@obostjancic obostjancic requested review from a team and matejminar August 7, 2023 16:40
@obostjancic obostjancic marked this pull request as ready for review August 7, 2023 16:40
@obostjancic obostjancic requested a review from a team as a code owner August 7, 2023 16:40
@@ -0,0 +1,42 @@
import {FieldKey, MobileVital, WebVital} from 'sentry/utils/fields';

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nit: we call these files constants.tsx

generatePathname: isEditing ? fetchEstimatedStats : undefined,
});

response[0] = {...response[0], isMetricsData: true, isExtrapolatedData: isEditing};

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Does ...response[0] cause a hard crash if the request fails? Should we add some error handling?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

yep, i added a fallback to the original request

Comment on lines +200 to +203
{t(
'We don’t routinely collect metrics from this property. However, we’ll do so '
)}
<b> {t('once this widget has been saved.')}</b>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Let's use tct for it because this might not work for some languages. Example usage:

'The [strong:monitor-slug] is used to uniquely identify your monitor within your organization. Changing this slug will require updates to any instrumented check-in calls.',

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Works great! thx

@obostjancic obostjancic enabled auto-merge (squash) August 8, 2023 11:55
@obostjancic obostjancic merged commit 55d0356 into master Aug 8, 2023
@obostjancic obostjancic deleted the ogi/feat/odme-dashboards-frontend branch August 8, 2023 12:13
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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