Commit Graph

32879 Commits (decddb4710b2cbe093550db1da5d8a160a518bb8)

Author SHA1 Message Date
Scott Anderson decddb4710
chore(flux): add flux 0.66 functions (#17741)
* chore(flux): add flux 0.66 functions
* chore(flux): fix syntax issues in flux functions list
2020-04-23 10:54:53 -06:00
Jonathan A. Sternberg d764ca3798
refactor(query): return detailed capabilities for the read window aggregate interfaces (#17836)
This modifies the read window aggregate interfaces to future-proof it
if and when we add additional capabilities to the method. Previously,
the interface was all or nothing. If we modified the RPC call itself, we
would have to make a new interface to denote the change to the Go code.

This changes the interface so now a `WindowAggregateCapability` exists.
This way, we can modify the struct to include things like:

```
type WindowAggregateCapability struct {
    WindowPeriodCapability bool
    MeanAggregateCapability bool
}
```

This way we can learn if the RPC call itself supports some specific
option. If the first iteration doesn't support a mean aggregate or the
mean aggregate is only supported by single server implementations, the
window aggregate can tell the caller that it won't be able to compute
the mean aggregate.

Since it fills in a struct with these capabilities, the struct can
safely introduce new values. If a downstream consumer wants to take
advantage of that functionality, then all interfaces in the chain have
to be updated to consume the upstream capabilities.
2020-04-23 10:22:33 -05:00
Lyon Hill 29918a45df
fix(tenant): Allow tenant to update user and org with same name (#17833)
This will allow us to match the existing behavior that allows for update requests to go through with the same name.
2020-04-23 08:33:03 -06:00
Lyon Hill 50b51e14b3
fix(delete): fix delete handler to add org filter for bucket lookup (#17834) 2020-04-23 08:32:50 -06:00
Johnny Steenbergen d82aa62fff feat(pkger): extend store to support associations
references: #17434
2020-04-22 16:50:40 -07:00
Ariel Salem a1d1a67a1b
feat(SignUpForm): Removed sign-up functionality since it's no longer relevant (#17841) 2020-04-22 14:37:48 -07:00
Jonathan A. Sternberg 58522d1190
feat(query): implement the ReadWindowAggregateSource (#17839)
The `ReadWindowAggregateSource` will invoke the `ReadWindowAggregate`
method on the `influxdb.Reader` and return the table. It is implemented
using the same common methods that are used for the other sources.
2020-04-22 16:07:45 -05:00
Lyon Hill 60c3af7929
fix(tenant): include pagination options in middlewares (#17835) 2020-04-22 14:31:56 -06:00
Brandon Farmer e29a2c78de
Merge pull request #17837 from influxdata/tag-key-completion
feat: integrate tag key completion in ui
2020-04-22 13:13:03 -07:00
Deniz Kusefoglu 5a663ead25
feat(demodata): polish (#17838)
* feat(demodata): Add flexbox around label

* feat(demodata): Change website monitoring bucket name
2020-04-22 12:32:01 -07:00
Yiqun (Ethan) Zhang 52dc494edb
feat(query): add ReadWindowAggregatePhysSpec (#17824) 2020-04-22 13:53:59 -05:00
Brandon Farmer 5fe4520f4f feat: integrate tag key completion in ui 2020-04-22 11:25:27 -07:00
Alex Boatwright f5d19c1a26
fix: backfilling views and cells when we grab dashboards (#17822) 2020-04-22 10:39:52 -07:00
Alex Boatwright aa940a9739
fix: reapply new flux result parser (#17757)
now its behind a flag
2020-04-22 09:49:22 -07:00
Ariel Salem 960ec964f6
fix(Logout): Reverted the Logout component functionality to maintain the original IDPE-based logout (#17830)
fix(package.json): Updated the cloud-dev command to have the CLOUD_URL land on the same default port as Quartz

Co-authored-by: Iris Scholten <ischolten.is@gmail.com>
2020-04-22 09:42:39 -07:00
George e150377f48
revert(tenant): integrate the tenant service as the default backend (#17805) (#17832)
This reverts commit 79e9de93cb.
2020-04-22 17:23:17 +01:00
Johnny Steenbergen 653a53fa9b chore(influx): tidy up print summary statements to include pkg names 2020-04-21 16:50:08 -07:00
Johnny Steenbergen 47e5facc81 feat(pkger): add stateful management for telegraf configs 2020-04-21 15:47:49 -07:00
Johnny Steenbergen f518b2d075 chore(telegraf): remove business logic check inside TelegrafConfig type's unmarshal method 2020-04-21 15:47:49 -07:00
Alex Boatwright ee39940a5e
fix: catch date format issue in table view type (#17823) 2020-04-21 15:42:14 -07:00
Lyon Hill 79e9de93cb
feat(tenant): integrate the tenant service as the default backend (#17805) 2020-04-21 13:43:56 -06:00
Jonathan A. Sternberg 60c58ad805
feat(query): add interface for the window aggregate capability (#17801)
Added an interface for an additional storage capability. This interface
will allow for checking if the reader supports the window aggregate call
and another method for invoking the call if it does.

This is implemented using a single interface. If the reader implements
the interface, it indicates that the client is capable of reading the
response. The `HasXXX` method is intended to check if the store supports
the operation. This method also takes a context because it could require
a remote call or to wait for one.
2020-04-21 14:15:38 -05:00
Gershon Shif fd76f14209
chore(build): start running nightly builds 2hour earlier (#17818)
It was a request from boonito QA to start running nightly builds 2 hours earlier, instead of 7am UTC to start running nightly builds at 5am UTC (10pm PDT) to give them time to debug test failures.
2020-04-21 10:40:17 -07:00
Johnny Steenbergen 43b7d65d02 feat(influx): extend CLI org type to support config orgs in global config 2020-04-21 10:25:05 -07:00
Johnny Steenbergen 5cd57d4f1e fix(influx): make CLI respect root token and host env vars in additionn to config
one thing to note here is we are deleting the default value on the host
flag when it is registered. The config is the fallback and has the default
value set. If the host flag has a default, the determination if the user
set it or not is ambiguous. We can't have that.

closes: #17812
2020-04-21 10:25:05 -07:00
Johnny Steenbergen 596d8fde45 feat(pkger): add stateful management for tasks
notes on this commit. This commit was grueling ;-(. The task API is not a friendly
API to consume. There are a lot of non obvious things going on and almost every
one of them tripped me up. Things of note:

* the http.TaskService does not satisfy the influxdb.TaskService,
  making it impossible to use as a dependency if tasks service gets
  split out
* the APIs for create and update do not share common types. For example:
  creating a task takes every field as a string, but in the update it is
  taken as a options.Duration type. A step further and you'll notice that
  create does not need an option to be provided, but the update does. Its
  jarring trying to understand the indirection here. I struggled mightily
  trying to make sense of it all with the indirection and differing types.
  Made for a very difficult task (no pun intended) when it should have been
  trivial. Opportunity here to fix these up and make this API more uniform
  and remove unneccesary complexity like the options type.
* Nested IDs that get marshaled, are no bueno when you want to marshal a task
  that does not have an ID in it, for either user/org/or self IDs. Its a challenge
  just to do that.
* Lots of logs in the kv.Task portion where we hit errors and log and others where
  we return. It isn't clear what is happening. The kv implementation is also very
  procedural, and I found myself bouncing around like a ping pong ball trying to
  make heads or tails of it.
* There is auth buried deep inside the kv.Task implementation that kept throwing me
  off b/c it kept throwing errors, instead of warns. I assume, not sure if I'm
  correct on this, but that the stuff being logged is determined inconsequential
  to the task working. I had lots of errors from the auth buried in there, and hadn't
  a clue what to make of it....

leaving these notes here as a look back at why working with tasks is so
difficult. This API can improve dramatically. I spent 5x the time trying
to figure out how to use the task API, in procedural calls, than I did
writing the business logic to consume it.... that's a scary realization ;-(

references: #17434
2020-04-21 09:14:20 -07:00
Johnny Steenbergen d1af15c399 chore: remove extranenous fields on http.Task type
also drops a skipped test that has been skipped for over a year. Tried
unskipping it, but now it fails for all sorts of reasons, without the
race flag enabled.
2020-04-20 15:34:58 -07:00
Paul Hummer 64a3f97eaa
Merge pull request #17802 from rockstar/flux-staging/v0.66.0
chore: update flux 0.66.1
2020-04-20 15:12:15 -06:00
Johnny Steenbergen c483aec2d2 feat(pkger): add stateful management for dashboards 2020-04-20 14:04:45 -07:00
Johnny Steenbergen e5e5500401 feat(dashboards): extend dashboard update API to take cells as a put doc operation 2020-04-20 14:04:45 -07:00
Ben Johnson 69fe9ed1ba
Merge pull request #17769 from patriczek/iss17257
fix: Migrated bucket should have correct retention policy.
2020-04-20 13:40:15 -06:00
Patrik Helia 07c89c9188 Fix fmt and reduce code
Signed-off-by: Patrik Helia <patrik.helia@kiwi.com>
2020-04-20 21:25:38 +02:00
Paul Hummer 724e624970 chore: update flux 0.66.1 2020-04-20 12:36:53 -06:00
Ariel Salem 615fa1c813
feat(SigninPage): Updated the Signin checkSession to correspond to API changes (#17772)
* feat(ui): get type from clientConfig to send with authorization request

* feat(LoginPageContents): Updated the LoginPageContents error when trying to log-in with the wrong username/password combo

* revert(Signin): Removed the checkSession logic from the UI to reduce overall authentication complexity. Since redirecting to the /login page will now happen from the API, we no longer need to worry about validating a user session from the UI

Co-authored-by: Iris Scholten <ischolten.is@gmail.com>
2020-04-20 08:54:11 -07:00
Alex Boatwright e09e073acd
fix: allow dev mode with ingress prefixes (#17788) 2020-04-17 14:48:30 -07:00
Johnny Steenbergen 8251c362ee chore(pkger): refactor parser notification rule state out into stateful type
this PR also drops a bunc of dead code that was necessary for times of integration.

references: #17434
2020-04-17 14:02:29 -07:00
Stuart Carnie 602d56f763
Merge pull request #17745 from influxdata/sgc/issues/17449
feat(storage): New data types for measurement schema gRPC APIs
2020-04-17 12:44:25 -07:00
alexpaxton 4fec6a3ae0
chore(ui): upgrade to Clockface 2.1.0 (#17767)
* chore: upgrade clockface dependency

* fix: update all instances of ResourceCard to match the new API

* fix: bandaid style for spacing in resource lists

* fix: make dashboard grid align with page

* fix: update card selectors labels e2e test

* fix: update meta item selector in buckets e2e test

* fix: ensure popover is dismissed and doesn't obscure other check card items

* fix: update selector in dashboard card interaction test

* fix: pass in meta items as children instead of an array to avoid map key issues

* refactor: ensure meta items are composed instead of passed in as an array

* fix: cleanup
2020-04-17 12:07:25 -07:00
Brandon Farmer 3b330f6355
Merge pull request #17786 from influxdata/measurement-completion
feat: ui measurement completion
2020-04-17 11:34:27 -07:00
Brandon Farmer 6633641d48 feat: ui measurement completion 2020-04-17 11:11:34 -07:00
Stuart Carnie c76f30682c
fix(storage): Feedback in response to PR review
* Adds clarifying documentation
* Regenerate protocol buffers with updated documentation
2020-04-16 15:19:28 -07:00
Stuart Carnie 6325591deb
feat(storage): New data types for measurement schema gRPC APIs
This commit

* adds new request and response data types for schema gRPC calls
* adds fmt.Stringer implementation to cursors.FieldType
* adds APIs to sort a slice of MeasurementField values,
* upgrades the gogo protobuf package to v1.3.1, which
  includes improvements to serialization.
2020-04-16 14:51:31 -07:00
Stuart Carnie 0d998c269a
chore(storage): Fix code documentation comments 2020-04-16 14:51:31 -07:00
Stuart Carnie 69820c08a4
feat(tsdb): Add maximum timestamp to MeasurementField
This is require in order to correctly merge results from multiple
sources.
2020-04-16 14:51:30 -07:00
Johnny Steenbergen 9495ec1c4e chore(testtp): extend testtp request with SetFormValue 2020-04-16 14:39:07 -07:00
Johnny Steenbergen 21694416a3 chore(pkger): refactor parser dashboard state out into stateful type
references: #17434
2020-04-16 13:27:36 -07:00
Patrik Helia 7ce7e62f60 fix: Migrated bucket should have correct retention policy.
Signed-off-by: Patrik Helia <patashelia@gmail.com>
2020-04-16 21:35:48 +02:00
Johnny Steenbergen f084a93fa2 chore(pkger): refactor parser telegraf config state out into stateful type
references: #17434
2020-04-16 12:05:07 -07:00
Lyon Hill c02e83038f
fix: org filtering for both kv and tenant need to match behaviors. (#17758) 2020-04-16 12:22:21 -06:00
Johnny Steenbergen da2cf7e94a chore(pkger): refactor parser task state out into stateful type
references: #17434
2020-04-16 10:06:44 -07:00