Commit Graph

831 Commits (6210b05c1dd84e54d000bc84105f7118768e58e7)

Author SHA1 Message Date
ebb-tide 3b884cd59e Fix server tests 2018-04-30 17:24:59 -07:00
ebb-tide 9b1cf60a7c Implement Decimal Place Setting 2018-04-30 11:59:14 -07:00
ebb-tide dadd1179a2 Merge branch 'master' into table/field-options 2018-04-24 14:31:27 -07:00
Iris Scholten 20ce9c4c1d Merge pull request #3290 from influxdata/add-pager-duty-v2
Add pager duty v2 in UI
2018-04-24 11:16:00 -07:00
Brandon Farmer fe35f189ed Test & refactor basepath validation into dedicated fn 2018-04-23 17:02:00 -07:00
Jared Scheib 9710854b25 Comment WithContext fn for context 2018-04-23 16:47:35 -07:00
Iris Scholten bb63f3083a Update KapacitorRulesGet test to include PagerDuty2 2018-04-23 14:12:56 -07:00
Iris Scholten c812c0ff84 Merge branch 'master' into add-pager-duty-v2 2018-04-23 14:00:17 -07:00
Jared Scheib 2f573fcafb Clean up regexp guard logic for valid basepath 2018-04-20 19:01:23 -07:00
Jared Scheib ece512c631 Rename PrefixedRedirect to FlushingHandler & comment
It's not clear whether this code is necessary, but investigating
this was outside of the scope of this PR.
2018-04-20 18:40:09 -07:00
Jared Scheib 05128600c6 Refactor interceptingResponseWrite Flusher for clarity
Co-authored-by: Daniel Nelson <daniel.nelson@influxdb.com>
2018-04-20 18:40:09 -07:00
Jared Scheib 5ac2a3c063 Remove basepath var & arg from PrefixedRedirect 2018-04-20 18:40:09 -07:00
Jared Scheib 97c84cbe6e Remove prefix-routes & clean up basepath var and flag use
Now, if basepath is set, it will be prefixed to all routes.
There is no more additional option of prefix-routes.
2018-04-20 18:40:09 -07:00
Jared Scheib 094f96a73b Match basepath against regexp to ensure proper format 2018-04-20 18:40:09 -07:00
Jared Scheib 923d73a418 Fail server if basepath contains trailing or starting '/' 2018-04-20 18:39:49 -07:00
Jared Scheib 14cfc3f95c Fix logout link with basepath
Remove double-prefixing by removing the prefixing
logic of the InterceptingResponseWriter.

Fix the logout link route for its handler to not
include a basepath prefix.

Remove obsolete tests for prefixing redirector.

Co-authored-by: Michael Desa <mjdesa@gmail.com>
2018-04-20 16:58:41 -07:00
Iris Scholten a34085a4b1 Update Swagger with fieldOptions and Timeformat change and precision 2018-04-20 13:41:34 -07:00
Iris Scholten a0adb2e206 Move timeFormat from TableOptions to DashboardCell in the Server
Update tests according to the change
2018-04-19 17:32:28 -07:00
Iris Scholten 8e11d3d057 Update go tests by removing FieldNames from TableOptions and adding FieldOptions to DashboardCell
Add precision to sortBy values
2018-04-18 17:08:26 -07:00
Jared Scheib c22bf61507 Update swagger to include defaultRP
Backfill source fields that were missing to swagger as well.

Co-authored-by: Iris Scholten <ischolten.is@gmail.com>
2018-04-18 12:34:36 -07:00
Iris Scholten 4d847bdae5 Create Test for proxying InfluxDb
Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
2018-04-13 14:34:57 -07:00
Jared Scheib f19dc2a7a9 WIP Test Influx proxy API 2018-04-13 11:22:33 -07:00
Jared Scheib 38adfed496 Test UpdateSource (including defaultRP)
Uses a test server to mock the server responses
necessary for update.

