Skip to content

content search: R and Py version filter flag improvements #223

Closed
@dbkegley

Description

@dbkegley

Our content search filters --py-version and --r-version use semver to allow users to search for content based on the versions of R and Python in use. The current syntax uses comparators like >=, <=, >, <, and == to specify the filters.

For example --py-version >=2.7.0 would return python content using at least python 2.7.0.

The argument parsing of these flags can cause confusion depending on the user's $SHELL. For example --py-version==2.7.0 will fail to parse because --py-version= is parsed as the flag by our argparsing library, leaving =2.7.0 as the argument = alone is not a valid comparator.

Similarly, bash might interpret the following as a redirect: --py-version=>2.7.0 because of >. To avoid this, the argument needs to be quoted --py-version ">2.7.0"

In short, our use of the characters >, =, < could be a usability issue. We might consider an alternative syntax, for example gt(2.7.0), gte(2.7.0), eq(2.7.0) could replace >2.7.0, >=2.7.0, ==2.7.0. That's just an example, I welcome other suggestions here.

@kellobri @colearendt @aronatkins we would appreciate your thoughts on this. Is this something we should address in our docs to unblock our release or should we revisit this command now (to avoid confusion later)

This was noted by @kgartland-rstudio during our QA for the next release

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions