Commit Graph

2595 Commits (3edd1bf52c09989c2c2cfce8632c2c00aa244794)

Author SHA1 Message Date
Andrew Watkins baf50e09d3 Merge pull request #1118 from influxdata/chore/eslint-fix
);
2017-03-29 13:34:40 -07:00
Chris Goller cd8c1c2a5f Merge pull request #1117 from influxdata/feature/remove-archive
Remove archived enterprise web content
2017-03-29 15:24:59 -05:00
Hunter Trujillo cd8df84db8 The line must be drawn here. This far, no further. 2017-03-29 14:03:52 -06:00
Hunter Trujillo fbd0ee84e3 Ran eslint fix on current codebase. Only file affected was this. 2017-03-29 13:59:32 -06:00
Chris Goller 42d6726235 Remove archived enterprise web content 2017-03-29 14:51:17 -05:00
Hunter Trujillo 1d6bf7e36e Merge pull request #1112 from influxdata/1080-delete_dashboard
Add ability to delete a dashboard
2017-03-29 12:54:23 -06:00
Jared Scheib 36cc368bf1 Auto-dismiss notification 2017-03-29 11:23:46 -07:00
Jared Scheib cb5f6fbdc8 Use try/catch with async/await 2017-03-29 10:55:16 -07:00
Jared Scheib 627d65e39f Use simpler destructuring shorthand 2017-03-29 10:53:44 -07:00
Jared Scheib 7d5799fb9e Merge remote-tracking branch 'origin/master' into 1080-delete_dashboard 2017-03-29 10:51:44 -07:00
Hunter Trujillo ff194026d4 Merge pull request #1108 from influxdata/1107-refactor_delete_row
Refactor and DeleteRow and ConfirmButtons for shared use
2017-03-29 11:45:28 -06:00
Jared Scheib b28bed8e1d Update changelog 2017-03-28 20:09:12 -07:00
Jared Scheib ed564e4ed3 Add tests for deleteDashboard and deleteDashboardFailed 2017-03-28 20:03:33 -07:00
Jared Scheib e8b119f405 Rename action on delete dashboard failed to follow effect style rather than affect 2017-03-28 19:37:35 -07:00
Jared Scheib 6a39277a40 Fix DashboardPage to handle null values for and until loaded 2017-03-28 19:03:15 -07:00
Jared Scheib b9b28da860 Refactor DashboardsPage to load dashboards via action creator and to use mapStateToProps so delete is Reactive 2017-03-28 18:30:34 -07:00
Jared Scheib c2c805a596 DashboardsPage can now delete a dashboard (tho not reflected in UI except on refresh) 2017-03-28 17:51:34 -07:00
Jared Scheib 5b7d6bd0ae Merge remote-tracking branch 'origin/master' into 1107-refactor_delete_row 2017-03-28 16:07:10 -07:00
Jared Scheib 840f8aa472 Rename component to follow convention 2017-03-28 16:06:37 -07:00
Jared Scheib 06117edae3 Share ConfirmButtons among pages 2017-03-28 16:02:49 -07:00
Jared Scheib 1fb2b283da Refactor DeleteConfirmButtons as shared component, compose as DeleteConfirmTableCell, clean up 2017-03-28 15:59:22 -07:00
Hunter Trujillo d2028979b0 Merge pull request #1101 from influxdata/feature/gzipped-influx-responses
Add compression for InfluxQL query responses
2017-03-28 16:23:02 -06:00
Hunter Trujillo c9b29ffb2e Merge commit '52e70c77ff11c4af69bb166c65d9e359454d819e' into feature/gzipped-influx-responses
# Conflicts:
#	CHANGELOG.md
2017-03-28 16:22:28 -06:00
Chris Goller 52e70c77ff Merge pull request #1104 from influxdata/hotfix/windows-hosts
Hotfix/windows hosts
2017-03-28 16:47:39 -05:00
Regan Kuchan ccc1b36671 Merge pull request #1102 from influxdata/rk-nooooo
Update version in installation page
2017-03-28 14:39:38 -07:00
Chris Goller 6b38a79f9b Update CHANGELOG to mention fixing windows hosts on hosts page 2017-03-28 16:20:14 -05:00
Chris Goller b39d5ee4e7 Merge branch 'master' into hotfix/windows-hosts 2017-03-28 16:19:26 -05:00
Chris Goller c2a302c43a Fix host page loading for windows systems 2017-03-28 16:01:11 -05:00
Regan Kuchan 7e0ee9415e Update version in installation page 2017-03-28 13:55:16 -07:00
Regan Kuchan 7ec0190063 Merge pull request #1098 from influxdata/feature/beta7-release-prep
Changelog and known issues from readme update for beta7
2017-03-28 13:07:51 -07:00
Regan Kuchan c23df4db0b Update version to beta7 2017-03-28 13:06:28 -07:00
Regan Kuchan cddf08a385 Remove PR from CHANGELOG 2017-03-28 13:05:45 -07:00
nathan haugo 056853dbac Changelog and known issues from readme update for beta7 2017-03-28 13:04:33 -07:00
Chris Goller 36b7ff597a Merge remote-tracking branch 'origin' into feature/gzipped-influx-responses 2017-03-28 14:40:32 -05:00
Chris Goller 218566b18d Update CHANGELOG to mention InfluxQL compression 2017-03-28 14:38:43 -05:00
Andrew Watkins dfc8a2c1ee Merge pull request #1099 from influxdata/bugfix/delete-database
Bugfix delete database
2017-03-28 12:04:29 -07:00
Andrew Watkins 7ee3130bba Move Header into separate component 2017-03-28 11:44:22 -07:00
Chris Goller f748aa29a5 Add compression for InfluxQL query responses 2017-03-28 13:10:05 -05:00
lukevmorris 1f279584f3 Persist and render Dashboard Cell groupby queries (#1092)
* Rename selectStatement to buildInfluxQLQuery

* Moved `influxql/select` to `utils/influxql`

* Replace `buildQuery` with `buildInfluxQLQuery` util function

* Retain GROUP BY clause when saving cell query

* Revert "Replace `buildQuery` with `buildInfluxQLQuery` util function"

This reverts commit d932d99bfa.

* Build DashboardCell queries with buildInfluxQLQuery util

Retain old LayouRenderer.buildQuery functionality for
canned dashboards, and anything else that isn’t using
the queryConfig schema. Rename this function to make
it clear that it is legacy behavior, and that it 
should not be a dependency of any new code.

* Update CHANGELOG
2017-03-28 11:02:49 -07:00
Alex Paxton ec3ebb855a Merge pull request #1093 from influxdata/ui-polish
Custom Cursors + Other Polish
2017-03-28 10:55:15 -07:00
Chris Goller e6322616fa WIP to get windows hosts working again 2017-03-28 11:11:12 -05:00
Timothy J. Raymond 54dd3e5eee Redirect to default source when deleting sources (#1074)
* Redirect to default source on invalid source ID

When supplied with an invalid source ID, the CheckSources component
would redirect the user to a "Create Source" page. This caused
surprising behavior when a source was deleted because that source ID
would become invalid. The effect being that deleting a source brought
users immediately to the create source page, rather than back to the
sources list.

This instead redirects users to the default source when provided an
invalid source id. The backend automatically re-assigns the "default"
source, so this will always succeed, since sources are fetched again
from the backend.

The regex used is slightly dependent on URL structure that has been
stable over the lifetime of this project. Also it relies on URL
structure more than the previous redirecting implementation.

* Force sources to reload after deletion

Deleting a source invalidates the state held by the client because of
automatic re-assignment of the default source by the backend. Without
duplicating backend logic, it is impossible for the frontend to discover
the new source without reloading sources.

The ManageSources page now uses an async-action creator which deletes
the requested source and reloads all sources. The source action creators
have also been refactored to use implicit returns like other action
creators.

* Remove Dead removeSource action

removeSource is no longer used because the API invalidates its
assumptions. For more information, see 04bf3ca.

* Update Changelog with source deletion redirect fix

Users are no longer unexpectedly redirected to the "create source" page
whenever they delete a source that they are connected to.

* Return 404 when deleting non-existent source

When deleting a source, a new default is assigned automatically. If a
non-existent source ID was provided, previously this would result in a
500. This is a violation of the Swagger docs. The solution is to examine
the error and if it was an ErrSourceNotFound, invoke the notFound
handler.

* Add Error handling to source deletion

There are two kinds of errors that can be encountered when deleting a
source: a 404 and a 500 (from either the delete or the subsequent
fetch).

The 404 is a precondition failure of the action creator. The source.id
requested can be non-existent for two reasons: 1) The action creator was
passed garbage by the caller. 2) A concurrent write occurred which
silently invalidated this session's state. For the first case, we can
ensure that the caller is sane by having an assertion check that the
requested source is among some set of sources. This could be
circumvented by a caller, but chances are good that both the full set of
sources and the desired source are both available to callers of this
action creator. The second case is not an error. In this case, we should
proceed reloading sources, since the deletion that was requested has
already been performed by someone else.

