Skip to content

Use boolean Options correctly in ItemLister#590

Merged
asfgit merged 3 commits intoapache:masterfrom
sjcorbett:fix/item-lister
Mar 15, 2017
Merged

Use boolean Options correctly in ItemLister#590
asfgit merged 3 commits intoapache:masterfrom
sjcorbett:fix/item-lister

Conversation

@sjcorbett
Copy link
Copy Markdown
Contributor

Replaces list-objects' --catalog-only and --ignore-impls arguments with --all-classes and --include-impls respectively.

ItemLister defined a few options as booleans whose default was true. Airline treats boolean options as having zero arity and whose existence implies truth. See Airline's MetadataLoader class.

I've removed the default from all other boolean options to make it clearer that the value is set by Airline.

CloudExplorerLiveTest passes.

Sam Corbett added 3 commits March 13, 2017 10:48
Replaces list-objects' --catalog-only and --ignore-impls arguments with
--all-classes and --include-impls respectively.

ItemLister defined a few options as booleans whose default was true.
Airline treats boolean options as having zero arity and whose existence
implies truth.

Also removes the default from all other boolean options to make it
clearer that the value is set by Airline.
@neykov
Copy link
Copy Markdown
Member

neykov commented Mar 15, 2017

LGTM, merging. @tbouron are there any docs that should be updated for the community catalog?

@asfgit asfgit merged commit 116de91 into apache:master Mar 15, 2017
asfgit pushed a commit that referenced this pull request Mar 15, 2017
Use boolean Options correctly in ItemLister

Replaces list-objects' `--catalog-only` and `--ignore-impls` arguments with `--all-classes` and `--include-impls` respectively.

ItemLister defined a few options as booleans whose default was true. Airline treats boolean options as having zero arity and whose existence implies truth. See Airline's [MetadataLoader](https://github.com/airlift/airline/blob/0.7/src/main/java/io/airlift/airline/model/MetadataLoader.java#L156) class.

I've removed the default from all other boolean options to make it clearer that the value is set by Airline.

CloudExplorerLiveTest passes.
@sjcorbett sjcorbett deleted the fix/item-lister branch March 15, 2017 14:11
@tbouron
Copy link
Copy Markdown
Member

tbouron commented Mar 15, 2017

Yes, there is one: the reference field in https://github.com/brooklyncentral/blueprint-repository

Good catch @neykov !

@neykov
Copy link
Copy Markdown
Member

neykov commented Mar 15, 2017

Thanks @tbouron. Looks like it's good, doesn't use the options changed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants