Commit Graph

25 Commits (master)

Author SHA1 Message Date
Jeffrey Smith II 4ed184dd82
fix: fixes an error querying virtual dbrps (#23731)
* fix: fixes an error querying virtual dbrps

When the virtual pointer was set to false, the mappings were being ignored.

* fix: missed part in a rebase

* test: add test for shard mapping virtual dbrps

* fix: do not create virtual mappings for equivalent physical mappings
2022-10-13 14:58:07 -04:00
Andrew Lee 187f991d54
fix: improve virtual DBRP default handling (#23626) 2022-08-16 14:02:31 -06:00
Andrew Lee afbbfaca87
fix: fix virtual DBRP FindMany, make virtual bucket default if not overridden (#23623)
* fix: fix find dbrps, make bucket default if not overridden

* fix: allow filtering of virtual DBRPs, filter in shard mapper

* fix: update tests to mock for virtual filter for shards and update server test
2022-08-12 11:16:37 -06:00
Andrew Lee adeac8beea
feat: add virtual DBRP mappings based on bucket name (#23606)
* feat: add virtual DBRP mapping based on bucket name

* fix: improve error handling logic

* fix: update physical dbrp tests

* fix: update influxql tests with auto-mapped buckets

* fix: add virtual filtering and testing for virtual dbrps
2022-08-03 15:44:04 -06:00
Dane Strandboge 82d1123e78
build: upgrade to Go 1.18.1 (#23252) 2022-04-13 15:24:27 -05:00
Sam Arnold 5015297d40
fix: more expressive errors (#22448)
* fix: more expressive errors

Closes #22446

* fix: server only logging for untyped errors

* chore: fix formatting
2021-09-13 15:12:35 -04:00
Daniel Moran 01355a068c
refactor: move helper functions for setting up test stores into testing package (#22347)
* Move tenant.Service unit tests into its package
* Delete the top-level TenantService interface now that it's not used.
* Move helper funcs for setting up test stores into testing pkg
* Delete duplicate implementations scattered through the codebase
* Move error assertions into store-creation helpers
2021-08-31 16:43:45 -04:00
Daniel Moran cc6accf106
chore: delete old-style DBRP mapping (#22339) 2021-08-30 18:27:11 -04:00
Sam Arnold 7b2e122869
refactor: refactor for tasks backport (#21117)
* chore: remove dead code

* refactor: move FluxLanguageService interface to fluxlang

* chore: run fmt

* refactor: move task.go from top level to task/taskmodel

* chore: run formatter

* chore: fix up import ordering with gci
2021-04-07 14:42:55 -04:00
Daniel Moran 00afd95cb7
refactor: automated move of errors and id from root to kit (#21101)
Co-authored-by: Sam Arnold <sarnold@influxdata.com>
2021-03-30 14:10:02 -04:00
Daniel Moran c708eea118
fix(dbrp): improve DBRP API validation errors (#20409) 2021-01-07 09:08:06 -08:00
Brett Buddin 49f7ef5f46
fix(dbrp): Don't use record ID removing orgID index. (#20203) 2020-12-01 11:36:54 -05:00
Stuart Carnie 6e7a6313d7 fix: Add a ByOrgID index to DBRP
This commit adds a new index and migration to the DBRP service for
retrieving all database and retention policy mappings for a single
organization.

This change was required to resolve an invalid assumption of the DBRP
service, which relied on a prefix match of the byOrgAndDatabase kv.Index
when performing search operations by organization ID only.

Closes #20096
2020-11-24 10:28:00 +11:00
docmerlin (j. Emrys Landivar) 4626ea1a0c fix(api): make the dbrp api match the swagger spec
The swagger spec is the source of truth for the API, and the DBRP api
was divergent from this spec.  This change should make it meet the spec.
2020-11-18 11:47:23 -06:00
J. Emrys Landivar 478d25e774
feat(cmd/influx): Add DBRP cli commands as `influx v1 dbrp` (#20067)
Co-authored-by: Dan Moran <dmoran@influxdata.com>
2020-11-17 15:14:55 -05:00
George MacRorie b274e15eac fix(telegraf): support pagination parameters when listing 2020-11-04 15:53:02 +00:00
Stuart Carnie 3d14b1128e
fix: Speed up tests by disabling bolt fsync 2020-08-03 09:20:51 -07:00
George 96d84b9126
refactor: migrator and introduce Store.(Create|Delete)Bucket (#18570)
* refactor: migrator and introduce Store.(Create|Delete)Bucket

feat: kvmigration internal utility to create / managing kv store migrations

fix: ensure migrations applied in all test cases

* chore: update kv and migration documentation
2020-07-01 12:08:20 +01:00
Brett Buddin 1f422b9b94
fix(dbrp): Delete DBRP mappings when their target Bucket is deleted. (#18699) 2020-06-24 13:40:54 -04:00
Brett Buddin e95839db60
fix(dbrp): Wait until we know this bucket is default before writing value. 2020-06-18 17:08:33 -04:00
Brett Buddin d8aa318985
fix(dbrp): Change DBRP mapping service to use Buckets resource permissions instead of DBRP. 2020-06-15 15:50:37 -04:00
Gavin Cabbage f159b866e3
fix(dbrpv2): lookup by org name (#18331) 2020-06-02 11:39:29 -04:00
Gavin Cabbage 715e2fb141
fix(dbrpv2): reflect match count correctly (#18211) 2020-05-26 10:58:10 -04:00
Ben Johnson cac288f8be fix(dbrp): Fix API interface calls 2020-05-15 08:10:46 -06:00
Gianluca Arbezzano 1cf64fd721
feat: dbrp service
Signed-off-by: Lorenzo Affetti <lorenzo.affetti@gmail.com>
Co-Authored-By: Gianluca Arbezzano <gianarb92@gmail.com>
Co-Authored-By: George MacRorie <gmacrorie@influxdata.com>
Co-Authored-By: Alirie Gray <alirie.gray@gmail.com>
2020-05-15 12:05:38 +02:00