Commit Graph

1726 Commits (b819edf095ec98ae07e5fff0fb59c1a9cbca2fbe)

Author SHA1 Message Date
wiedld 4fc73ea221
feat(monitor-ci/415): get oss-e2es working locally in UI repo (#24098)
* feat(monitor-ci/415): get oss-e2es working locally in UI repo

* chore: remove old, unused artifact directories

* fix: handle import cycle caused by trying to use the onboarding client

---------

Co-authored-by: Jeffrey Smith II <jsmith@influxdata.com>
2023-02-22 09:28:46 -05:00
Jeffrey Smith II f74c69c5e4
chore: update to go 1.20 (#24088)
* build: upgrade to go 1.19

* chore: bump go.mod

* chore: `gofmt` changes for doc comments

https://tip.golang.org/doc/comment

* test: update tests for new sort order

* chore: make generate-sources

* chore: make generate-sources

* chore: go 1.20

* chore: handle rand.Seed deprecation

* chore: handle rand.Seed deprecation in tests

---------

Co-authored-by: DStrand1 <dstrandboge@influxdata.com>
2023-02-09 14:14:35 -05:00
Cyril Bonté 81e2ec617d
fix: enable gzipped responses with the legacy handler (#23805) (#23806)
re-enable gzip compression on the legacy handler, as it was supported in
influxdb 1.x.

Co-authored-by: Cyril Bonté <cyril.bonte@fr.clara.net>
2022-10-20 09:24:05 -04:00
Jeffrey Smith II 2ad8995355
fix: improve delete speed when a measurement is part of the predicate (#23786)
* fix: improve delete speed when a measurement is part of the predicate

* test: add test for deleting measurement by predicate

* chore: improve error messaging and capturing

* chore: set goland to use the right formatting style
2022-10-14 15:09:32 -04:00
Christopher M. Wolff aa9c49e9f5
build(flux): update flux to v0.180.1 (#23666)
* chore: make tests robust to Flux formatter changes
2022-08-24 11:59:16 -07:00
Jeffrey Smith II daaf8665bb
fix: several minor quality issues (#23667)
* fix: invalid assign to nil pointer

* fix: close some files that were being left open

* fix: lint
2022-08-23 15:54:46 -04:00
Jonathan A. Sternberg 785a465e9a
refactor: remove reference to flux.Spec in query tests (#23652)
It appears to be dead and not used anymore.
2022-08-19 14:53:33 -05:00
Jeffrey Smith II 67ccbae8ff
feat: add the concept of an instance owner (#23497)
* feat: Add the instance owner concept

* feat: improve handling of instance resource type

* fix: remove relic of cloud/oss split

* feat: Add an instance id. This gets set during onboarding and can be used to uniquely identify that instance.

* chore: Revert "feat: Add an instance id. This gets set during onboarding and can be used to uniquely identify that instance."

This reverts commit 6a712df61e.

We decided to stick with the "singleton" 1 id for now, as there is not a clear need for unique identifiers.
2022-08-01 09:42:06 -04:00
Nathaniel Cook 07bab31fe6
build(flux): update flux to v0.173.0 (#23505)
* build(flux): update flux to v0.173.0

* fix(fluxfmt): update tests for newline in Flux fmt

Flux fmt now explicitly adds a newline to the end of a file, updating
tests accordingly.
2022-06-30 11:39:07 -06:00
Dane Strandboge 82d1123e78
build: upgrade to Go 1.18.1 (#23252) 2022-04-13 15:24:27 -05:00
Sam Arnold e5ccbb8831
fix: forbid reading OSS buckets for a token with only write permissions (#23148)
* fix: forbid reading OSS buckets for a token with only write permissions

We previously enabled write tokens to also find DBRP buckets, in order to allow
the legacy /write (not /api/v2/write) endpoint to read the DBRP mappings and
find the real bucket id to write to.

This had the unintended consequency of allowing tokens with only write permissions
to read data in buckets via the legacy /query (not /api/v2/query) endpoint with
InfluxQL.

This change fixes the behaviour to allow writing to /write with a write-only
token, while forbidding reading from /query.

* fix: nanosecond precision in tests
2022-02-24 09:59:14 -05:00
Jonathan A. Sternberg 2a957c9a56
chore(query/influxql): remove the influxql transpiler (#23000) 2022-01-31 11:34:37 -05:00
Christopher M. Wolff a812d8b603
build(flux): update flux to v0.148.0 (#23047) 2022-01-11 11:30:01 -08:00
William Baker f78f9eda9c
feat: api/v2/config endpoint displays runtime configuration (#23003)
* feat: api/v2/config endpoint for runtime config

* feat: use a type switch

* fix: add tests

* chore: add config key to returned json

* chore: update swagger ref
2021-12-23 09:27:39 -05:00
William Baker b0a0e734e0
chore: remove unused user http code (#23011)
* chore: remove unused user http code

* fix: resolve circular dep

* fix: copy newUserResponse function
2021-12-20 15:17:18 -05:00
Jakub Bednář fa9ba8e86f
fix: duplicated X-version and X-Build headers for /ping endpoint (#22862)
* fix: duplicated X-version and X-Build headers for /ping endpoint

Signed-off-by: Jakub Bednar <jakub.bednar@gmail.com>

* chore: change branch to master

* chore: only http/handler.go is responsible for sets headers

Signed-off-by: Jakub Bednar <jakub.bednar@gmail.com>
2021-11-12 13:32:12 -07:00
Daniel Moran 58139c47b2
feat: add auth to remotes & replications APIs (#22744) 2021-10-26 11:32:35 -04:00
Daniel Moran 504f0e4413
feat: passing `type=basic` returns task metadata without query text (#22728) 2021-10-22 09:14:58 -04:00
Russ Savage 1ba6581e74
feat: Add Bearer token auth (#22498)
* feat: add bearer token support

* fix: updating to use equalfold
2021-10-13 12:02:32 -07:00
Dane Strandboge ca992e9fff
chore: use io/os over ioutil (#22656) 2021-10-12 16:55:07 -05:00
Sam Arnold a02782c63f
feat: return new operator token during backup overwrite (#22629)
* feat: return new operator token during backup overwrite

* chore: update swagger

* test: e2e restore test with new token
2021-10-07 09:07:09 -04:00
Daniel Moran 15a32a0860
refactor: consolidate session-handling code (#22626) 2021-10-06 22:37:02 -04:00
Sam Arnold 725794ef28
feat: show measurement database and retention policy wildcards (#22396)
* feat: show measurement database and retention policy wildcards

Closes #22390

* chore: formatting

* test: this commit fails tests with empty database

* fix: show measurements with one empty database
2021-10-05 13:20:15 -04:00
Daniel Moran d5b6f8e8a4
fix: allow empty reqeust bodies to write API (#22574) 2021-09-24 09:51:39 -04:00
Daniel Moran 75b9398e1a
fix: suggest setting flux Content-Type when query fails to parse as JSON (#22537) 2021-09-22 09:35:06 -04:00
Sam Arnold 7dfd7de81f
feat: set X-Influxdb-Version and X-Influxdb-Build headers (#22535)
Closes #20224
Also a forward port of #22038 since I saw the same test failing on 2.x
2021-09-22 07:30:45 -04:00
Daniel Moran d307e0a2dc
chore: delete miscellaneous unused code (#22465)
* Delete unused `CreateFileWithReplacement` function
* Delete unused `http/server.go`
2021-09-13 15:48:17 -04: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 dc3b501298
refactor: rename Lock/Unlock on KV stores to RLock/RUnlock (#22357) 2021-08-31 17:03:54 -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
William Baker 74eacf63ba
feat: add `--flux-log-enabled` flag for detailed flux logs (#22072)
* feat: add `--flux-log-enabled` flag for detailed flux logs

* feat: set query to unknown if not available
2021-08-30 14:42:05 -06:00
Daniel Moran 5c7c6c2702
feat: add APIs for management of remote InfluxDB connections (#22219) 2021-08-17 15:15:05 -04:00
Daniel Moran 72de805106
refactor: use updated API in restore service (#22198) 2021-08-13 16:15:18 -04:00
Daniel Moran 07d897d2f2
fix: switch flux formatter to one that preserves comments (#22186) 2021-08-12 14:17:18 -04:00
Greg 7aaba338b2
feat: add route to return platform known resources (#22135) 2021-08-10 09:18:06 -06:00
William Baker 3f7b996a10
chore: delete the rest of chronograf (#21998)
* chore: deleted the rest of chronograf

* chore: tidy
2021-08-02 09:02:54 -06:00
William Baker 096a478ff6
fix: return 404 instead of links page on bad /api/v2 requests (#21950)
* fix: return 404 instead of links page on bad /api/v2 requests

* chore: update CHANGELOG
2021-07-27 11:35:29 -06:00
William Baker e7685fff01
feat: add `ui-disabled` flag to run server with UI disabled (#21910)
* feat: add `ui-disabled` flag to run server with UI disabled

* chore: update CHANGELOG
2021-07-21 19:52:57 -06:00
William Baker 0cb0da2060
chore: modify/delete some chronograf refs (#21802)
* chore: modify/delete some chronograf refs

* chore: update CHANGELOG
2021-07-08 09:14:03 -05:00
William Baker ea5e6eabcb
feat: transfer static asset handling into own package (#21785)
* feat: transfer static asset handling into own package

* chore: added some tests

* fix: update swagger script per review

* fix: make into bash script
2021-07-06 12:54:01 -05:00
Jakub Bednář 6aae544ac8
fix(pingEndpoint): change build type to 'oss2', use correct version (#21723)
Signed-off-by: Jakub Bednar <jakub.bednar@gmail.com>
2021-06-24 12:33:54 -04:00
Daniel Moran b1b076f600
refactor: delete old backup/restore CLI commands, replace with dependency on new CLI repo (#21703) 2021-06-17 09:18:55 -04:00
William Baker 22f4f5bba8
chore: remove unnecessary file name from metadata backup api (#21701) 2021-06-16 09:17:03 -04:00
Daniel Moran 8fa7e5fa8c
feat: implement new restore/bucket-metadata API (#21685) 2021-06-15 10:32:47 -04:00
Daniel Moran a216501723
feat: add support for gzip request bodies in restore API (#21676) 2021-06-14 11:52:31 -04:00
Daniel Moran 242e313b10
feat: add gzip support to backup API responses (#21675) 2021-06-14 10:37:49 -04:00
William Baker 34a4a8e60e
feat: metadata backup returns bucket manifests (#21601)
* fix: properly omit empty time.Time that are optional

* fix: optimize slice creation in manifest fns
2021-06-04 09:26:17 -04:00
William Baker b0ea3b6675
feat: backup and restore sqlite database (#21584)
* feat: new metadata backup endpoint

* feat: added restore/sql API endpoint

* fix: content-type is multipart/mixed, part names are kv and sql

* fix: changed multipart manifest to buckets and made it .json

* feat: added lock for backing up sqlite and bolt dbs

* fix: use read lock instead of write lock on kv during backup

* fix: use filepath.Join for temp dirs
2021-06-02 19:07:53 -04:00
Christopher M. Wolff 251f43a477
build(flux): update flux to v0.117.0 (#21539) 2021-05-24 12:29:28 -07:00