davidby-influx
a3fd489864
fix: corrrectly return 4XX errors instead of 5XX errors ( #24519 )
...
HTTP 5XX errors were being returned incorrectly from
BoltDB errors that were actually bad requests, e.g.,
names that were too long for buckets, users, and
organizations. Map BoltDB errors to correct Influx
errors and return 4XX errors where appropriate. Also
add op codes to more errors
2023-12-27 08:21:09 -08: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
Jeffrey Smith II
b87deb49e5
fix: don't allow creating an auth with instance resources ( #23674 )
2022-09-13 11:00:51 -05: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
William Baker
46ade4d94a
fix: auth requests use org and user names if present ( #22272 )
...
* fix: auth requests use org and user names if present
* chore: update CHANGELOG
2021-08-23 09:47:12 -06: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
15b9531273
fix: correct various typos ( #19987 )
...
Co-authored-by: kumakichi <xyesan@gmail.com>
2020-11-11 13:54:21 -05:00
Stuart Carnie
8753a7fd08
chore: Fix invalid string casts from integers
...
Newer Go versions generate a compile time error
2020-09-16 11:55:20 -07:00
Stuart Carnie
057285e23a
Merge remote-tracking branch 'origin/master' into sgc/tsm1
...
# Conflicts:
# query/logging.go
# query/logging_test.go
# query/stdlib/influxdata/influxdb/rules.go
# query/stdlib/influxdata/influxdb/rules_test.go
# query/stdlib/testing/testing.go
# storage/flux/reader.go
# storage/flux/table.gen.go
# storage/flux/table.gen.go.tmpl
# storage/flux/table.go
# storage/flux/table_test.go
2020-08-11 10:25:01 -07:00
George
5cbe74630e
chore(tenant): make tenant and kv both conform with harness ( #19266 )
2020-08-11 15:56:42 +01:00
Stuart Carnie
3d14b1128e
fix: Speed up tests by disabling bolt fsync
2020-08-03 09:20:51 -07:00
Rohan Sreerama
d68c61dcf6
feat(authorization): Added tests for Read, Update, and Delete in Authorization
2020-07-07 16:20:26 -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
Jonathan A. Sternberg
5aeca082c8
chore: update staticcheck and fix newly identified lint checks ( #18737 )
2020-06-26 18:54:09 -05:00
Alirie Gray
5d3b9e2001
refactor: move name lookup to auth http ( #18643 )
2020-06-22 16:14:48 -07:00
Johnny Steenbergen
74b1ab2948
chore(metric): refactor the metric pkg to enable extension of vectors and naming convetions
2020-06-16 12:17:45 -07:00
Alirie Gray
7f4ddabe8a
refactor: add new label package ( #18078 )
2020-05-21 11:30:19 -07:00
Ben Johnson
97960a5930
feat(http): Client disconnections should return a HTTP 499 error code.
...
This commit checks http.Request.Context().Err() to see if the context
has been canceled before writing an error code. It uses the non-standard
Nginx 499 error code for client disconnection.
2020-05-14 14:51:57 -06:00
Alirie Gray
95efdc25df
fix: change logging level to debug to reduce noise ( #18054 )
2020-05-12 10:16:00 -07:00
Alirie Gray
24cc1cabb8
feat: add feature flag for refactored authorization package ( #17944 )
2020-05-08 10:00:39 -07:00
Alirie Gray
2c0916addf
refactor: create new token package ( #17874 )
2020-04-30 07:52:21 -07:00