Skip to content

refactor: updating gauge model, radius calculation and exporting handler service #349

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

Merged
merged 2 commits into from
Nov 12, 2020

Conversation

anandtiwary
Copy link
Contributor

@anandtiwary anandtiwary commented Nov 11, 2020

Description

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

  • Updating Gauge model to take max value and thresholds as model input
  • Updating radius calculation for gauge.
  • Exporting an interaction handler service

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 requested a review from a team as a code owner November 11, 2020 23:54
@codecov
Copy link

codecov bot commented Nov 11, 2020

Codecov Report

Merging #349 (2f7b1ed) into main (ba18a38) will decrease coverage by 0.02%.
The diff coverage is 64.70%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #349      +/-   ##
==========================================
- Coverage   86.25%   86.22%   -0.03%     
==========================================
  Files         728      729       +1     
  Lines       14831    14843      +12     
  Branches     1760     1760              
==========================================
+ Hits        12793    12799       +6     
- Misses       2007     2013       +6     
  Partials       31       31              
Impacted Files Coverage Δ
.../widgets/gauge/thresholds/gauge-threshold.model.ts 0.00% <0.00%> (ø)
projects/distributed-tracing/src/public-api.ts 100.00% <100.00%> (ø)
...ity/src/shared/components/gauge/gauge.component.ts 95.12% <100.00%> (ø)
...ared/dashboard/widgets/gauge/gauge-widget.model.ts 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ba18a38...2f7b1ed. Read the comment docs.

@anandtiwary anandtiwary changed the title refactor: updating radius calculation and exporting handler service refactor: updating gauge model, radius calculation and exporting handler service Nov 12, 2020
return {
x: boundingBox.width / 2,
y: radius
y: boundingBox.height - GaugeComponent.GAUGE_AXIS_PADDING
Copy link
Contributor

Choose a reason for hiding this comment

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

We likely want this to center for tall containers, rather than always sit at the bottom of the container

Copy link
Contributor Author

@anandtiwary anandtiwary Nov 12, 2020

Choose a reason for hiding this comment

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

That would create alignment issues imo. By keeping it at the bottom, we can assign appropriate dimension to dash container to keep it aligned with other widgets. Noticed this while adding this gauge to an existing dash. But can sure revisit.

@anandtiwary anandtiwary merged commit c0fba1c into main Nov 12, 2020
@anandtiwary anandtiwary deleted the fixing-gauge-and-exporting-handler-service branch November 12, 2020 00:52
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