Skip to content

Fix scan execution policy selection

Paul Gascou-Vaillancourt requested to merge fix-policy-selection into master

What does this MR do?

This cleans up the policy selection handling by directly storing the selected policy object instead of computing it based on the policy' name. This fixes a bug where the policy drawer would remain empty when selecting a scan execution policy as the selectedPolicy object was being computed based on networkPolicies only.

This also fixes a bug where editing a network policy would lead to an error 404. Including the policy kind in the edit URL should resolve the issue as the backend now expects this parameter to load policy data to be passed to the frontend.

Screenshots or Screencasts (strongly suggested)

Before After
Screen_Shot_2021-07-06_at_10.37.42_AM Screen_Shot_2021-07-06_at_10.36.29_AM

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by Paul Gascou-Vaillancourt

Merge request reports