Co-authored-by Iris Scholten <ischolten.is@gmail.com>
2018-04-12 17:54:21 -07:00
Jared Scheib 9030557d58 Include source defaultRP in UpdateSource
Co-authored-by Iris Scholten <ischolten.is@gmail.com>
2018-04-12 16:00:49 -07:00
Iris Scholten 071b595b96 Complete test for get SourcesID
Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
2018-04-11 14:20:02 -07:00
Iris Scholten f54d91200c WIP create test for getting a source with no defaultRP
Co-authored-by Jared Scheib <jared.scheib@gmail.com>
2018-04-11 13:34:58 -07:00
Iris Scholten 68c2c68357 WIP add pagerduty2 to backend 2018-04-09 14:40:05 -07:00
Andrew Watkins 562dc839af Display arguments and thier values
Co-authored-by: Andrew Watkins <andrew.watkinz@gmail.com>
Co-authored-by: Brandon Farmer <bthesorceror@gmail.com>
2018-04-05 10:02:42 -07:00
Jared Scheib 79732a1865 Merge pull request #2832 from influxdata/feature/rest-measurements
Add API for measurements with pagination
2018-04-04 16:55:48 -07:00
Jared Scheib aac6a5c950 Merge branch 'master' into feature/rest-measurements 2018-04-04 16:21:16 -07:00
Jared Scheib 4d85760481 Test Measurements api for 'prev' link when offset > limit 2018-04-04 16:19:54 -07:00
Jared Scheib c672568e91 Remove redundant limit value check from newMeasurementsLinks 2018-04-04 15:33:26 -07:00
Brandon Farmer a39696c549 If a org is missing then don't add it to list
Requests to /me and deleting organization can result in a race condition
2018-04-04 15:25:58 -07:00
Brandon Farmer c2b8b9c51c Only add stateChangesOnly to new rules
- New rules default to a blank id
- Check for blank id before adding stateChangesOnly
2018-04-04 14:26:16 -07:00
Jared Scheib 2fbdf07d8d Rename db & rp vars & url params for clarity & consistency
Updates swagger as well.
Clarify that instead of dbid and rpid, these values are names.
Rename the var for the Databases service to dbsvc.
2018-04-04 14:22:08 -07:00
Jared Scheib fb90faf11b Rename database function arguments for consistency 2018-04-04 13:25:45 -07:00
Andrew Watkins 4438d982aa Merge pull request #3118 from influxdata/bugfix/flash-notifications
Bugfix/flash notifications
2018-04-04 11:13:17 -07:00
Luke Morris 8c50b8a36c Reintroduce :interval: work
This reverts commit c331e0f48e.

:interval: represents a duration now

queryConfig must recognize both :interval: forms

Another case to consider

Fix broken links in CHANGELOG

Rudimentary migration system w/ :interval: migration

Only looking for :interval: now

Server can expect time(:interval:) from now on

Repair go specs
2018-04-03 16:52:34 -07:00
Andrew Watkins e65d2d8b5e Update server tests 2018-04-03 16:38:52 -07:00
Jared Scheib 481d0f4c16 Add swagger docs for new /measurements API, response, & structs 2018-04-03 16:04:16 -07:00
Jared Scheib dffa082d7c Test GetMeasurements overrides offset less than 0 with offset 0 2018-04-03 16:04:16 -07:00
Jared Scheib ff0fb5e321 Test GetMeasurements overrides limit <= 0 with limit 100 2018-04-03 16:04:16 -07:00
Jared Scheib a9e7726591 Test GetMeasurements fails on invalid offset value provided 2018-04-03 16:04:16 -07:00
Jared Scheib 8032cba816 Test GetMeasurements fails on invalid limit value provided 2018-04-03 16:04:16 -07:00
Jared Scheib 805471e95c Test GetMeasurements with no offset or limit 2018-04-03 16:04:16 -07:00
Jared Scheib 8b568356be WIP Test GetMeasurements
Create Databases mocks
Add comments to chronograf.Databases methods
2018-04-03 16:04:16 -07:00
Jared Scheib 61d8a1c975 Change AllMeasurements to GetMeasurements to be precise & update comment 2018-04-03 16:04:16 -07:00
Chris Goller 05b11f8172 Add measurements with pagination 2018-04-03 16:04:16 -07:00
Andrew Watkins d71763234a Introduce /health endpoint 2018-04-03 15:58:33 -07:00
Andrew Watkins 8137ed998f Merge pull request #3112 from influxdata/bugfix/influxdb-delete-user-role
Bugfix: Delete UserRole and handle providing no roles or permissions
2018-04-03 12:02:27 -07:00