Commit Graph

10902 Commits (a7a44d728d9c2ea5bc19c9b3d0d577deaa433453)

Author SHA1 Message Date
Alirie Gray 1ab600e133 Remove overly defensive nil org config guard on GET
Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
2018-07-10 11:52:30 -07:00
Alirie Gray acaf2c5276 Add comment to explain SuperAdminNewUsers property on AuthConfig
Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
2018-07-10 11:47:18 -07:00
Alirie Gray c9c088cdd2 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 5b58c6aa59 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
Andrew Watkins 1a5b800175 Add decimal place options to single-stat and line plus single stat 2018-07-10 11:24:46 -07:00
Iris Scholten 480127f112 Fix row not highlighting when hovering over severity column 2018-07-10 11:15:02 -07:00
Delmer Reed 0e4347a3d2 Fix hosts DashboardHeader rendering
Fixes dashboard links to conform to DashboardSwitcherLinks interface.
2018-07-10 13:58:32 -04:00
Alirie Gray d59e4763ec Fixed whitespace for Config in internal.proto
Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
2018-07-10 10:56:50 -07:00
Daniel Campbell 03e348063f Merge pull request #3855 from influxdata/logs-page-polish
Logs page polish
2018-07-10 10:51:02 -07:00
Christopher Henn a140ecfe49 Fix encoding of empty source responses 2018-07-10 10:50:27 -07:00
Alex P dbf80d6898 Align severity text with dot 2018-07-10 10:09:52 -07:00
Alex P acfd17ea5c Rename function to match event name 2018-07-10 10:09:34 -07:00
Alex P 6cf775ae07 Fix styling of filter blocks
the LI tag was inheriting some funky
2018-07-10 10:09:06 -07:00
Alex P 537de8b2fe Allow user to exit filter edit when nothing has changed 2018-07-10 10:08:31 -07:00
Alex Paxton 1521012709 Merge pull request #3849 from influxdata/reinstate-table-sort-indicators
Bring back sort indicators in Hosts and Alerts tables
2018-07-10 09:07:51 -07:00
Jared Scheib 0104594c16 Fix swagger.json breaking in rebase 2018-07-09 17:41:23 -07:00
Alex P 2fd2a5c541 Bring back sort indicators in Hosts and Alerts tables 2018-07-09 17:39:28 -07:00
Jared Scheib 9a60875048 Add tests for validLogViewerConfig & remove obsolete comments 2018-07-09 17:37:30 -07:00
Jared Scheib c79fa83064 Fix server/org_config_test function names in test error output 2018-07-09 17:37:30 -07:00
Jared Scheib b68014daa8 Fix OrganizationConfig store to never manipulate global org config
Using serverContext created the scenario where a global org config
could be created and manipulated in certain cases. However, org
configs should always be in the context of an organization --
there is no global organization config, so removing these lines
removes the ability for such an undesired state.

Co-authored-by: Alirie Gray <alirie.gray@gmail.com>
2018-07-09 17:37:30 -07:00
Jared Scheib 89ef77d040 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 92bda812b4 Fix new log viewer config response underlying struct
Co-authored-by: Alirie Gray <alirie.gray@gmail.com>
2018-07-09 17:37:30 -07:00
Jared Scheib a9af861c2f Remove unnecessary comments
Co-authored-by: Alirie Gray <alirie.gray@gmail.com>
2018-07-09 17:37:30 -07:00
Jared Scheib 5844b15d8d 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
Alirie Gray 45bb87a17b Update swagger docs with refactored organization config API
Add definitions for Config and Organization Config
Replace /:section route with /auth and /org_config/logviewer

Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
2018-07-09 17:37:30 -07:00
Jared Scheib 429fe214e6 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 9909bed41f 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 2f6b4ccd99 Replace name "LogViewerUIConfig" with "LogViewerConfig" 2018-07-09 17:36:19 -07:00
Alirie Gray 9d752e0eb4 Add comments and refactored map syntax for validLogViewerUIConfig
Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
2018-07-09 17:36:19 -07:00
Alirie Gray 691dd6e796 Handle decoding request before retrieving config & := syntax for res
Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
2018-07-09 17:36:19 -07:00
Alirie Gray d3df6b7f8f Fix spacing in internal.proto
Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
2018-07-09 17:36:19 -07:00
Jared Scheib b5491a7bf1 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
Jared Scheib 08c7850812 Correct two missed 'logViewer's to logviewer 2018-07-09 17:36:19 -07:00
Alirie Gray aa21b8e880 Update Changelog
Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
2018-07-09 17:36:19 -07:00
Alirie Gray 0241e4faea 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
Alex Paxton fa348b3750 Merge pull request #3846 from influxdata/make-components-reusable
More Reusable Components
2018-07-09 17:35:27 -07:00
Alirie Gray 5043c86990 Validate log UI config on PUT, & refactor config API methods
Replaced /:section with specific hard-coded endpoints /auth
& /logviewer, and refactored service handler methods to
handle each route separately.

Co-authored-by: Jared Scheib <jared.scheib@gmail.com>
2018-07-09 17:35:17 -07:00
Jared Scheib 73e61b3d33 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
Alex P 2e1e6eced7 Make default value more explicit 2018-07-09 17:18:19 -07:00
Andrew Watkins a13e024e93 Merge pull request #3844 from influxdata/enterprise/fe-ldap
Frontend LDAP integration
2018-07-09 16:35:49 -07:00
Andrew Watkins d49bd20551 Remove ternary 2018-07-09 16:26:15 -07:00
Delmer ac6fa2da6a Merge pull request #3847 from influxdata/fix/basepath-dashboards
Fix multiple base paths added when routing dashboards
2018-07-09 19:24:40 -04:00
Alex P 5a47c1e707 Make tests okay with CSS imports 2018-07-09 15:59:20 -07:00
Andrew Watkins 993fc1ba44 Cleanup 2018-07-09 15:43:29 -07:00
Alex P 2b25478223 Move Overlay styles into component folder 2018-07-09 15:38:29 -07:00
Alex P 3f6ad6bedd Remove commented code 2018-07-09 15:37:56 -07:00
Iris Scholten 87296e3761 Merge pull request #3841 from influxdata/fix/delete-tv-metaquery
Handle deletion of a tempVar used in nested tempVar
2018-07-09 15:33:21 -07:00
Alex P 1de1fc7542 Limit re-rendering of table row 2018-07-09 15:31:23 -07:00
Delmer Reed 92ac98420a Fix basepath routing dashboards 2018-07-09 18:17:45 -04:00
Iris Scholten 4156c42684 Handle deletion of a tempVar used in nested tempVar
Catch error and send notification of error
2018-07-09 15:17:35 -07:00