Commit Graph

32167 Commits (3139b0424a604c866162be0ac3f44e4e48a3142c)

Author SHA1 Message Date
Andrew Watkins e092e52a6f
refactor: normalization authorizations (#16406)
* chore: alphabetize root reducer

* refactor(norm): normalize authorizations (tokens)

* refactor: orgs use immer and reducer helpers

* fix: provide initial state to orgs reducer

* fix(auth): normalize auths on token creation

* fix: initial state with empty object
2020-01-06 11:24:45 -08:00
Jonathan A. Sternberg 9194d89bbc
feat(query/stdlib): prevent a filter push down if the filter needs to keep empty tables (#16295)
The storage engine isn't capable of sending back empty tables when a
series is empty. Because of this, we disable the push down and let flux
do the filtering in the case where there is a filter and it is specified
to keep the empty tables.
2020-01-06 12:23:31 -06:00
Ariel Salem 96dcdb0677
fix(ui): removed buildActiveQuery func to prevent queries from being reset when timeranges are selected. (#16404)
fix(ui): removed buildActiveQuery func to prevent queries from being reset when timeranges are selected. Fixed broken test that was being skipped
2020-01-06 08:53:13 -08:00
Bucky Schwarz 138caab0a2 test: fix flaky explorer tests by targeting .CodeMirror and not force typing 2020-01-03 14:57:34 -08:00
Andrew Watkins cc88a366ee
refactor(ui): normalization of buckets (#16403)
* feat(norm): separate action creators and thunks

* feat(norm): wip normalize buckets

* refactor(norm): change consumption of buckets to norm shape

* test(ui/getResources): change test to accept norm shape

* test(buckets): fix runtime error

* refactor: use immer produce in members reducer
2020-01-03 14:18:49 -08:00
Bucky Schwarz aa48c4397e chore: upgrade cypress 2020-01-03 11:56:40 -08:00
Jade McGough 79ab5e5e59
fix(pkger): don't swallow errors when failing to get organization (#16397) 2020-01-03 01:22:54 -08:00
Ariel Salem 2965dab67c
Revert "chore(ui): refactored variables client API to oats generated types and API (#16391)" (#16394)
This reverts commit e5c171c2dc.
2020-01-02 16:43:22 -08:00
Ariel Salem e5c171c2dc
chore(ui): refactored variables client API to oats generated types and API (#16391)
chore(ui): refactored variables client API to oats generated types and API
2020-01-02 15:52:37 -08:00
Randy Coulman 17634dff23
feat(bucket): Increase default retention to 30 days (#16389)
* feat(bucket): Increase default retention to 30 days

* chore: Update PR number in changelog
2020-01-02 14:29:03 -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
Alirie Gray 6c6bd39ffc
refactor(tasks): remove dead scheduler code (#16252) 2020-01-02 11:41:21 -08:00
Jacob Marble 047afcfc10
fix(tests): make sure NATS port is open for unit tests (#16310)
* fix(tests): make sure NATS port is open for unit tests

Fixes #10628 again

* chore: add comment re possible race
2020-01-02 11:05:56 -08:00
Timmy Luong 8780bd23a8
fix(ui): extend the y-axis when stacked line option is selected (#16376)
* fix(ui): extend the y-axis when stacked line option is selected

* chore: update CHANGELOG
2020-01-02 10:12:45 -08:00
Johnny Steenbergen b6308ba07c chore(kv): refactor kv.Entity to provide interface for PK and unique keys 2020-01-02 08:05:45 -08:00
Johnny Steenbergen 77dd06bc5e fix: enable skipped tests for notification rules and fixup issue in tag matcher 2020-01-02 07:16:03 -08:00
Deniz Kusefoglu acf73dfdd4
feat(ui): Add matching rules card to alert builder (#16014)
* feat(ui): Add matching rules card to alert builder

* feat(checks): Add tags from query results to NR matching query parameters

* feat(ui): Update changelog

* feat(nr): Change api function to match import convention

* fix(ui): Fix changelog update mistake

* Click submit button after typing in time machine

* feat(notification rules): Add feature flag to matching notification rules
2020-01-02 12:05:14 +00:00
Edd Robinson 5a179b1f95
Merge pull request #16265 from influxdata/er-dump-wal-pred
feat: add predicate output to WAL dump tool
2020-01-02 11:46:57 +00:00
Deniz Kusefoglu 219d73bf60
fix(notificationrules): Correct logic on matching notification rules (#16328)
* fix(notificationrules): Correct logic on matching notification rules

* feat(nrs): Add more tests
2019-12-31 23:44:27 +00:00
Ariel Salem cffcdf3519
chore(ui): label client refactor complete (#16361)
Chore(ui): label client refactor complete
2019-12-31 14:23:57 -08:00
kelwang 7eb04a0690
Merge pull request #16374 from influxdata/cli_usage_fix
fix(cmd/influx): show see help, instead of usage
2019-12-31 16:15:24 -05:00
Johnny Steenbergen 0dfc163dae chore(kv): refactor kv checks service to take advantage of new index store 2019-12-31 13:13:38 -08:00
Johnny Steenbergen 370e533901 fix(kv): fixup the filtering for index store
was not correctly using the filterFn
2019-12-31 13:13:38 -08:00
Deniz Kusefoglu fcc39e371f
feat(checks): Add custom check type (#16350)
* feat(checks): Add custom check type

* feat(checks): Remove alert builder from custom check

* feat(checks): Add AlertBuilderAction to list of possible actions

* feat(checks): Query visualization does not make sense for custom check

* feat(check): check editor should only reexecute queries if view query changes

* Update ui/src/timeMachine/components/TimeMachineFluxEditor.tsx

Co-Authored-By: Bucky Schwarz <hoorayimhelping@users.noreply.github.com>

* Address PR review

Co-authored-by: Bucky Schwarz <hoorayimhelping@users.noreply.github.com>
2019-12-31 20:21:48 +00:00
Ariel Salem 18d2bf6d12
chore(ui): refactored tasks to use oats rather than client library (#16353)
chore(ui): refactoring tasks to use oats rather than client, need to finish tasks actions
2019-12-31 12:14:51 -08:00
Kelvin Wang f8c0ea032c fix(cmd/influx): show see help, instead of usage 2019-12-31 14:52:55 -05:00
Johnny Steenbergen 4fb855feff fix(kv): add legacy variable orgs index back
issue here is that the unique by name index for variables was implemented
and has the same functionality about it that this orgs index has. The duplicative
orgs index was nuked. The migration to hydrate the org/name index never
happened. This is a stop gap until that migration is in place.
2019-12-31 10:58:15 -08:00
Andrew Watkins a926700965
refactor(ui): normalize member resource (#16366)
* refactor(norm): add member schema

* refactor(norm): set members

* refactor(norm): add and delete members
2019-12-31 10:43:35 -07:00
Greg b2531c1f97
fix: improve date in `version` command (#16365)
set date in go like a sane person
2019-12-30 17:56:58 -07:00
Johnny Steenbergen e79771fdcc chore(kv): refactor new unique by store up into reusable store that composes into uniq by store 2019-12-30 16:44:57 -08:00
Johnny Steenbergen 5a6bda238c chore(kv): refactor variable service to use the new uniqByNameStore type 2019-12-30 16:44:57 -08:00
Johnny Steenbergen 300d89887d chore(kv): refactor notification endpoint to use reusable uniqByNameStore
this is work moving us towards more reusable components that add some
rigidity around handling indexes and the entity bucket. The behavior
is very common across much of the kv pkg. This can be reused throughout.
adding some easy wins for tracing(eventually metrics) that enable more
insight that what is currently possible. It normalizes these concerns
across the kv store.
2019-12-30 16:44:57 -08:00
Johnny Steenbergen fb325fbc10 chore(kv): drop duplicative tests 2019-12-30 16:27:36 -08:00
Greg 56973b8dc5
fix: add 'version' command to match github bug report template (#15629) 2019-12-30 12:53:52 -07:00
Johnny Steenbergen 8d6d44ac79 chore(bolt): nuke crufty bolt db service
kv store is a thing.. use it instead
2019-12-30 11:19:48 -08:00
Johnny Steenbergen e6f1805e5e chore(inmem): nuke the duplicative inmem store
use kv store... its a thing
2019-12-30 11:04:45 -08:00
Brett Buddin a2071478c8
Merge pull request #16336 from influxdata/ready-manual-override
feat(kit/check): Manual Overrides for Readiness Endpoint
2019-12-30 10:06:31 -05:00
Brett Buddin c42a232545
chore(kit/check): Add new readiness override to CHANGELOG. 2019-12-30 09:42:59 -05:00
Brett Buddin b4703566a8
feat(kit/check): Adds manual override capabilities to readiness endpoint.
With `/health`, it is possible to override the overall status reported.
This change adds the same functionality to `/ready`. This allows
incident responders to take an unhealthy pod out of a service without
killing it—giving them time to gather meaningful forensic data from the
pod. The new contract is:

Force not ready:

    GET /ready?force=true&ready=false

Force ready:

    GET /ready?force=true&ready=true

Disable override:

    GET /ready?force=false
2019-12-30 09:42:31 -05:00
Johnny Steenbergen 0dc5c2af92 feat(pkger): fixup flux query normalization in exporting of task 2019-12-27 15:16:48 -08:00
Johnny Steenbergen f1b5e19776 feat(influx): add hide headers flag to influx cli task cmd 2019-12-27 14:41:55 -08:00
Johnny Steenbergen 5bdcfaee4d fix(pkger): make pkger skip system tasks when exporting all tasks 2019-12-27 14:26:18 -08:00
Andrew Watkins fa3009d2f4
chore(redux-thunk): fix typings (#16335)
* chore(redux-thunk): fix typings

* chore: lower react-redux version

* chore(eslint): turn off thenable rule
2019-12-27 14:01:16 -08:00
Ariel Salem 7e23c828e9
feat(ui): added last run status to tasks (#16340)
feat(ui): added last run status to tasks
2019-12-27 13:21:04 -08:00
Johnny Steenbergen cce279a80e feat(pkger): add ability to provide secrets alongside package when applying
this provides the ability to add secret refs at runtime instead of adding
them to the pkg.
2019-12-27 12:41:42 -08:00
Ariel Salem 79c5c79286
feat(ui): added notification rule & checks last run status & error (#16338)
feat(ui): added last run status checks for notification rules and check rules, readded updateCheck to fix linter and functionality issues with program and added tests to ensure check creation and update stability
2019-12-27 10:14:34 -08:00
Johnny Steenbergen 33756ca7a8 fix(pkger): remove tasks created by checks from being exported when exporting by org 2019-12-27 09:36:23 -08:00
Deniz Kusefoglu 142fbcbb3f
feat(ui): Show users saving errors from check time machine (#16333) 2019-12-27 02:05:08 +00:00
Bucky Schwarz dd41af3d7a feat: Add group() to Query Builder 2019-12-26 17:02:41 -08:00
Johnny Steenbergen 5569193116 fix: add custom marshaler to dashboard builder config to stop breaking all external api clients with nil vals 2019-12-26 14:53:14 -08:00