Clarify difference in virtual vs physical dbrps when listing (#439)

* fix: separate v1 dbrp list results into physical and virtual

* fix: remove virtual column from v1 dbrp list

* fix: update v1 dbrp list tests for new format

* fix: add new test with virtual result
This commit is contained in:
Andrew Lee
2022-08-17 10:31:48 -06:00
committed by GitHub
parent 65ff49fedf
commit 051a6aafc4
3 changed files with 53 additions and 16 deletions

View File

@ -25,8 +25,13 @@ func newV1DBRPListCmd() cli.Command {
flags := append(commonFlags(), getOrgFlags(&params.OrgParams)...)
return cli.Command{
Name: "list",
Usage: "List database and retention policy mappings",
Name: "list",
Usage: "List database and retention policy mappings",
Description: `List database and retention policy mappings, both standard and virtual.
Virtual DBRP mappings (InfluxDB OSS only) are created automatically using the bucket name.
Virtual mappings are read-only. To modify a virtual DBRP mapping, create a new, explicit DBRP mapping.
For more information, see https://docs.influxdata.com/influxdb/latest/query-data/influxql/dbrp/`,
Aliases: []string{"find", "ls"},
Flags: append(
flags,