Closed nvkelso closed 5 years ago
Request to put %
usage in a separate commit or ideally in a separate PR, to make it easier for development comparison for ES.
Consider splitting USA and international shields into separate icon bundles that are like theme imports.
@sensescape and @bcamper this is ready for review, finally! :)
The reason the 52f98b7f1c34f85547dcf72efb78b54095d0f717 commit didn't work is that it dropped the all
while keeping the filters as arrays, which have an implicit any
behavior. An object filter has implicit all
behavior. E.g. see example in 6bb86d946d44c820b71167801a94575341dbdfea:
Should be
filter: { network: [...], shield_text: true }
Or can be written as:
filter:
network: [...]
shield_text: true
But NOT as an array:
filter: [ network: [...], shield_text: true ]
or
filter:
- network: [...]
- shield_text: true
Does the difference make sense?
Hmm, it does now but wasn’t obvious before. I prefer to use the explicate all here as I find it less buggy / confusing.
On Tue, Oct 16, 2018 at 07:59 Brett Camper notifications@github.com wrote:
The reason the 52f98b7 https://github.com/tangrams/bubble-wrap/commit/52f98b7f1c34f85547dcf72efb78b54095d0f717 commit didn't work is that it dropped the all while keeping the filters as arrays, which have an implicit any behavior. An object filter has implicit all behavior. E.g. see example in 6bb86d9 https://github.com/tangrams/bubble-wrap/commit/6bb86d946d44c820b71167801a94575341dbdfea :
Should be filter: { network: [...], shield_text: true }
Or can be written as:
filter: network: [...] shield_text: true
But NOT as an array: filter: [ network: [...], shield_text: true ] or
filter:
- network: [...]
- shield_text: true
Does the difference make sense?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tangrams/bubble-wrap/pull/270#issuecomment-430271769, or mute the thread https://github.com/notifications/unsubscribe-auth/AA0EO_OF07ExqPUlcHkaL1IyJrlSIVblks5ulfRbgaJpZM4S_JYn .
I definitely find the YAML difference between the "expanded" form (with -
for arrays, but no preceding character for objects) confusing. For "simple all" filters I like the more compact form filter: { network: [...], shield_text: true }
, but it is mostly a matter of preference. The extra all
does have some parsing/memory overhead, but it's likely negligible.