-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(CompareView): Implement new Comparison view with Scenes #119
Conversation
…ew flame graph" action
src/pages/ProfilesExplorerView/components/SceneProfilesExplorer/SceneProfilesExplorer.tsx
Show resolved
Hide resolved
# Conflicts: # src/pages/ProfilesExplorerView/components/SceneExploreServiceLabels/components/SceneGroupByLabels/components/SceneLabelValuesGrid/components/SceneLabelValuePanel.tsx
src/pages/ProfilesExplorerView/components/SceneProfilesExplorer/ui/ExplorationTypeSelector.tsx
Outdated
Show resolved
Hide resolved
src/pages/ProfilesExplorerView/components/SceneLabelValuesBarGauge.tsx
Outdated
Show resolved
Hide resolved
@@ -25,7 +25,7 @@ export class SceneMainServiceTimeseries extends SceneObjectBase<SceneMainService | |||
|
|||
protected _variableDependency = new VariableDependencyConfig(this, { | |||
variableNames: ['profileMetricId'], | |||
onVariableUpdateCompleted: () => { | |||
onReferencedVariableValueChanged: () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question: Why do need to change it from onVariableUpdateCompleted
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
onVariableUpdateCompleted
can be called for more reasons than just when the variable value has changed.
Here, if we just want to update the timeseries title to reflect the new profile metric value, we just need onReferencedVariableValueChanged
src/pages/ProfilesExplorerView/components/SceneProfilesExplorer/SceneProfilesExplorer.tsx
Show resolved
Hide resolved
src/pages/ProfilesExplorerView/components/SceneProfilesExplorer/SceneProfilesExplorer.tsx
Show resolved
Hide resolved
...ploreDiffFlameGraph/components/SceneComparePanel/components/SceneTimeRangeWithAnnotations.ts
Show resolved
Hide resolved
...neExploreDiffFlameGraph/components/SceneDiffFlameGraph/infrastructure/useFetchDiffProfile.ts
Outdated
Show resolved
Hide resolved
It's been fixed in fixed in f9791ff#diff-408e010c621ad2b07badfec78e18b0eac9453f9ad586e631f85d5fdc48dae0d7R424
I can't see the issue, which browser do you use? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's actually an issue with the selector that removes the border from the panel. Fixed. |
✨ Description
Related issue(s): is blocked by #117
This PR introduces the new comparison view:
As well as the ability to select the same item for baseline and comparison in the "Labels" view:
📖 Summary of the changes
See diff tab for specific comments.
🧪 How to test?