You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function get_path_value_from_dict is currently duplicated in both the Kubernetes handler and JSON handler files. To improve code maintainability and reusability, we need to generalize this function and move it to common.py.
Update the function to handle more generic use cases.
Place the generalized function in common.py and ensure all relevant imports and dependencies are updated accordingly.
Modify the Kubernetes and JSON handler files to import the function from common.py.
Ensure existing tests in Kubernetes and JSON handlers pass with the new implementation.
The text was updated successfully, but these errors were encountered:
AkashS0510
added a commit
to AkashS0510/tirith
that referenced
this issue
Aug 4, 2024
StackGuardian#145
Refactor get_path_value_from_dict
Moved get_path_value_from_dict to common.py.
Refactored Kubernetes and JSON handler files to import from common.py.
The function
get_path_value_from_dict
is currently duplicated in both the Kubernetes handler and JSON handler files. To improve code maintainability and reusability, we need to generalize this function and move it tocommon.py
.common.py
and ensure all relevant imports and dependencies are updated accordingly.common.py
.The text was updated successfully, but these errors were encountered: