File: 1010.md

package info (click to toggle)
azure-cli 2.83.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,346,000 kB
  • sloc: python: 1,930,197; sh: 1,344; makefile: 407; cs: 145; javascript: 74; sql: 37; xml: 21
file content (80 lines) | stat: -rw-r--r-- 2,496 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
### 1010 - Parameter Property Updated

**Description**: Checks whether an existing property value is updated from a cmd's parameter. 

**Analysis**: Not all configured properties updated from a cmd's parameter are considered breaking changes. The properties listed in PARA_PROPERTY_UPDATE_BREAK_LIST below are thought to influence or interrupt current workflow and be breaking changes. 
* PARA_PROPERTY_UPDATE_BREAK_LIST = ["default", "aaz_default"]

**Example**: In new cli version, `default` is being updated from `3600` to `7200` for `--timeout` of cmd `az monitor account wait` which may cause inconsistency in users' default behaviour.

#### Before
```json5
{
  "module_name": "monitor",
  "name": "az",
  "commands": {},
  "sub_groups": {
      "monitor": {
          "name": "monitor",
          "commands": {},
          "sub_groups": {
              "monitor account": {
                  "name": "monitor account",
                  "commands": {
                      "monitor account wait": {
                          "name": "monitor account wait",
                          "is_aaz": true,
                          "parameters": [
                              {
                                  "name": "timeout",
                                  "options": ["--timeout"],
                                  "default": 3600
                              }
                              ...
                              ...
                          ]
                      }
                  }
              }
          }
      },
    ...
  }
}
```

#### After
```json5
{
  "module_name": "monitor",
  "name": "az",
  "commands": {},
  "sub_groups": {
      "monitor": {
          "name": "monitor",
          "commands": {},
          "sub_groups": {
              "monitor account": {
                  "name": "monitor account",
                  "commands": {
                      "monitor account wait": {
                          "name": "monitor account wait",
                          "is_aaz": true,
                          "parameters": [
                              {
                                  "name": "timeout",
                                  "options": ["--timeout"],
                                  "default": 7200
                              }
                              ...
                              ...
                          ]
                      }
                  }
              }
          }
      },
    ...
  }
}
```