Skip to content

Don't require a filter for a quick search. #600

Closed
@cholmes

Description

@cholmes

To solve the issues below, do the following:

  1. In quick search, make filter a named option (--filter for CLI, search_filter for api), if not supplied then no filtering will take place
  2. Change planet data filter to output an empty filter (no filtering) by default so that planet data filter | planet search PSScene --filter - has the same behavior as planet 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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions