Commit Graph

835 Commits (71769d67a6cef8811d9689c8cfdab2e64f0baa75)

Author SHA1 Message Date
Iris Scholten d3d209feaf
Merge pull request #3402 from influxdata/bugfix/upload-icon-missing
Upload Icon Appears even with basepath
2018-05-08 14:21:16 -07:00
Iris Scholten 28641e3336 Update url prefixer to ignore svgs
Co-authored-by: Brandon Farmer <bthesorceror@gmail.com>
2018-05-08 13:55:24 -07:00
Iris Scholten 13bf3132f0 Update swagger with opsgenie2 and pagerduty2 2018-05-08 09:58:50 -07:00
Iris Scholten a54e8c76bd Update chronograf backend with OpsGenie2 2018-05-03 11:00:26 -07:00
ebb-tide d26062ee57 Fix server tests 2018-04-30 17:24:59 -07:00
ebb-tide 2cf1e1af4d Implement Decimal Place Setting 2018-04-30 11:59:14 -07:00
ebb-tide 6ecd527f01 Merge branch 'master' into table/field-options 2018-04-24 14:31:27 -07:00
Iris Scholten 558bcaf413
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 2ce7d8e3ee Test & refactor basepath validation into dedicated fn 2018-04-23 17:02:00 -07:00
Jared Scheib 42d912397b Comment WithContext fn for context 2018-04-23 16:47:35 -07:00
Iris Scholten ac8a265a0f Update KapacitorRulesGet test to include PagerDuty2 2018-04-23 14:12:56 -07:00
Iris Scholten e4fe7a6a2a Merge branch 'master' into add-pager-duty-v2 2018-04-23 14:00:17 -07:00
Jared Scheib 58559f3b71 Clean up regexp guard logic for valid basepath 2018-04-20 19:01:23 -07:00
Jared Scheib 9904575680 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 c23d75396f Refactor interceptingResponseWrite Flusher for clarity
Co-authored-by: Daniel Nelson <daniel.nelson@influxdb.com>
2018-04-20 18:40:09 -07:00
Jared Scheib a5adbdfc8d Remove basepath var & arg from PrefixedRedirect 2018-04-20 18:40:09 -07:00
Jared Scheib ece8bad9f0 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 b9f2029bb2 Match basepath against regexp to ensure proper format 2018-04-20 18:40:09 -07:00
Jared Scheib eaefe0da63 Fail server if basepath contains trailing or starting '/' 2018-04-20 18:39:49 -07:00
Jared Scheib 68d9d6610b 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 9181810ed8 Update Swagger with fieldOptions and Timeformat change and precision 2018-04-20 13:41:34 -07:00
Iris Scholten cdb7164df0 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 87ad2278de 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 c9daa0c1d2 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 c56382255e Create Test for proxying InfluxDb
Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
2018-04-13 14:34:57 -07:00
Jared Scheib 91042ef91a WIP Test Influx proxy API 2018-04-13 11:22:33 -07:00
Jared Scheib 3754fa6dfa 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 4d70b5d171 Include source defaultRP in UpdateSource
Co-authored-by Iris Scholten <ischolten.is@gmail.com>
2018-04-12 16:00:49 -07:00
Iris Scholten c3bed99a92 Complete test for get SourcesID
Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
2018-04-11 14:20:02 -07:00
Iris Scholten 8d7107093c 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 3c1f6e6233 WIP add pagerduty2 to backend 2018-04-09 14:40:05 -07:00
Andrew Watkins 7c0fc49225 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 3ffaa55aee
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 207fb0a49b
Merge branch 'master' into feature/rest-measurements 2018-04-04 16:21:16 -07:00
Jared Scheib 78e219b43f Test Measurements api for 'prev' link when offset > limit 2018-04-04 16:19:54 -07:00
Jared Scheib 8f0c5d6055 Remove redundant limit value check from newMeasurementsLinks 2018-04-04 15:33:26 -07:00
Brandon Farmer e447471404 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 5770d5e6f7 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 8ccf582acc 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 982fa38fc1 Rename database function arguments for consistency 2018-04-04 13:25:45 -07:00
Andrew Watkins b127d2d96a
Merge pull request #3118 from influxdata/bugfix/flash-notifications
Bugfix/flash notifications
2018-04-04 11:13:17 -07:00
Luke Morris 9eb7a8cdd4 Reintroduce :interval: work
This reverts commit 4b54081cf8.

: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 8f770c4636 Update server tests 2018-04-03 16:38:52 -07:00
Jared Scheib 0f0e1b60ac Add swagger docs for new /measurements API, response, & structs 2018-04-03 16:04:16 -07:00
Jared Scheib 1a0a02c612 Test GetMeasurements overrides offset less than 0 with offset 0 2018-04-03 16:04:16 -07:00
Jared Scheib e2e0b9749c Test GetMeasurements overrides limit <= 0 with limit 100 2018-04-03 16:04:16 -07:00
Jared Scheib 55e8f5cbd8 Test GetMeasurements fails on invalid offset value provided 2018-04-03 16:04:16 -07:00
Jared Scheib 786d345ee2 Test GetMeasurements fails on invalid limit value provided 2018-04-03 16:04:16 -07:00
Jared Scheib 214c57c5d7 Test GetMeasurements with no offset or limit 2018-04-03 16:04:16 -07:00
Jared Scheib 3727caf5fd WIP Test GetMeasurements
Create Databases mocks
Add comments to chronograf.Databases methods
2018-04-03 16:04:16 -07:00