Skip to content

Commit

Permalink
chore(bolt): nuke crufty bolt db service
Browse files Browse the repository at this point in the history
kv store is a thing.. use it instead
  • Loading branch information
jsteenb2 committed Dec 30, 2019
1 parent e6f1805 commit 8d6d44a
Show file tree
Hide file tree
Showing 42 changed files with 34 additions and 7,256 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
1. [16345](https://github.com/influxdata/influxdb/pull/16345): Add hide headers flag to influx cli task find cmd
1. [16336](https://github.com/influxdata/influxdb/pull/16336): Manual Overrides for Readiness Endpoint
1. [16347](https://github.com/influxdata/influxdb/pull/16347): Drop legacy inmem service implementation in favor of kv service with inmem dependency
1. [16348](https://github.com/influxdata/influxdb/pull/16348): Drop legacy bolt service implementation in favor of kv service with bolt dependency

### Bug Fixes

Expand Down
8 changes: 0 additions & 8 deletions authorizer/source.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"

"github.com/influxdata/influxdb"
"github.com/influxdata/influxdb/bolt"
)

var _ influxdb.SourceService = (*SourceService)(nil)
Expand Down Expand Up @@ -97,13 +96,6 @@ func (s *SourceService) FindSources(ctx context.Context, opts influxdb.FindOptio
return nil, 0, err
}

// TODO(desa): this is a totaly hack and needs to be fixed.
// Specifically, we need to remove the concept of a default source.
if src.OrganizationID.String() == bolt.DefaultSourceOrganizationID {
sources = append(sources, src)
continue
}

if influxdb.ErrorCode(err) == influxdb.EUnauthorized {
continue
}
Expand Down
Loading

0 comments on commit 8d6d44a

Please sign in to comment.