Commit Graph

907 Commits (2742c93bdbcacca461477a3a5ad68dda1e0a8800)

Author SHA1 Message Date
Alirie Gray 96f905aacb Simplify Swagger config API & add AuthConfig definition
Co-Authored-By: Jared Scheib <jared.scheib@gmail.com>
2018-06-27 15:17:14 -07:00
Alirie Gray 704807f683 Simplify log viewer UI config models in Swagger
Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
2018-06-27 15:07:17 -07:00
Alirie Gray 16368a6bd9 Add a swagger definition for UI config settings and API Routes
Specifically, this adds a definition for getting and updating
the log viewer UI Settings, i.e. severityColors,
columns, and severityColumnFormat.

Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
2018-06-26 17:12:00 -07:00
Christopher Henn 2841cf902a Remove unused "query" template type 2018-06-20 09:17:12 -07:00
Christopher Henn 59864a36e6 Fix failing template test 2018-06-19 16:37:02 -07:00
Christopher Henn 95a45fda9f Support persisting "influxql" template variables 2018-06-19 16:24:40 -07:00
Iris Scholten 6476e603a3 Update swagger 2018-06-19 14:57:48 -07:00
Iris Scholten 9932764fe2 Add map as a valid type of template variables in api 2018-06-19 14:50:16 -07:00
Jared Scheib d0b36ae5df Allow hyphens and underscores in basepath 2018-06-15 17:05:01 -07:00
Andrew Watkins 1344297421 Change IFQL to Flux 2018-06-05 10:57:19 -07:00
Michael Desa f8a7eff2f0 Use platform query package instead of ifql package 2018-05-31 14:48:27 -04:00
Chris Goller 09e34b08da feat(server/services): add metadata for services 2018-05-21 10:45:28 -07:00
Chris Goller 2765bdc088 feat(server/services): add source id and source link to all services 2018-05-21 10:45:28 -07:00
Chris Goller b3de8947a4 feat(server/services): add generic services scoped under server 2018-05-21 10:45:27 -07:00
Brandon Farmer b0103b14b4 Fix issues with slack multi node
- Alerts not persisting workspace
- Error when saving handler with empty nickname
- Allow users to add multiple empty rules

Co-authored-by: Iris Scholten <ischolten.is@gmail.com>
2018-05-17 11:38:44 -07:00
ebb-tide 7c1e604abe Release 1.5.0.0 2018-05-15 17:36:04 -07:00
Brandon Farmer 8a76ddddbf Don't override name for alert rules 2018-05-14 09:54:57 -07:00
Jared Scheib ebce7346b2 Merge pull request #3386 from influxdata/feature/kapa_kafka_alert_node
Feature/kapa kafka alert node
2018-05-11 11:09:17 -07:00
Brandon Farmer 138b08948b Fixes issue with saving tickscript name 2018-05-10 16:33:42 -07:00
Jared Scheib 3a4ef9c312 Fix kapa test by including kafka alert node 2018-05-10 13:22:29 -07:00
Jared Scheib 0c633c4b0e Update swagger 2018-05-10 13:02:26 -07:00
Jared Scheib 677c9fc597 Add support for Kafka alert node 2018-05-09 16:32:06 -07:00
Iris Scholten db829c7bea 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 675b9a2625 Update url prefixer to ignore svgs
Co-authored-by: Brandon Farmer <bthesorceror@gmail.com>
2018-05-08 13:55:24 -07:00
Iris Scholten 70950a3273 Update swagger with opsgenie2 and pagerduty2 2018-05-08 09:58:50 -07:00
Iris Scholten f16a8ea472 Update chronograf backend with OpsGenie2 2018-05-03 11:00:26 -07:00
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
nathan haugo 1efa7a257c Update for 1.4.3.1 2018-04-02 17:50:32 -07:00
Andrew Watkins 5c38d99549 Fix server validation 2018-04-02 17:09:31 -07:00
Alex P 8b164c98df Merge branch 'master' into moar-colors-n-stuff 2018-04-02 11:51:27 -07:00
ebb-tide b09026c765 Merge branch 'master' into feature/table-graph-polish 2018-03-29 18:56:10 -07:00
ebb-tide 5c0e0e0722 Change swagger a tad 2018-03-29 18:52:35 -07:00
Jared Scheib 810b3a3f9b Merge pull request #2656 from influxdata/swagger-1.4.0.0
Update Swagger for most multiorganization & multiuser changes
2018-03-29 17:01:53 -07:00
Jared Scheib 4879383587 Further disambiguate Invalid JSON vs Invalid data schema 2018-03-29 16:53:13 -07:00
Jared Scheib 2d456e3b70 Update superAdmin description 2018-03-29 16:43:10 -07:00
Jared Scheib 4a440575cc Remove -Chronograf suffix from User & Role 2018-03-29 16:40:35 -07:00
Jared Scheib 8ad6d2b0b1 Add 'InfluxDB-' prefix to User, Role, Permission, & Allowance 2018-03-29 16:39:13 -07:00
Jared Scheib a43040b5e4 Remove obsolete 'public' property from organizations 2018-03-29 16:18:19 -07:00
Brandon Farmer 8de867ba7b Fix tests related to new ifql ast link
Co-authored-by: Brandon Farmer <bthesorceror@gmail.com>
Co-authored-by: Andrew Watkins <andrew.watkinz@gmail.com>
2018-03-29 16:06:10 -07:00
Brandon Farmer 5353c0bb57 Func item triggers a handler when it is clicked
Co-authored-by: Brandon Farmer <bthesorceror@gmail.com>
Co-authored-by: Andrew Watkins<andrew.watkinz@gmail.com>
2018-03-29 16:06:10 -07:00
Andrew Watkins 9da2febb89 Add endpoint for raw string conversion to AST
Co-authored-by: Andrew Watkins <andrew.watkinz@gmail.com>
Co-authored-by: Brandon Farmer <bthesorceror@gmail.com>
2018-03-29 16:04:37 -07:00
Andrew Watkins f6264ffec6 Change /suggestions response format to include params
Co-authored-by: Andrew Watkins <andrew.watkinz@gmail.com>
Co-authored-by: Brandon Farmer <bthesorceror@gmail.com>
2018-03-29 16:03:26 -07:00
Andrew Watkins 049962abda Provide links to ifql api 2018-03-29 16:01:01 -07:00
Brandon Farmer b9995fa0d1 Update revision for ifql and fix tests 2018-03-29 16:01:01 -07:00
Brandon Farmer 5f83bf59ed Add endpoints for ifql function suggestions
Co-authored-by: Brandon Farmer <bthesorceror@gmail.com>
Co-authored-by: Andrew Watkins <andrew.watkinz@gmail.com>
2018-03-29 16:01:01 -07:00
Jared Scheib f228448cfe Correct typo 2018-03-29 15:45:21 -07:00
Jared Scheib 74a9bbfb62 Properly use enums to limit valid role strings 2018-03-29 15:44:04 -07:00
Jared Scheib 04ace1612b Improve descriptions of /organization(s) & /user(s) API 2018-03-29 15:39:20 -07:00
Jared Scheib 6e22264957 Replace multiorganization & multiuser tags with organizations & users 2018-03-29 14:04:39 -07:00
Jared Scheib 614b50be67 Prettier 2018-03-29 14:00:24 -07:00
ebb-tide d5182c7aa5 Update Swagger 2018-03-29 13:25:48 -07:00