Commit Graph

302 Commits (50d881ac70476c39418916f575c93a2f7825795a)

Author SHA1 Message Date
Iris Scholten 5115770edc Add Version to Source struct
Co-authored-by: Michael Desa <mjdesa@gmail.com>
2018-09-27 14:07:15 -07:00
Alirie Gray 246c6f15c7
Add type property to queries (#4458)
* Add type property to CellQuery model

* Make an enum for QueryType

* Add type property to Query model on backend

* Add query type checking to CEO reducer and Layout

* Update swagger.json docs
2018-09-14 16:24:17 -07:00
Deniz Kusefoglu f19323e74c Add suggestprotoboards function at dashboard step
Prevent dashboard cell axis overwriting if Bounds is empty
Add measurements field to protoboards meta
Correct comment on protoboardsStore
Add styling and copy polish to wizards
Update Protoboards to include meta.measurements
Refactor protoboard suggestion
Update Wizard tests to incorporate capitalizations
Add types to protoboardsSuggestion
Fix go tests
2018-09-06 15:51:40 -07:00
Alex Paxton fc9cd71939
Introduce Cell Notes & Note Cells (#4257)
* feat: add Note string field to dashboard cells

* wip feat: html escape cell note to help prevent XSS attack

Requires further input to make sure this is effective at its
purpose.

* Add ability to view a cell's note from the cell header

* Make styles less brittle

* Add "chat" icon for use in notes

* Position note using cell X & Y

Avoid overlap with associated cell whenever possible

* New notes are empty strings by default

* Overflow note when contents are large

* Add react-markdown package for displaying markdown

* Display markdown in cell note

* Add a cell note text editor into the CEO

* Improve cell note editor

* Use codemirror placeholder addon

* Add placeholder to note field & foundation of markdown theme

* Add Markdown Cell

* Add initial styles for markdown cell contents

* Add graphic for Note type cell

* feat: add NoteVisibility to DashboardCell

* Add basic markdown syntax highlighting in editor

* Remove comment

* Show note in cell when queries return no data

* Make exception for rule graph

* Update fixtures and resources to fix tests

* Update changelog

* feat: sanitize xss-vulnerable note html

* Polish appearance of code samples in notes and note cells

* Replace ascii with plaintext before passing to markdown renderers

* Move "display when no results toggle" above text field

Less likely to go undiscovered
2018-08-23 14:41:40 -07:00
Michael Desa b1c02b9b95 review(chronograf): make changes suggested in pr 2018-07-18 10:39:05 -04:00
Michael Desa d14b1905cd feat(bolt): add boltdb implementation of dashboard service 2018-07-18 10:39:04 -04:00
Iris Scholten a3f6d2ac40 Change default Decimal Places to enforced with a value of 2 2018-07-17 16:21:31 -07:00
Michael Desa aa06178002 review: make changes suggested in review 2018-07-16 11:37:20 -04:00
Michael Desa 0c00a9ec3f feat(bolt): clean up comments in bolt and fix ids 2018-07-16 11:25:15 -04:00
Michael Desa 3ccb4f178a feat(bolt): implement cell service on bolt client 2018-07-16 11:25:15 -04:00
Alirie Gray 0f810debcb Rename org config method Update to Put for semantic accuracy
Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
2018-07-10 15:42:44 -07:00
Alirie Gray 874110bd5e Rename org config receivers and function params to be more conventional
Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
2018-07-10 15:32:23 -07:00
Alirie Gray f2a171d72b Add default colors to default organization config
Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
2018-07-10 12:19:37 -07:00
Alirie Gray 803c1dbbe3 Move nil config guard to helper update method
Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
2018-07-10 11:41:30 -07:00
Alirie Gray 251d15672b Guard against length-0 slice in org_config get and FindOrCreate methods
Added ErrOrganizationConfigNotFound error
Refactored FindOrCreate to use helper get method
Ensure that FindOrCreate creates a new org config if config not found
and returns any other errors

Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
2018-07-10 11:41:06 -07:00
Alirie Gray 7023b8d150 Fixed whitespace for Config in internal.proto
Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
2018-07-10 10:56:50 -07:00
Jared Scheib ef3741cdc8 Fix FindOrCreate persisting OrganizationConfig to bolt
Add get/update helper methods for OrganizationConfig in bolt.

Co-authored-by: Alirie Gray <alirie.gray@gmail.com>
2018-07-09 17:37:30 -07:00
Jared Scheib e0faf48830 Remove unnecessary panic guards on unmarshal org config
Co-authored-by: Alirie Gray <alirie.gray@gmail.com>
2018-07-09 17:37:30 -07:00
Jared Scheib ae475c7ae8 Add OrganizationConfigStore & refactor org config to be per org
As previously implemented, OrganizationConfig was a global
object. This refactor adds the organization id to context for
every request, even when auth is disabled, so that org id
can be used to get/update an organization config.

Along those lines, this also removes OrganizationConfigStore
.Initialize and replaces .Get with .FindOrCreate, handling
the creation of organization configs upon first attempted
access.

Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
2018-07-09 17:36:19 -07:00
Jared Scheib ecb5347597 WIP Refactor log viewer config to be nested under organizations
Co-authored-by: Alirie Gray <alirie.gray@gmail.com>
2018-07-09 17:36:19 -07:00
Alirie Gray 2319ac3ff8 Replace name "LogViewerUIConfig" with "LogViewerConfig" 2018-07-09 17:36:19 -07:00
Alirie Gray 5ffe4fe6f0 Fix spacing in internal.proto
Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
2018-07-09 17:36:19 -07:00
Jared Scheib 571bca7743 Add & fix logViewer links in configResponse
Rename LogViewerUI to LogViewer in Config struct.
Make all instances of endpoint 'logviewer' (lowercase).
Make all instances of config.links.logViewer (camelcase).
2018-07-09 17:36:19 -07:00
Alirie Gray 981366c55b Change the log viewer UI config property "encoding" to "encodings"
Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
2018-07-09 17:36:19 -07:00
Jared Scheib 4125399054 Add API to get/update log viewer UI config
Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
2018-07-09 17:35:17 -07:00
ebb-tide 9e960535b8 Add map as a template variable value type to the backend 2018-07-02 17:45:44 -07:00
Iris Scholten 4ee1405dae Add map as a valid type of template variables in api 2018-06-19 14:50:16 -07:00
Andrew Watkins ed4a6f24e5
Change IFQL to Flux 2018-06-05 10:57:19 -07:00
Chris Goller e6eef932f6 fix(bolt/services): unmarshal metadata into pointer 2018-05-21 10:45:28 -07:00
Chris Goller f74f5a378f feat(server/services): add metadata for services 2018-05-21 10:45:28 -07:00
Chris Goller 5cd8cc7cdd feat(server/services): add generic services scoped under server 2018-05-21 10:45:27 -07:00
ebb-tide 491130a310 Fix backend defaults for decimal places 2018-05-01 11:19:11 -07:00
ebb-tide 72a3b6ccbc Put decimal places with isenforced and digits on backend 2018-04-27 16:36:02 -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 91480922f4 Change bool fixFirstColumn back to index 6 and reserve index 5 in internal.proto 2018-04-19 09:55:50 -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
Iris Scholten 6348747ae0 Move FieldNames out of TableOptions and into DashboardCell as FieldOptions
Add Precision to RenamableField
2018-04-18 16:48:44 -07:00
Jared Scheib 609fd56b9a Merge branch 'master' into bugfix/hostlist-customdb 2018-04-18 10:47:52 -07:00
lukevmorris 210dd43d8f
fix(migration): Snapshot all struct types (#3211)
declaring all migration-irrelevant types as []byte may erase data
for repeated protobuf fields. we hoped that "obscuring" the original
types of these columns with []byte would pass-through their values
unchanged, allowing us to omit entire types (and their descendent
trees) that were not being operated on in a migration. Fewer imported
types would lead to a more expressive migration file whose intent was
more clear to the reader. We will need to experiment with other ways
to achieve this in the future.

fixes #3200
2018-04-16 12:47:38 -07:00
Iris Scholten 8b807670fe Test bolt update defaultRP in source
Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
2018-04-11 15:04:40 -07:00
Iris Scholten 36eeb72f31 Add and test source defaultRP in bolt
Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
2018-04-11 14:57:50 -07:00
Iris Scholten 807c9b50bd WIP add DefaultRP to Source in protobuf
Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
2018-04-11 14:08:39 -07:00
Luke Morris 8faede8a2e Correct type information in migration 2018-04-05 15:44:27 -07:00
Luke Morris 3b0e43ba49 Fill the value with the current time 2018-04-03 22:45:52 -07:00
Luke Morris d76a937e09 A bit of cleanup 2018-04-03 18:01:57 -07:00
Luke Morris 5d5b77b50b Pointers and strings 2018-04-03 17:28:57 -07:00
Luke Morris e37066a109 Runnable migration file -- missing an update 2018-04-03 16:52:34 -07:00
Luke Morris 601250f1d5 WIP -- general sketch of thoughts 2018-04-03 16:52:34 -07:00
Luke Morris afe079609d Sketching new migration system 2018-04-03 16:52:34 -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