Skip to content
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

refactor: more flexibility with explorer #2548

Merged
merged 13 commits into from
Dec 7, 2023
Merged

Conversation

anandtiwary
Copy link
Contributor

@anandtiwary anandtiwary commented Nov 28, 2023

Description

Please include a summary of the change, motivation and context.

Screenshot 2023-12-06 at 3 10 11 PM Screenshot 2023-12-06 at 3 10 02 PM Screenshot 2023-12-04 at 10 32 00 PM Screenshot 2023-12-04 at 10 45 30 PM Screenshot 2023-12-04 at 10 45 40 PM

Testing

Please describe the tests that you ran to verify your changes. Please summarize what did you test and what needs to be tested e.g. deployed and tested helm chart locally.

Checklist:

  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • Any dependent changes have been merged and published in downstream modules

Documentation

Make sure that you have documented corresponding changes in this repository or hypertrace docs repo if required.

@anandtiwary anandtiwary marked this pull request as ready for review November 28, 2023 21:52
@anandtiwary anandtiwary requested a review from a team as a code owner November 28, 2023 21:52
Copy link

codecov bot commented Nov 28, 2023

Codecov Report

Attention: 36 lines in your changes are missing coverage. Please review.

Comparison is base (d36fcbb) 82.20% compared to head (997fc43) 81.93%.

Files Patch % Lines
...components/cartesian/d3/legend/cartesian-legend.ts 54.71% 23 Missing and 1 partial ⚠️
.../components/cartesian/cartesian-chart.component.ts 18.18% 8 Missing and 1 partial ⚠️
...d/components/cartesian/d3/chart/cartesian-chart.ts 0.00% 1 Missing ⚠️
...c/shared/components/donut/donut-builder.service.ts 0.00% 1 Missing ⚠️
...nents/radar/tooltip/radar-chart-tooltip.service.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2548      +/-   ##
==========================================
- Coverage   82.20%   81.93%   -0.28%     
==========================================
  Files         927      928       +1     
  Lines       20872    20901      +29     
  Branches     3313     3321       +8     
==========================================
- Hits        17158    17125      -33     
- Misses       3577     3638      +61     
- Partials      137      138       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

github-actions bot commented Nov 28, 2023

Test Results

       4 files  ±0     316 suites  ±0   31m 59s ⏱️ +19s
1 135 tests ±0  1 135 ✔️ ±0  0 💤 ±0  0 ±0 
1 145 runs  ±0  1 145 ✔️ ±0  0 💤 ±0  0 ±0 

Results for commit 997fc43. ± Comparison against base commit d36fcbb.

♻️ This comment has been updated with latest results.

@anandtiwary anandtiwary marked this pull request as draft November 28, 2023 22:02
@anandtiwary anandtiwary marked this pull request as ready for review December 5, 2023 06:29
const intervalOptions = this.buildIntervalOptions();

if (this.intervalSupported()) {
this.selectedInterval = this.getBestIntervalMatch(intervalOptions, this.selectedInterval ?? defaultInterval);
this.intervalOptions = intervalOptions; // The only thing this flag controls is whether options are available (and thus, the selector)
} else {
this.selectedInterval = this.getBestIntervalMatch(intervalOptions, defaultInterval);
// TODO: why do we need to set this if interval is not supported.
Copy link
Contributor

Choose a reason for hiding this comment

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

See comment above. It's poorly named, but this is really switching on whether the interval is selectable rather than supported.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, so I want to keep it undefined if the interval is not supported.

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe just terminology; there is an interval, it's just not selectable. Is it just no longer needed if not selectable? If so, is there any harm in sending it in?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The problem is that this is set even when the data is not a time series. I am using the presence ofintervalData property to decide the legend rendering behavior since we are treating Grouped but not time series data case differently.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed.

return legendEntry;
}

private updateLegendClassesAndStyle(): void {
const legendElementSelection = select(this.legendElement!);
if (this.isGrouped) {
if (true) {
Copy link
Contributor

Choose a reason for hiding this comment

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

hmm

Copy link
Contributor Author

Choose a reason for hiding this comment

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

need to remove this one.

@anandtiwary anandtiwary merged commit d851250 into main Dec 7, 2023
11 of 13 checks passed
@anandtiwary anandtiwary deleted the cartesian-explore-changes branch December 7, 2023 01:07
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.

None yet

2 participants