Commit Graph

50 Commits (8ed55e72b85b0807c97d3d1d7d12e9f07c9737e9)

Author SHA1 Message Date
Jeffrey Smith II 090f681737
feat: Add remotes and replications to telemetry (#23456)
* feat: start work on remotes/replications phone home data

* feat: add remotes/replications phone home data (no tests

* refactor: use erroring binary conversions

* style: gofmt

* refactor: improve some error handling

* style: cleanup

* feat: add tests

* refactor: just list remotes/replications rather than decrement

* chore: linting fix

Co-authored-by: DStrand1 <dstrandboge@influxdata.com>
2022-06-16 14:48:06 -04:00
Daniel Moran 0572ae05d2
build: replace cross_build job with parallelized build matrix (#22877) 2021-11-16 14:38:30 -05:00
Daniel Moran 858be90139
fix: regenerate protos using gogo 1.3.2 (#21880)
* Regenerate protos using gogo 1.3.2
* Add protos to generate, add checkgenerate to CI
* Address proto warning
* Add generator tooling to Makefile
* Delete recursive Makefiles, simplify generation run by goreleaser
* Use env bash for fetch-ui-assets
* Add static-data to clean target
2021-07-20 15:11:46 -04: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
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
Daniel Moran 9922863185
fix(tls): Update TLS strict cipher suite to actually work (#20921) 2021-03-16 10:45:27 -04:00
Gershon Shif 5304b77577
chore: remove arm6 from build and add private.key to gitignore (#19748) 2020-10-14 14:02:44 -07:00
Gavin Cabbage 3c6b728702
chore: use go generate to download large tsdb testdata (#18993)
* chore: use go generate to download large tsdb testdata

* chore(gitignore): TSM/TSI verbiage
2020-07-22 11:29:22 -04:00
Gavin Cabbage ef3ee96eea
chore: download tsi1 testdata with go generate (#18972)
* chore: remove tsi1 testdata and add go generate file to download

* chore: fix testdata url and rename gen file

* fix: add testdata generate command to Makefile

* chore: add testdata dir to gitignore

* refactor(tsdb): improve error message when missing testdata

* refactor(tsdb): tagged testdata and avoid stacktrace when missing
2020-07-17 11:31:29 -04:00
Brett Buddin bdf3517249
chore(gitignore): Re-order exclusion patterns.
My original PR influxdata/influxdb#18207 attempted to address the
aggressiveness of our .gitignore matches for known binary names.

Unfortunately, new directories with these names are now being ignored
when they shouldn't (thanks @jsternberg). Upon further investigation, it
looks like the only problematic patterns in the original code were the
plain (non-globbed) patterns like `influxd` and `influxdb`.

Returning the globbed patterns to their original order fixes the problem
while still holding onto the characteristic of being able to see
directories like `cmd/influxd/launcher` via tools that use .gitignore
for exclusion patterns. Below is an overview of how I've verified the
changes.

Regular files matching know binary names should be ignored anywhere in
the tree:

    $ echo "hello" > influxd
    $ echo "hello" > dbrp/influxd
    $ git status
    ## bb/reorder-exclusion

Directories matching known binary names should not be ignored anywhere
in the tree:

    $ mkdir influxd
    $ echo "hello" > influxd/hello.txt
    $ mkdir dbrp/influxd
    $ echo "hello" > dbrp/influxd/hello.txt
    $ git status
    ## bb/reorder-exclusion
    ?? dbrp/influxd/
    ?? influxd/
    $ git status --untracked-files
    ## bb/reorder-exclusion
    ?? dbrp/influxd/hello.txt
    ?? influxd/hello.txt

New files in existing directories matching known binary names should not
be ignored:

    $ echo "hello" > cmd/influx/hello.txt
    $ git status
    ## bb/reorder-exclusion
    ?? cmd/influx/hello.txt

I've also made changes to already indexed files like
`cmd/influxd/launcher/engine.go` and those changes aren't ignored.
2020-06-10 11:27:54 -04:00
Brett Buddin 7a2d7aa65e
chore: Place the negative matches ahead of the matches. 2020-06-08 10:30:16 -04:00
Brett Buddin 9d3a7893b4
chore(gitignore): These are already stated at the top of the file. 2020-06-07 21:49:01 -04:00
Brett Buddin d4bc96343e
chore: Fix gitignore for accidental binary commits.
The current .gitignore patterns for accidental commits of binaries like
influxd and influx are too aggressive. It's common for tooling to use
.gitignore to filter out files from listings.

These rules cause the entire cmd/* directory to be excluded before the
exclusion (!*) rules are applied. Per gitignore manfile:

    An optional prefix "!" which negates the pattern; any matching file
    excluded by a previous pattern will become included again. It is not
    possible to re-include a file if a parent directory of that file is
    excluded.

The result is that any files/packages inside cmd/* directories cannot be found
by tooling  that uses .gitignore for file-filtering.

This adjusts the most permissive of the rules to target project root
only. Files found at other locations in the tree will be ignored
correctly.
2020-06-07 21:49:00 -04:00
David McKay cf93919a88 fix: goreleaser should be ignored from Git
As we now install Goreleaser through official channels, we need to ignore
the file so that its presence isn't picked up as dirty state during a release.
2020-05-26 18:18:31 +01:00
David McKay 876a89a348 feat: add dshell environment for local dev 2020-05-20 13:22:13 +01:00
Michael Desa 26e8ee879c
feat: add tool to migrate 1.x chronograf dashboards and variables
feat(pkger): export dashboard and variable *ToResource methods

fix(pkger): add empty selected _measurement to builder config

feat(chronograf): add note & note visibility to dashboard cell

The 1.x DashboardCell struct had migrated since we brought the code into
the InfluxDB codebase. This allows us to migrate cells that were created
since then.

feat(cmd/chronograf-migrator): add 1.x chronograf migrator tool

feat(chronograf-migrator): add function to transpile queries

fix: update spelling of todo comment pkger/models.go

Co-Authored-By: Deniz Kusefoglu <deniz@influxdata.com>

fix(chronograf): add type to DashboardQuery

The type has evolved since this code was moved over from chronograf.
Previously, we did not have access to flux as a type of query.

feat(chonograf-migrator): transpile influxql query to flux if possible

fix(chronograf): omit fields when empty on old chronograf structs

fix: make linter not mad at me

feat(chronograf-migrator): lowercase variable names

fix(pkger): add empty selected measurement to builder config

chore(chronograf-migrator): add basic readme

chore(pkger): export Variable and Dashboard ToResource methods

fix(chronograf-migrator): move flags out of init call
2020-01-10 09:05:19 -08:00
Andrew Watkins 9e9bb1c755
refactor(ui): normalize organizations (#16377)
* refactor(norm): normalize organizations

* chore: add junit.xml to gitignore

* test(norm): restructure tests to conform to normalized orgs

* fix: set proper org in local storage

* fix: update createTelegraf to use types

* fix: runtime error when adding telegraf configs

* fix: dashboard thunk not using new org shape

* chore: move edit org to correct place

* fix(orgs): faulty reducer logic
2020-01-02 13:03:43 -08:00
Yiqun Zhang 549e3c9eb3 build: using libflux in OSS 2019-12-13 10:43:15 -05:00
Bucky Schwarz c81b758957
feat(ui): add 403 signout handler to new api requests, upgrade to oats 0.5.0 2019-10-16 13:11:51 -07:00
Alex Boatwright a138b8b563
fix(ui): adding coverage to ignore file (#15429)
...because we should try not to check in compiled assets
2019-10-15 16:25:02 -07:00
Johnny Steenbergen eab6241e28 chore: add goland config to gitignore 2019-10-07 14:19:21 -07:00
Andrew Watkins 7d9ec64eec
build(client): generate client on each build (#14591)
* chore: add new types for NotiicationRules

* build(client): remove client and build each build

* chore: update gitignore to exclude generated client

* fix: allow client dir to be empty

* docs: add README to client dir

* fix(build): add autogen client to eslintignore

* build: gen client for ci js tests
2019-08-07 13:42:35 -07:00
Andrew Watkins d457865704
build: remove npm replace with yarn (#14176)
* build: remove npm

* build(yarn): only build silently on prod

* build(yarn): replace npm with yarn in makes and docs

* build: remove mentions of npm

* build: add yarn.lock

* build(yarn): lower minor version requirement

* chore: remove package-lock.json

* chore: add package-lock.json to gitignore

* build(node): allow newer node

* docs: update README.md
2019-06-21 16:19:42 -07:00
Todd Persen cd64ec8718 Fix typos in miscellaneous packages 2019-04-17 13:30:22 -07:00
Mark Rushakoff 7ecb7a23a4 chore: update staticcheck to latest
And fix newly discovered errors.
2019-03-25 10:20:59 -07:00
Mark Rushakoff ec1019b930 chore: add .editorconfig and enable in CI 2019-02-19 16:58:07 -08:00
Michael Desa 6a8a1fce32 feat(kv): implemented key/value store with end-to-end integration tests
* feat(kv:inmem:bolt): implement user service in a kv

* refactor(kv): use consistent func receiver name

* feat(kv): add initial basic auth service

* refactor(passwords): move auth interface into own file

* refactor(passwords): rename basic auth files to passwords

* refactor(passwords): rename from BasicAuth to Passwords

* refactor(kv): copy bolt user test into kv

Co-authored-by: Michael Desa <mjdesa@gmail.com>

* feat(kv): add inmem testing to kv store

* fix(kv): remove extra user index initialization

* feat(kv): attempt at making errors nice

* fix(http): return not found error if filter is invalid

* fix(http): s/platform/influxdb/ for user service

* fix(http): s/platform/influxdb/ for user service

* feat(kv): initial port of telegraf configs to kv

* feat(kv): first pass at migrating bolt org service to kv

* feat(kv): first pass at bucket service

* feat(kv): first pass at migrating kvlog to kv package

* feat(kv): add resource op logs

* feat(kv): first pass at user resource mapping migration

* feat(kv): add urm usage to bucket and org services

* feat(kv): first pass at kv authz service

* feat(kv): add cascading auth delete for users

* feat(kv): first pass d authorizer.OrganizationService in kv

* feat(cmd/influxd/launcher): user kv services where appropriate

* fix(kv): initialize authorizations

* fix(influxdb): use same buckets while slowly migrating stuff

* fix(kv): make staticcheck pass

* feat(kv): add dashboards to kv

review: make suggestions from pr review

fix: use common bucket names for bolt/kv stores

* test(kv): add complete password test coverage

* chore(kv): fixes for staticcheck

* feat(kv): implement labels generically on kv

* feat(kv): implement macro service

* feat(kv): add source service

* feat(kv): add session service

* feat(kv): add kv secret service

* refactor(kv): update telegraf and urm with error messages

* feat(kv): add lookup service

* feat(kv): add kv onboarding service

* refactor(kv): update telegraf to avoid repetition

* feat(cmd/influxd): use kv lookup service

* feat(kv): add telegraf to lookup service

* feat(cmd/influxd): use kv telegraf service

* feat(kv): initial port of scrapers in bolt to kv

* feat(kv): update scraper error messaging

* feat(cmd/influxd): add kv scraper

* feat(kv): add inmem backend tests

* refactor(kv): copy paste errors

* refactor(kv): add code to password errors

* fix(testing): update error messages for incorrect passwords

* feat(kv:inmem:bolt): implement user service in a kv

* refactor(kv): use consistent func receiver name

* refactor(kv): copy bolt user test into kv

Co-authored-by: Michael Desa <mjdesa@gmail.com>

* feat(kv): add inmem testing to kv store

* fix(kv): remove extra user index initialization

* feat(kv): attempt at making errors nice

* fix(http): return not found error if filter is invalid

* fix(http): s/platform/influxdb/ for user service

* feat(kv): first pass at migrating bolt org service to kv

* feat(kv): first pass at bucket service

* feat(kv): first pass at migrating kvlog to kv package

* feat(kv): add resource op logs

* feat(kv): first pass at user resource mapping migration

* feat(kv): add urm usage to bucket and org services

* feat(kv): first pass at kv authz service

* feat(kv): add cascading auth delete for users

* feat(kv): first pass d authorizer.OrganizationService in kv

* feat(cmd/influxd/launcher): user kv services where appropriate

* feat(kv): add initial basic auth service

* refactor(passwords): move auth interface into own file

* refactor(passwords): rename basic auth files to passwords

* fix(http): s/platform/influxdb/ for user service

* fix(kv): initialize authorizations

* fix(influxdb): use same buckets while slowly migrating stuff

* fix(kv): make staticcheck pass

* feat(kv): add dashboards to kv

review: make suggestions from pr review

fix: use common bucket names for bolt/kv stores

* feat(kv): implement labels generically on kv

* refactor(passwords): rename from BasicAuth to Passwords

* test(kv): add complete password test coverage

* chore(kv): fixes for staticcheck

* feat(kv): implement macro service

* feat(kv): add source service

* feat(kv): add session service

* feat(kv): initial port of telegraf configs to kv

* feat(kv): initial port of scrapers in bolt to kv

* feat(kv): add kv secret service

* refactor(kv): update telegraf and urm with error messages

* feat(kv): add lookup service

* feat(kv): add kv onboarding service

* refactor(kv): update telegraf to avoid repetition

* feat(cmd/influxd): use kv lookup service

* feat(kv): add telegraf to lookup service

* feat(cmd/influxd): use kv telegraf service

* feat(kv): update scraper error messaging

* feat(cmd/influxd): add kv scraper

* feat(kv): add inmem backend tests

* refactor(kv): copy paste errors

* refactor(kv): add code to password errors

* fix(testing): update error messages for incorrect passwords

* feat(http): initial support for flushing all key/values from kv store

* feat(kv): rename macro to variable

* feat(cmd/influxd/launcher): user kv services where appropriate

* refactor(passwords): rename from BasicAuth to Passwords

* feat(kv): implement macro service

* test(ui): introduce cypress

* test(ui): introduce first typescript test

* test(ui/e2e): add ci job

* chore: update gitignore to ignore test outputs

* feat(inmem): in memory influxdb

* test(e2e): adding pinger that checks if influxdb is alive

* hackathon

* hack

* hack

* hack

* hack

* Revert "feat(inmem): in memory influxdb"

This reverts commit 30ddf032003e704643b07ce80df61c3299ea7295.

* hack

* hack

* hack

* hack

* hack

* hack

* hack

* hack

* hack

* hack

* hack

* hack

* hack

* chore: lint ignore node_modules

* hack

* hack

* hack

* add user and flush

* hack

* remove unused vars

* hack

* hack

* ci(circle): prefix e2e artifacts

* change test to testid

* update cypress

* moar testid

* fix npm warnings

* remove absolte path

* chore(ci): remove /home/circleci proto mkdir hack

* wip: crud resources e2e

* fix(inmem): use inmem kv store services

* test(dashboard): add first dashboard crud tests

* hack

* undo hack

* fix: use response from setup for orgID

* chore: wip

* add convenience getByTitle function

* test(e2e): ui can create orgs

* test(e2e): add test for org deletion and update

* test(e2e): introduce task creation test

* test(e2e): create and update of buckets on org view

* chore: move types to declaration file

* chore: use route fixture in dashboard tests

* chore(ci): hack back

* test(ui): update snapshots

* chore: package-lock

* chore: remove macros

* fix: launcher rebase issues

* fix: compile errors

* fix: compile errors

* feat(cmd/influxdb): add explicit testing, asset-path, and store flags

Co-authored-by: Andrew Watkins <watts@influxdb.com>

* fix(cmd/influxd): set default HTTP handler and flags

Co-authored-by: Andrew Watkins <watts@influxdb.com>

* build(Makefile): add run-e2e and PHONY

* feat(kv:inmem:bolt): implement user service in a kv

* refactor(kv): use consistent func receiver name

* feat(kv): add initial basic auth service

* refactor(passwords): move auth interface into own file

* refactor(passwords): rename basic auth files to passwords

* refactor(passwords): rename from BasicAuth to Passwords

* refactor(kv): copy bolt user test into kv

Co-authored-by: Michael Desa <mjdesa@gmail.com>

* feat(kv): add inmem testing to kv store

* fix(kv): remove extra user index initialization

* feat(kv): attempt at making errors nice

* fix(http): return not found error if filter is invalid

* fix(http): s/platform/influxdb/ for user service

* fix(http): s/platform/influxdb/ for user service

* feat(kv): initial port of telegraf configs to kv

* feat(kv): initial port of scrapers in bolt to kv

* feat(kv): first pass at migrating bolt org service to kv

* feat(kv): first pass at bucket service

* feat(kv): first pass at migrating kvlog to kv package

* feat(kv): add resource op logs

* feat(kv): first pass at user resource mapping migration

* feat(kv): add urm usage to bucket and org services

* feat(kv): first pass at kv authz service

* feat(kv): add cascading auth delete for users

* feat(kv): first pass d authorizer.OrganizationService in kv

* feat(cmd/influxd/launcher): user kv services where appropriate

* fix(kv): initialize authorizations

* fix(influxdb): use same buckets while slowly migrating stuff

* fix(kv): make staticcheck pass

* feat(kv): add dashboards to kv

review: make suggestions from pr review

fix: use common bucket names for bolt/kv stores

* test(kv): add complete password test coverage

* chore(kv): fixes for staticcheck

* feat(kv): implement labels generically on kv

* feat(kv): implement macro service

* feat(kv): add source service

* feat(kv): add session service

* feat(kv): add kv secret service

* refactor(kv): update telegraf and urm with error messages

* feat(kv): add lookup service

* feat(kv): add kv onboarding service

* refactor(kv): update telegraf to avoid repetition

* feat(cmd/influxd): use kv lookup service

* feat(kv): add telegraf to lookup service

* feat(cmd/influxd): use kv telegraf service

* feat(kv): update scraper error messaging

* feat(cmd/influxd): add kv scraper

* feat(kv): add inmem backend tests

* refactor(kv): copy paste errors

* refactor(kv): add code to password errors

* fix(testing): update error messages for incorrect passwords

* feat(kv): rename macro to variable

* refactor(kv): auth/bucket/org/user unique checks return errors now

* feat(inmem): add way to get all bucket names from store

* feat(inmem): Buckets to return slice of bytes rather than strings

* feat(inmem): add locks around Buckets to avoid races

* feat(cmd/influx): check for unauthorized error in wrapCheckSetup

* chore(e2e): add video and screenshot artifcats to gitignore

* docs(ci): add build instructions for e2e tests

* feat(kv): add id lookup for authorized resources
2019-02-19 17:47:19 -06:00
Chris Goller 5cee9ce38b
Merge pull request #11442 from influxdata/feat/ignore-swagger-gen
chore(gitignore): ignore swagger_gen.go
2019-01-22 20:42:37 -06:00
Michael Desa 31d4e6f5d6 feat(influxdb): add swagger_gen.go to gitignore 2019-01-22 15:41:02 -08:00
Chris Goller 4acb64028c chore(gitignore): ignore swagger_gen.go 2019-01-22 17:04:07 -06:00
AJ Bond cd11b348ed fix(ui): Fix UI generation issues
This issue allows for the ui to be generated during the build proccess
2019-01-15 20:45:38 -05:00
Brandon Farmer cedaffcb5a Stop ignoring ui/src
* this line prevents new files from being added to ui/src
2019-01-10 14:06:26 -08:00
Mark Rushakoff a21a921cae chore: merge content of original influxdb .gitignore
This reduces the likelihood that anyone who previously developed on
influxdb will accidentally check in a file that was generated and
previously ignored.
2019-01-09 20:48:25 -08:00
Brandon Farmer f04d420709 Remove yarn in favor of just npm 2018-11-30 17:02:31 -08:00
Brandon Farmer b4aa8ff1d6 Add generated API code and use for task creation
Co-authored-by: Deniz Kusefoglu <deniz@influxdata.com>
2018-11-20 09:49:39 -08:00
Alirie Gray 4809f00718 Add .DS_Store to .gitignore file 2018-11-19 11:30:26 -08:00
Michael Desa fdbec9303d chore(ui): update misc build files related to moving chronograf/ui to ui 2018-10-29 14:00:45 -04:00
Chris Goller 0ecb5aaefc chore(cmd/influxd): rename idpd to influxd 2018-08-31 12:52:40 -05:00
Christopher Henn bc97ac4344 chore(chronograf): new build configuration 2018-08-29 11:19:22 -07:00
lukevmorris 7e9f90dbce
chore(ci): parallelize js and go tests (#670)
This PR teases apart the golang and js build steps so that they can be run in parallel in circleci, or locally with make test -j2.

Closes #599
2018-08-27 08:34:17 -07:00
Michael Desa 01bde22840 chore(platform): add .vscode to gitignore
Co-authored-by: Andrew Watkins <andrew.watkinz@gmail.com>
Co-authored-by: Michael Desa <mjdesa@gmail.com>
2018-08-07 10:45:13 -04:00
Andrew Watkins 186263fa5e chore(gitignore) add .vs to gitignore 2018-07-24 08:02:51 -07:00
Michael Desa dc7418f7fe makefile: fix make file to run go generate 2018-07-23 17:42:03 -04:00
Nathaniel Cook d1ca38c71f chore(ifql): Rename IFQL to Flux 2018-06-11 09:26:10 -06:00
Nathaniel Cook c2c9e10059 chore(cmd/transpilerd): Add transpilerd to the Makefile 2018-05-30 12:47:10 -06:00
Nathaniel Cook 1e1c6e21e5 chore(idp): Rename cmd/idp to cmd/influx 2018-05-24 11:34:39 -06:00
Nathaniel Cook 08eb19805d chore(CI): Create nightly builds of ifqld
The builds are really anytime a commit is made to master not nightly.
Builds use goreleaser with the snapshot setting.
2018-05-23 09:13:46 -06:00
Nathaniel Cook c8ff490338 chore: Add Makefile 2018-05-22 14:45:23 -06:00
Michael Desa 27cf45a870 dep: update dependencies
dep(platform): update dependencies
2018-05-16 11:45:07 -04:00
Michael Desa eabba6986d migrate(platform): move public dependencies into platform
migrate(context): move context package to platform

migrate(kit/errors): move errors package to platform

migrate(mock): move mock package to platform

migrate(prometheus): move prometheus package to platform

migrate(rand): move rand package to platform

migrate(snowflake): move snowflake package to platform

migrate(testing): move testing package to platform

migrate(zap): move zap package to platform

migrate(http): move http package to platform

migrate(platform): rename base package idpe to platform

git(base): add gitignore

dep: add dependencies

migrate(platform): remove consumer.go

migrate(platform): make secret things private again
2018-05-14 17:12:53 -04:00