Go to file
Mark Rushakoff d73d73c0d4 chore: rename imports from platform to influxdb
I did this with a dumb editor macro, so some comments changed too.

Also rename root package from platform to influxdb.

In interest of minimizing risk, anyone importing the root package has
now aliased it to "platform" so that no changes beyond imports were
necessary in those files.

Lastly, replace the old platform module to local path /dev/null so that
nobody can accidentally reintroduce a platform dependency while
migrating platform code to influxdb.
2019-01-09 20:51:47 -08:00
.circleci chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
.github fix(.github): cleanup the pull request template 2018-12-21 13:37:05 -05:00
bolt chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
chronograf chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
cmd chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
context chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
docker ci(influxd): add influxd to goreleaser 2018-08-31 12:58:21 -05:00
etc chore(Makefile): add target to check generated files are accurate 2018-12-18 12:54:17 -07:00
flux chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
fs chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
gather chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
http chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
inmem chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
internal chore(Makefile): remove yq dependency to generate ts client 2018-12-18 11:19:56 -07:00
kit chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
kv chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
logger chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
mock chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
models chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
nats Ensure error don't end in punctuation: ST1005 2018-11-30 10:54:24 +00:00
pkg chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
prometheus chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
query chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
rand chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
scripts refactor: modify tooling to take advantage of go run 2018-10-15 11:01:27 -05:00
snowflake chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
source chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
storage chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
task chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
telegraf/plugins chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
testing chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
toml chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
tools/tmpl refactor: modify tooling to take advantage of go run 2018-10-15 11:01:27 -05:00
tsdb chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
ui chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
uuid chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
vault chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
write chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
zap chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
.gitignore chore: merge content of original influxdb .gitignore 2019-01-09 20:48:25 -08:00
.goreleaser.yml Remove 32bit architectures from builds 2019-01-08 14:53:33 +00:00
Jenkinsfile update Jenkinsfile 2018-09-06 10:41:23 -05:00
LICENSE Initial commit 2018-05-09 09:17:31 -07:00
Makefile Make client generation optional via ENV variable 2019-01-03 11:33:23 -08:00
README.md docs: don't mention platform in README anymore 2019-01-09 20:48:25 -08:00
auth.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
authz.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
authz_test.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
bucket.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
dashboard.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
dbrp_mapping.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
dbrp_mapping_internal_test.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
dbrp_mapping_test.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
error.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
errors.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
errors.md feat(errors): add errors lib 2018-09-07 21:45:47 -05:00
errors_test.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
example_test.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
go.mod chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
go.sum chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
id.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
id_test.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
keyvalue_log.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
label.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
label_test.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
lookup.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
macro.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
macro_test.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
measurement.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
onboarding.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
operation_log.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
organization.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
paging.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
proto.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
query.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
scraper.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
secret.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
session.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
source.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
status.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
task.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
telegraf.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
telegraf_test.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
token.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
tools.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
usage.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
user.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
user_resource_mapping.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
user_resource_mapping_test.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
view.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
view_test.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00
write.go chore: rename imports from platform to influxdb 2019-01-09 20:51:47 -08:00

README.md

InfluxDB CircleCI

This is the monorepo for InfluxDB 2.0 OSS.

Installation

This project requires Go 1.11 and Go module support.

Set GO111MODULE=on or build the project outside of your GOPATH for it to succeed.

If you are getting an error loading module requirements error with bzr executable file not found in $PATH” on make, brew install bazaar (on macOSX) before continuing.

For information about modules, please refer to the wiki.

Introducing Flux

We recently announced Flux, the MIT-licensed data scripting language (and rename for IFQL). The source for Flux is available on GitHub. Learn more about Flux from CTO Paul Dix's presentation.

CI and Static Analysis

CI

All pull requests will run through CI, which is currently hosted by Circle. Community contributors should be able to see the outcome of this process by looking at the checks on their PR. Please fix any issues to ensure a prompt review from members of the team.

The InfluxDB project is used internally in a number of proprietary InfluxData products, and as such, PRs and changes need to be tested internally. This can take some time, and is not really visible to community contributors.

Static Analysis

This project uses the following static analysis tools. Failure during the running of any of these tools results in a failed build. Generally, code must be adjusted to satisfy these tools, though there are exceptions.

  • go vet checks for Go code that should be considered incorrect.
  • go fmt checks that Go code is correctly formatted.
  • go mod tidy ensures that the source code and go.mod agree.
  • staticcheck checks for things like: unused code, code that can be simplified, code that is incorrect and code that will have performance issues.

staticcheck

If your PR fails staticcheck it is easy to dig into why it failed, and also to fix the problem. First, take a look at the error message in Circle under the staticcheck build section, e.g.,

tsdb/tsm1/encoding.gen.go:1445:24: func BooleanValues.assertOrdered is unused (U1000)
tsdb/tsm1/encoding.go:172:7: receiver name should not be an underscore, omit the name if it is unused (ST1006)

Next, go and take a look here for some clarification on the error code that you have received, e.g., U1000. The docs will tell you what's wrong, and often what you need to do to fix the issue.

Generated Code

Sometimes generated code will contain unused code or occasionally that will fail a different check. staticcheck allows for entire files to be ignored, though it's not ideal. A linter directive, in the form of a comment, must be placed within the generated file. This is problematic because it will be erased if the file is re-generated. Until a better solution comes about, below is the list of generated files that need an ignores comment. If you re-generate a file and find that staticcheck has failed, please see this list below for what you need to put back:

File Comment
query/promql/promql.go //lint:file-ignore SA6001 Ignore all unused code, it's generated