Finally, 500s can only occur if there is something broken with the API.
In this situation, we provide a notification that tells the user to
check the API logs for more information.

* Remove duplicate CHANGELOG entries

These were introduced due to a naive merge conflict resolution.

* Remove assertion

This was decided to be confusing and unnecessary.

* Remove remnants of removed assertion

These were needed for an assertion that has been removed. It's no longer
necessary to pass `sources` to the action creator.
2017-03-28 08:53:11 -07:00
Alex P 3d2563b693 Merge branch 'master' into ui-polish 2017-03-27 19:01:10 -07:00
Alex P b467d53358 Comment out cell dragging css
Going to re-implement later when we have a way to differentiate between
editable and non-editable cells
2017-03-27 18:57:29 -07:00
Alex P 078e72fd78 Make custom cursors slightly smaller and higher contrast 2017-03-27 18:17:48 -07:00
Alex P b1d13d29ff Polish and small refactor of query builder styles 2017-03-27 17:27:52 -07:00
Alex P 65860b3512 Bring the cool edit mode styles out of edit mode
However does need to be scoped to “editable” cells
2017-03-27 17:23:01 -07:00
Andrew Watkins e7e7a45831 Merge pull request #1087 from influxdata/bugfix/1003-hosts-loading-message
Bugfix/1003: Hosts Loading Messaging
2017-03-27 17:14:16 -07:00
Hunter Trujillo 4312297896 No need to coerce a string into another string. 2017-03-27 18:03:06 -06:00
Hunter Trujillo 84fba8a5a0 Merge branch 'master' into bugfix/1003-hosts-loading-message
# Conflicts:
#	CHANGELOG.md
2017-03-27 17:42:57 -06:00