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
Having an agent pinned in Configuration Assessment, when changing APIs, instead of staying in the Configuration Assessment app with the screen to select an agent, the general Overview screen loads.
Steps to reproduce
Navigate to Configuration Assessment.
Pin an agent.
Go to Home -> Overview
Go to Configuration Assessment.
Change the API.
Expected Result
The agent selection screen should be displayed in Configuration Assessment.
Actual Result
The general Overview screen loads.
Screenshots
evidence.webm
The text was updated successfully, but these errors were encountered:
wz-agent-selector-service in its constructor is storing the query params. Calling the unPinAgent method internally calls an internal renewURL method using those parameters stored in the wz-agent-selector-service instantiation. This causes that when calling the renewURL method, the query params used are not correct, causing the query param tab to be missing, which is essential for correct rendering.
Proposed solution
Do not store the query params during the instantiation of wz-agent-selector-service and consult the query params when they are needed. In this case, in the unPinAgent method.
Likewise, it is also necessary to add the dependency parameter agentId in the useEffect in public/components/overview/overview.tsx so that it correctly synchronizes the state of the pinned agent with respect to the URL.
asteriscos
changed the title
Fix behavior in Configuration Assessment when changing API
Changing API in Configuration Assessment redirects to Home overview
Jun 20, 2024
Description
Having an agent pinned in Configuration Assessment, when changing APIs, instead of staying in the Configuration Assessment app with the screen to select an agent, the general Overview screen loads.
Steps to reproduce
Expected Result
Actual Result
Screenshots
evidence.webm
The text was updated successfully, but these errors were encountered: