Bug 2078601

Summary: PDB: Inconsistent display of sample yaml for default user preferences
Product: OpenShift Container Platform Reporter: Cyril <cajieh>
Component: Management ConsoleAssignee: Cyril <cajieh>
Status: CLOSED DUPLICATE QA Contact: Yadan Pei <yapei>
Severity: low Docs Contact:
Priority: unspecified    
Version: 4.11CC: aos-bugs
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-06-17 12:31:46 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Cyril 2022-04-25 18:22:57 UTC
Description of problem: If you submit your last form as YAML, the default user preferences keeps you on last used. When you go to create another PDB, you have a different YAML:




Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Click create pdb button, and switch to yaml view
`apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
  name: ''
  namespace: default`
2. Click Create btn. A new pdb is created and it redirects to pdb list page
3. Again, click create btn. 
`apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
  name: ''
  namespace: default
spec:
  selector: {}`

Actual results:
A different sample yaml is displayed.

Expected results:

Should display the same sample yaml
Additional info:

Comment 1 Cyril 2022-06-17 12:31:46 UTC
This issue has been addressed in PR - https://github.com/openshift/console/pull/11494

*** This bug has been marked as a duplicate of bug 2084453 ***