Go to file
Jorge Landivar b0fc331c6d
Merge pull request #1589 from influxdata/bug/1235
remove requestedAt param from retry call
2018-11-30 13:39:50 -06:00
.circleci Use staticcheck on next branch 2018-11-30 10:53:53 +00:00
.github Update PR template to include checkbox for Swagger docs 2018-04-18 12:15:21 -07:00
bolt Revert "Revert "convert /buckets endpoint error to platform error "" 2018-11-30 13:27:40 -05:00
chronograf Address PR feedback 2018-11-30 10:54:24 +00:00
cmd Merge pull request #1589 from influxdata/bug/1235 2018-11-30 13:39:50 -06:00
context chore(context,gather,inmem,kit): fix megacheck errors 2018-11-01 12:54:46 -07:00
docker ci(influxd): add influxd to goreleaser 2018-08-31 12:58:21 -05:00
etc feat: checktidy will check the go.mod and go.sum files in circleci 2018-10-10 15:35:02 -05:00
flux Flux/connections page (#4026) 2018-07-27 10:05:02 -07:00
gather chore(context,gather,inmem,kit): fix megacheck errors 2018-11-01 12:54:46 -07:00
http Merge pull request #1589 from influxdata/bug/1235 2018-11-30 13:39:50 -06:00
inmem Merge pull request #1589 from influxdata/bug/1235 2018-11-30 13:39:50 -06:00
internal feat(cmd/influx): add local flag for operating directly with boltdb 2018-11-02 14:34:48 -04:00
kit Remove use of verbose from control.Config (#1573) 2018-11-26 16:02:41 -07:00
logger refactor: move the logger package from influxdb to platform 2018-10-10 15:49:07 -05:00
mock remove requestedAt param from retry call and refactor TaskService interface 2018-11-30 13:14:21 -06:00
models Address PR feedback 2018-11-30 10:54:24 +00:00
nats Ensure error don't end in punctuation: ST1005 2018-11-30 10:54:24 +00:00
pkg Remove influxdb dependency. 2018-11-29 11:44:22 -07:00
prometheus feat(platform/id): using uint64 for platform.IDs 2018-10-11 09:54:18 -05:00
query the final HT tests 2018-11-30 08:16:13 -08:00
rand fix(rand): rename *_genator.go to *.go 2018-05-16 11:45:13 -04:00
scripts refactor: modify tooling to take advantage of go run 2018-10-15 11:01:27 -05:00
snowflake refactor(id): update name to IDLength 2018-10-11 09:54:19 -05:00
source Update Flux query URL for v1 sources 2018-11-09 09:48:04 -08:00
storage Ensure error strings not capitalised ST1005 2018-11-30 10:54:24 +00:00
task remove requestedAt param from retry call and refactor TaskService interface 2018-11-30 13:14:21 -06:00
telegraf/plugins add toml for telegraf 2018-10-25 21:31:44 -04:00
testing Revert "Revert "convert /buckets endpoint error to platform error "" 2018-11-30 13:27:40 -05:00
toml refactor(toml): copy the toml utility package from influxdb to platform 2018-10-11 12:08:43 -05:00
tools/tmpl refactor: modify tooling to take advantage of go run 2018-10-15 11:01:27 -05:00
tsdb Address PR feedback 2018-11-30 10:54:24 +00:00
ui Improve Clockface Input Component (#1583) 2018-11-30 10:40:56 -08:00
uuid Remove influxdb dependency. 2018-11-29 11:44:22 -07:00
write feat(http): add query plan validation 2018-11-02 09:11:57 -05:00
zap Ensure error strings not capitalised ST1005 2018-11-30 10:54:24 +00:00
.gitignore Add generated API code and use for task creation 2018-11-20 09:49:39 -08:00
.goreleaser.yml remove windows target from goreleaser because a prometheus dependency is causing issues (#985) 2018-10-05 16:23:50 -04:00
Jenkinsfile update Jenkinsfile 2018-09-06 10:41:23 -05:00
LICENSE Move entire codebase into a subdirectory called chronograf 2018-07-19 16:37:21 -04:00
Makefile Add generated API code and use for task creation 2018-11-20 09:49:39 -08:00
README.md Update README 2018-11-30 10:54:24 +00:00
auth.go fix(http): convert auth errors 2018-11-16 19:30:34 -05:00
authz.go fix(platform): keep authorization struct on proxy query request 2018-11-20 15:20:51 -08:00
bucket.go Revert "Revert "convert /buckets endpoint error to platform error "" 2018-11-30 13:27:40 -05:00
dashboard.go feat(platform): add operation log for resources 2018-11-02 14:21:14 -04:00
dbrp_mapping.go Ensure error strings not capitalised ST1005 2018-11-30 10:54:24 +00:00
dbrp_mapping_internal_test.go feat(platform/id): using uint64 for platform.IDs 2018-10-11 09:54:18 -05:00
dbrp_mapping_test.go refactor(testing): rename MustIDFromString to MustIDBase16 2018-10-11 09:54:19 -05:00
error.go feat(errors): add errors lib 2018-09-07 21:45:47 -05:00
errors.go fix(http): convert auth errors 2018-11-16 19:33:20 -05:00
errors.md feat(errors): add errors lib 2018-09-07 21:45:47 -05:00
errors_test.go fix(http): convert auth errors 2018-11-16 19:33:20 -05:00
example_test.go feat(platform): add keyvalue log interface with boltdb implementation 2018-10-31 09:41:55 -04:00
go.mod update to latest Flux 2018-11-30 09:06:49 -07:00
go.sum update to latest Flux 2018-11-30 09:06:49 -07:00
id.go chore: add GoString method to platform.ID 2018-10-31 14:41:47 -07:00
id_test.go chore: add GoString method to platform.ID 2018-10-31 14:41:47 -07:00
keyvalue_log.go feat(platform): add keyvalue log interface with boltdb implementation 2018-10-31 09:41:55 -04:00
macro.go tests(http): add tests for creation without IDs 2018-10-12 10:03:06 +02:00
macro_test.go refactor(testing): rename MustIDFromString to MustIDBase16 2018-10-11 09:54:19 -05:00
measurement.go Initial Retention Service 2018-10-10 15:39:27 +01:00
onboarding.go (feat/testing) add onboarding and basic auth service 2018-11-02 12:20:45 -04:00
operation_log.go feat(platform): add operation log for resources 2018-11-02 14:21:14 -04:00
organization.go tests(http): add tests for creation without IDs 2018-10-12 10:03:06 +02:00
query.go feat(platform): add uniform query endpoint for sources 2018-08-28 15:53:20 -04:00
scraper.go chore(context,gather,inmem,kit): fix megacheck errors 2018-11-01 12:54:46 -07:00
secret.go feat(platform): add secret service interface for managing use secrets 2018-11-15 12:42:01 -05:00
session.go add http for telegraf 2018-10-30 14:00:10 -04:00
source.go Update Flux query URL for v1 sources 2018-11-09 09:48:04 -08:00
status.go docs(http): authorization status is now active or inactive 2018-08-29 13:07:39 -05:00
task.go remove requestedAt param from retry call and refactor TaskService interface 2018-11-30 13:14:21 -06:00
telegraf.go add http for telegraf 2018-10-30 14:00:10 -04:00
telegraf_test.go chore(context,gather,inmem,kit): fix megacheck errors 2018-11-01 12:54:46 -07:00
token.go fix(platform): rename *_generator.go to *.go 2018-05-16 11:45:13 -04:00
tools.go ci: add megacheck to tools.go 2018-11-01 13:25:22 -07:00
usage.go feat(usage): add values and series metrics to usage service 2018-10-22 17:47:04 -05:00
user.go (feat/testing) add onboarding and basic auth service 2018-11-02 12:20:45 -04:00
user_resource_mapping.go fix(platform): use authorizer instead of authorizion for endpoints 2018-11-20 10:56:58 -08:00
user_resource_mapping_test.go refactor(testing): rename MustIDFromString to MustIDBase16 2018-10-11 09:54:19 -05:00
view.go Ensure error strings not capitalised ST1005 2018-11-30 10:54:24 +00:00
view_test.go Add ability to create notes on a dashboard 2018-11-29 16:41:40 -08:00
write.go feat(http): add http write client 2018-10-25 19:11:12 -05:00

README.md

InfluxData Platform CircleCI

This is the monorepo for InfluxData Platform, a.k.a. Influx 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.

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 in this repository under query. 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 Platform 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