When the user opens a page with a Form / YAML switch, for example the Install Helm chart, Edit Deployment or Edit BuildConfig pages, the pages makes always a patch call to update the user preferences.
- Switch to developer perspective > Add > Helm chart
- Select a helm chart (for example Dotnet) and press Install Helm Chart
- Open the browser network inspector and filter for "user-settings"
- Refresh the page
You can always the a PATCH call which stores the latest selected editor type (form or yaml)
No unnecessary network calls
- See review comment https://github.com/openshift/console/pull/9830#pullrequestreview-740648862