|
| 1 | +### 1005 - Cmd Property Updated |
| 2 | + |
| 3 | +**Description**: Checks whether a cmd's property value is updated from the previous cli version. |
| 4 | + |
| 5 | +**Analysis**: Not all configured properties updated for a cmd are considered breaking changes. The properties listed in CMD_PROPERTY_UPDATE_BREAK_LIST below are thought to influence or interrupt current workflow and be breaking changes. |
| 6 | +For now, updated properties in cmd level does not break workflow. |
| 7 | +* CMD_PROPERTY_UPDATE_BREAK_LIST = [] |
| 8 | + |
| 9 | +**Example**: In new cli version, cmd `az monitor diagnostic-setting delete` is changed from `is_aaz=false` to `is_aaz=true` after migration, which does not disrupt users' actions. |
| 10 | + |
| 11 | +#### Before |
| 12 | +```json5 |
| 13 | +{ |
| 14 | + "module_name": "monitor", |
| 15 | + "name": "az", |
| 16 | + "commands": {}, |
| 17 | + "sub_groups": { |
| 18 | + "monitor": { |
| 19 | + "name": "monitor", |
| 20 | + "commands": {}, |
| 21 | + "sub_groups": { |
| 22 | + "monitor private-link-scope": { |
| 23 | + "name": "monitor private-link-scope", |
| 24 | + "commands": {}, |
| 25 | + "sub_groups": { |
| 26 | + "monitor private-link-scope scoped-resource": { |
| 27 | + "name": "monitor private-link-scope scoped-resource", |
| 28 | + "commands": { |
| 29 | + "monitor private-link-scope scoped-resource delete": { |
| 30 | + "name": "monitor private-link-scope scoped-resource delete", |
| 31 | + "is_aaz": false, |
| 32 | + "parameters": [ |
| 33 | + { |
| 34 | + "name": "resource_group_name", |
| 35 | + "options": ["--resource-group", "-g"], |
| 36 | + "required": true, |
| 37 | + "id_part": "resource_group" |
| 38 | + } |
| 39 | + ... |
| 40 | + ... |
| 41 | + ] |
| 42 | + } |
| 43 | + } |
| 44 | + } |
| 45 | + } |
| 46 | + } |
| 47 | + } |
| 48 | + }, |
| 49 | + ... |
| 50 | + } |
| 51 | +} |
| 52 | +``` |
| 53 | + |
| 54 | +#### After |
| 55 | +```json5 |
| 56 | +{ |
| 57 | + "module_name": "monitor", |
| 58 | + "name": "az", |
| 59 | + "commands": {}, |
| 60 | + "sub_groups": { |
| 61 | + "monitor": { |
| 62 | + "name": "monitor", |
| 63 | + "commands": {}, |
| 64 | + "sub_groups": { |
| 65 | + "monitor private-link-scope": { |
| 66 | + "name": "monitor private-link-scope", |
| 67 | + "commands": {}, |
| 68 | + "sub_groups": { |
| 69 | + "monitor private-link-scope scoped-resource": { |
| 70 | + "name": "monitor private-link-scope scoped-resource", |
| 71 | + "commands": { |
| 72 | + "monitor private-link-scope scoped-resource delete": { |
| 73 | + "name": "monitor private-link-scope scoped-resource delete", |
| 74 | + "is_aaz": true, |
| 75 | + "parameters": [ |
| 76 | + { |
| 77 | + "name": "resource_group_name", |
| 78 | + "options": ["--resource-group", "-g"], |
| 79 | + "required": true, |
| 80 | + "id_part": "resource_group" |
| 81 | + } |
| 82 | + ... |
| 83 | + ... |
| 84 | + ] |
| 85 | + } |
| 86 | + } |
| 87 | + } |
| 88 | + } |
| 89 | + } |
| 90 | + } |
| 91 | + }, |
| 92 | + ... |
| 93 | + } |
| 94 | +} |
| 95 | +``` |
0 commit comments