Skip to content

Logs/Node Tree/Node Details - code refactoring & improvements #1188

@sohel-rp

Description

@sohel-rp

The following are the changes that are being introduced under this -

  • App Details & App Details Store -> add new route/path for pod grouping i.e., /group/:resourceName. Introduce new functions in store to handle grouping.
  • Logs -> refactor the component's states & related logic
  1. Use LogState instead of PodContainerOptions as an initial state.
  2. Change in logic for handling All new/old pods. Make the grouping based on containers.
  3. Tweaks in the handling of Pod Container Options as LogState is being used initially.
  • Node Details -> Additional handling for getting selected nodes based on the selected resources (especially for type pod).
  • Node Tree & Node Tree Reducer ->
  1. Changes to handle resource grouping (especially for type pod).
  2. Remove some states & related logic updates from useEffect.
  3. State to handle re-rendering of Node Tree.
  4. Resource/node selected state handling.
  5. Generate redirect URLs for the selected resource.
  6. Re-structuring/refactoring of the useNodeTreeReducer, and some related changes.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions