[GEN-2176]: fix "ResizeObserver loop" error in UI #2215
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes several changes to the frontend web application, focusing on refactoring the data flow components and updating GraphQL queries. The changes involve removing redundant code, updating imports, and modifying the way data is fetched and processed.
Refactoring Data Flow Components:
frontend/webapp/components/overview/add-entity/index.tsx
: Removed theuseComputePlatform
hook and theFadeLoader
component, simplifying theAddEntity
component. [1] [2] [3]frontend/webapp/containers/main/overview/overview-data-flow/build-action-nodes.ts
: Updated theParams
interface and thebuildActionNodes
function to useActionDataParsed
and a singleunfilteredCount
instead ofComputePlatformMapped
andEntityCounts
. [1] [2] [3]frontend/webapp/containers/main/overview/overview-data-flow/build-destination-nodes.ts
: Similar updates asbuild-action-nodes.ts
, usingActualDestination
andunfilteredCount
. [1] [2] [3]frontend/webapp/containers/main/overview/overview-data-flow/build-rule-nodes.ts
: Updated to useInstrumentationRuleSpecMapped
andunfilteredCount
. [1] [2] [3]frontend/webapp/containers/main/overview/overview-data-flow/build-source-nodes.ts
: Updated to useK8sActualSource
andunfilteredCount
. [1] [2] [3]Removing Redundant Code:
frontend/webapp/containers/main/overview/overview-data-flow/get-entity-counts.ts
: Removed theget-entity-counts.ts
file as it is no longer needed.frontend/webapp/containers/main/overview/overview-data-flow/index.tsx
: Refactored to use CRUD hooks instead ofuseComputePlatform
, and removed references togetEntityCounts
. [1] [2] [3]Updating GraphQL Queries:
frontend/webapp/graphql/queries/compute-platform.ts
: Added new queriesGET_NAMESPACE
,GET_SOURCES
,GET_DESTINATIONS
,GET_ACTIONS
, andGET_INSTRUMENTATION_RULES
, and removed redundant parts ofGET_COMPUTE_PLATFORM
. [1] [2] [3] [4] [5]