Repository navigation
Commit 49cdd42
committed
docs(ofrep): say which rule each withholding reaches, after rule six was narrowed
spec@aa2ad24f puts a condition on the rule cited here a commit ago: it applies
once a provider is attempting the capability, and decides whether a question is
askable rather than whether an answer is owed. Applied to this suite that is not
a detail, it is the difference between three right answers and one manufactured
failure.
@numeric-coercion would have been that failure. All three of its scenarios are
askable of this provider and two of them fail, so the rule as first written
forced a declaration -- of a capability no requirement defines, from a provider
that does not coerce by design. It never reaches rule six now. The Go
implementation found the over-reach against its own self-tests; this suite would
have been the second one.
@large-integers does reach it, and the note says why: nothing here declines to
resolve a large integer, so attempting is not in doubt and askability is the only
question left. The backend seeds no huge-integer-flag, so the answer is withhold.
@disabled-flags reaches neither, and the note now says which rule its argument
actually turns on -- the two shapes, not rule six. The evidence is that this
provider attempts and fails rather than declining: it has no design position on
disabled flags, it parses the response flagd sends for one, and it raises
KeyError on a member the protocol types as optional. A provider that declined
would have nothing in the path that could be right or wrong, which is exactly
what the numeric-coercion entry above looks like.
Signed-off-by: Simon Schrottner <simon.schrottner@flagsmith.com>1 parent 88582dc commit 49cdd42
1 file changed
Lines changed: 27 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
146 | 156 | | |
147 | 157 | | |
148 | 158 | | |
| |||
197 | 207 | | |
198 | 208 | | |
199 | 209 | | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
200 | 222 | | |
201 | 223 | | |
202 | 224 | | |
| |||
270 | 292 | | |
271 | 293 | | |
272 | 294 | | |
273 | | - | |
274 | | - | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
275 | 300 | | |
276 | 301 | | |
277 | 302 | | |
| |||
0 commit comments