Description
To solve the issues below, do the following:
- In quick search, make filter a named option (
--filter
for CLI,search_filter
for api), if not supplied then no filtering will take place - Change
planet data filter
to output an empty filter (no filtering) by default so thatplanet data filter | planet search PSScene --filter -
has the same behavior asplanet search PSScene
- this resolves Possible to create a filter with conflicting rules #704
If I try to do a quick search with no filter I get:
% planet data search-quick PSScene
Usage: planet data search-quick [OPTIONS] ITEM_TYPES FILTER
Try 'planet data search-quick --help' for help.
Error: Missing argument 'FILTER'.
In v1 doing a search without a filter would just show you the latest data.
Right now you can do planet data filter | planet data search-quick SkysatCollect -
, since filter outputs {"type": "PermissionFilter", "config": ["assets:download"]}
by default.
But then if you didn't want to only search downloadable assets you could do:
planet data filter --permission false | planet data search-quick SkysatCollect -
and then you get a failure, since the latter doesn't actually output a filter, it emits nothing.