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

feat: fill metrics summary missing datapoints with 0 #6820

Merged

Conversation

andreas-unleash
Copy link
Contributor

Fills missing datapoints with 0s so that all metrics chart lines have data for all datapoints.

Closes # 1-2278

Before:
Screenshot 2024-04-10 at 12 48 22
Screenshot 2024-04-10 at 12 48 44

After:
Screenshot 2024-04-10 at 13 43 10
Screenshot 2024-04-10 at 13 42 49

Signed-off-by: andreas-unleash <andreas@getunleash.ai>
Copy link

vercel bot commented Apr 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
unleash-monorepo-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 10, 2024 11:05am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Visit Preview Apr 10, 2024 11:05am

Copy link

@codescene-delta-analysis codescene-delta-analysis bot left a comment

Choose a reason for hiding this comment

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

Code Health Quality Gates: OK

  • Declining Code Health: 1 findings(s) 🚩

View detailed results in CodeScene

Signed-off-by: andreas-unleash <andreas@getunleash.ai>
Copy link

@codescene-delta-analysis codescene-delta-analysis bot left a comment

Choose a reason for hiding this comment

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

Code Health Quality Gates: OK

  • Declining Code Health: 1 findings(s) 🚩

View detailed results in CodeScene

@@ -79,6 +80,7 @@ export const InsightsCharts: VFC<IChartsProps> = ({
flagTrends,
groupedMetricsData,
environmentTypeTrends,
allMetricsDatapoints,

Choose a reason for hiding this comment

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

❌ Getting worse: Large Method
InsightsCharts:VFC<IChartsProps> increases from 147 to 149 lines of code, threshold = 120

Suppress

Signed-off-by: andreas-unleash <andreas@getunleash.ai>

export const useInsightsData = (
executiveDashboardData: InstanceInsightsSchema,
instanceInsights: InstanceInsightsSchema,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

renamed so that we use consistent language

Copy link

@codescene-delta-analysis codescene-delta-analysis bot left a comment

Choose a reason for hiding this comment

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

Code Health Quality Gates: OK

  • Declining Code Health: 1 findings(s) 🚩

View detailed results in CodeScene

@andreas-unleash andreas-unleash merged commit 68a1ba3 into main Apr 10, 2024
13 checks passed
@andreas-unleash andreas-unleash deleted the feat/fill_metrics_data_with_0_when_missing_datapoints branch April 10, 2024 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants