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

[GEN-2175]: optimize metrics fetching based on available sources and destinations #2160

Merged
merged 4 commits into from
Jan 8, 2025

Conversation

BenElferink
Copy link
Contributor

@BenElferink BenElferink commented Jan 8, 2025

This pull request includes changes to the useMetrics hook in the frontend/webapp/hooks/overview/useMetrics.ts file to improve its functionality by ensuring that metrics are only fetched when there are sources or destinations available.

Improvements to useMetrics hook:

  • frontend/webapp/hooks/overview/useMetrics.ts: Modified the useMetrics hook to use the useSourceCRUD and useDestinationCRUD hooks for fetching sources and destinations, and updated the skip condition in the useQuery call to prevent fetching metrics when there are no sources or destinations.

@BenElferink BenElferink requested a review from alonkeyval January 8, 2025 10:50
Copy link

@BenElferink BenElferink changed the title [GEN-2175]:optimize metrics fetching based on available sources and destinations [GEN-2175]: optimize metrics fetching based on available sources and destinations Jan 8, 2025
@BenElferink BenElferink added enhancement New feature or request frontend labels Jan 8, 2025
@BenElferink BenElferink enabled auto-merge (squash) January 8, 2025 11:56
@BenElferink BenElferink merged commit 48089e4 into odigos-io:main Jan 8, 2025
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request frontend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants