[Vote ended on 2022-08-03] Vote on https://github.com/ansible-community/community-topics/issues/116: normalize booleans in documenation, ansible-lint, ansible-doc, ...? #120
Replies: 32 comments 1 reply
-
My order of preference is 1 > 2 > 4 > 3 |
Beta Was this translation helpful? Give feedback.
-
Order of preference: |
Beta Was this translation helpful? Give feedback.
-
My order of preference: 1 > 3 > 2 > 4 |
Beta Was this translation helpful? Give feedback.
-
1 > 2 > 4 > 3 |
Beta Was this translation helpful? Give feedback.
-
1 > 2 > 4 > 3 |
Beta Was this translation helpful? Give feedback.
-
1, 1, 1, 1 -- I like following specs, and we happen to have two that we can follow. Fixing current situation is only about fixing docs, without any code change, as it is not about preventing use of old values, is only about documenting the optimal/standard values. I have no idea if in 2.5 years from now we might remove support for old YAML 1.1 boolean-aliases, but we need to educate people to use safe and future proof values. |
Beta Was this translation helpful? Give feedback.
-
+1 for option 1 |
Beta Was this translation helpful? Give feedback.
-
2 > 4 > 1 > 3 it feels a bit like a similar discussion about linting, extends_documentation_fragment:
- amazon.aws.aws
- amazon.aws.ec2 vs extends_documentation_fragment:
- amazon.aws.aws
- amazon.aws.ec2 +1 for option 2 |
Beta Was this translation helpful? Give feedback.
-
Option 1 |
Beta Was this translation helpful? Give feedback.
-
Option 1, reasoning in #116 |
Beta Was this translation helpful? Give feedback.
-
+1 for option 1 |
Beta Was this translation helpful? Give feedback.
-
I vote for new options called |
Beta Was this translation helpful? Give feedback.
-
2 > 4 > 1 > 3 |
Beta Was this translation helpful? Give feedback.
-
+1 for option 1. BTW, my order of preference is 1>3>2>4. |
Beta Was this translation helpful? Give feedback.
-
+1 for option 1. BTW, my order of preference is 1>3>2>4. module options are lowercase, so are module names, uniformity is best. |
Beta Was this translation helpful? Give feedback.
-
1 > 2 > 4 > 3 |
Beta Was this translation helpful? Give feedback.
-
For me it's 1 then 2. Unnecessary capitalisation is horrible. |
Beta Was this translation helpful? Give feedback.
-
Note that by default ansible-doc output is 'YAML' (1.1 version as we use pyyaml) but it also outputs JSON (using a switch) and probably other formats in the future, each one has/can have a different standard for 'boolean'. This is irrespective on what values you set on the module documentation as it all gets auto translated by the YAML parser, so if you have You also have to consider The html pages are controlled by a Jinj2 template which currently displays:
This one is in the end the only one we can consistently set to a 'standard' .. but it won't be true for other outputs as that depends on the 'format' being used. |
Beta Was this translation helpful? Give feedback.
-
+1 for option 1 |
Beta Was this translation helpful? Give feedback.
-
1 > 3 > 2 > 4 |
Beta Was this translation helpful? Give feedback.
-
+1 for option 1, preference: 1>3>2>4. |
Beta Was this translation helpful? Give feedback.
-
+1 for option 1, preference: 1>3>2>4 |
Beta Was this translation helpful? Give feedback.
-
+1 for option 1, preference: 1>3>2>4 |
Beta Was this translation helpful? Give feedback.
-
+1 for option 2 |
Beta Was this translation helpful? Give feedback.
-
1 > 3 > 2 (edited because I realized I had it backwards) |
Beta Was this translation helpful? Give feedback.
-
My order would be 2>1>4>3. That said, option 2 (normalize to |
Beta Was this translation helpful? Give feedback.
-
Option 1 |
Beta Was this translation helpful? Give feedback.
-
2 > 1, definitely not 3 or 4. |
Beta Was this translation helpful? Give feedback.
-
+1 for option 1 |
Beta Was this translation helpful? Give feedback.
-
+1 for Option 1! |
Beta Was this translation helpful? Give feedback.
-
Vote on #116. We aim at normalizing boolean options in documentation, ansible-lint, ansible-doc, AH/GalaxyNG, and other places as follows:
true
andfalse
yes
andno
True
andFalse
Please mention your preferred option as your vote. If you prefer more than one, please give a preference.
Also please note that if we decide on one of options 1) to 3), this does not mean that a) no other possibilities will be mentioned in the documentation anymore, and b) we can force anyone to use these normalized values.
Please review issue #116 before voting so you are informed of the issues with each option.
Beta Was this translation helpful? Give feedback.
All reactions