Torkel Ödegaard
51af06edf7
Merge pull request #2022 from dalmatinerdb/proxy-url-fix
...
fixing #2021
2015-05-20 09:03:23 +02:00
Heinz N. Gies
7cf9046dc5
fixing #2021
...
This tiny commit fixes a routing problem for proxy requests. The
router was expecting a url path behind the proxy id, if none was
given (read: the service proxied was at the root of a host) then
the router would return a 404. With this patch it now propperly
uses ProxyDataSourceRequest.
2015-05-19 23:49:30 +02:00
Torkel Ödegaard
a8aab0cb2b
Worked on user administration page, a grafana server admin can now add and edit organization roles for any user, #2014
2015-05-19 11:47:14 +02:00
Torkel Ödegaard
788e7fd36d
Lots of api refactoring for org routes, #2014
2015-05-19 10:16:32 +02:00
Torkel Ödegaard
74bf1f23fb
Small progress on #2014
2015-05-19 09:09:21 +02:00
Torkel Ödegaard
bf9e51928d
Fix to signed in user when user <-> org link is gone
2015-05-19 09:02:37 +02:00
Torkel Ödegaard
f81bde5643
Refactoring some api handlers to use the new Response return object
2015-05-18 21:23:40 +02:00
Torkel Ödegaard
fbc6bb2112
More refactoring of user http api, trying to reuse handlers for sign in user and admin operations
2015-05-18 19:06:19 +02:00
Torkel Ödegaard
5270c4bc74
refactorin api code for user routes, preparation for admin improvements, #2014
2015-05-18 17:52:23 +02:00
Dieter Plaetinck
e9f38b9fc0
no unbound recursion in publish()
...
unbound recursion approach can blow up call stack,
and - I think - allocate memory unboundedly as well.
We can simply loop until err != nil
I didn't actually test this live, though tests succeed
2015-05-18 10:04:01 -04:00
Haneysmith, Nathan
2af28b90c2
whitespace update per gofmt
2015-05-15 13:25:41 -07:00
Haneysmith, Nathan
09b0e6e388
Addresses #1853 , redact session provider secrets
...
In cases where a database is used for session storage, redact the
session_provider config value. I assumed "@" as the marker for a
database vs file/memory.
2015-05-15 11:11:02 -07:00
Torkel Ödegaard
ea993b6404
Some inital ldap work
2015-05-15 09:37:16 +02:00
Torkel Ödegaard
1c9993f185
Backend configuration: When unknown key was detected the log error was not visible in log file due to logging was initialized after user config file is loaded, logging is now initialized twice, once based on defaults and command line arguments, then then again after user config file, Fixes #1992
2015-05-14 10:15:46 +02:00
Torkel Ödegaard
1a401780ba
Updated changelog with completed story, JSON dashboards added to search, Closes #960
2015-05-13 14:01:48 +02:00
Torkel Ödegaard
448a8b8d1c
Major refactorings around searching, moved to seperate package, trying to move stuff out of models package, extend search support searching different types of entities and different types of dashboards, #960
2015-05-13 13:36:24 +02:00
Torkel Ödegaard
c8146e759f
Fixed json index unit test
2015-05-13 10:57:18 +02:00
Torkel Ödegaard
bb7d79e6d2
Refactoring search to support more than just db dashboards
2015-05-13 10:45:53 +02:00
Torkel Ödegaard
fb35f7210c
Fixed failing golang test
2015-05-13 10:06:06 +02:00
Torkel Ödegaard
187834b17c
Trying to get dashboard loading and dashboard meta flags like canSave, canStar more managable
2015-05-13 09:58:45 +02:00
Torkel Ödegaard
35cc0a1cc0
Rewriting anb abstracting how dashboards are loaded, unifying db, json files, and script dashboards, #960
2015-05-12 17:39:56 +02:00
Torkel Ödegaard
b3be51f17f
Lots of work on search and dashboard loading, trying to generalize concepts and code, #960
2015-05-12 14:11:30 +02:00
Torkel Ödegaard
a40299b4dc
Progress on json file index and search #960
2015-05-12 12:20:03 +02:00
Torkel Ödegaard
1a9f630710
Began work on adding json files to search, #960
2015-05-11 20:04:03 +02:00
Torkel Ödegaard
34539c0c13
Enforce domain, host header validation against domain setting, Refactoring of PR #1866 , Closes #1732
2015-05-05 11:21:06 +02:00
Torkel Ödegaard
1f2cba81eb
Merge branch 'enforce-domain' of https://github.com/gummiboll/grafana
2015-05-05 11:15:09 +02:00
Torkel Ödegaard
e5c1169120
HTTP API: GET /api/dashboards/db/:slug response changed property to to match the POST request nameing, Fixes #1928
2015-05-04 08:36:44 +02:00
Torkel Ödegaard
38d851eb98
Another HTTP API fix
2015-05-04 08:19:29 +02:00
Torkel Ödegaard
73ee8a5985
HTTP API: fix for POST /api/dashboards/db returned 200 ok when dashboard was not found, Fixes #1929
2015-05-04 07:46:53 +02:00
Torkel Ödegaard
38fc85d619
Final tweaks to auth proxy feature
2015-05-02 12:30:53 +02:00
Torkel Ödegaard
be589d81c7
Auth: Support for user authentication via reverse proxy header (like X-Authenticated-User, or X-WEBAUTH-USER), Closes #1921
2015-05-02 12:06:58 +02:00
Torkel Ödegaard
ba883d25fe
More middleware unit tests cover all current auth mechanisms
2015-05-02 09:24:56 +02:00
Torkel Ödegaard
f416e2d1ac
More middleware unit test, starting to look really good
2015-05-01 22:26:16 +02:00
Torkel Ödegaard
cb8110cd48
Refactoring, worked on middleware unit tests, and began thinking about api unit tests, #1921
2015-05-01 16:23:36 +02:00
Torkel Ödegaard
d1e9b6d6ae
Began work on auth_proxy feature ( #1932 ), and began work on testing http api, and auth middleware
2015-05-01 11:55:59 +02:00
Torkel Ödegaard
e771d8e944
Organization: You can now update the organization user role directly (without removing and readding the organization user). Closes #1899
2015-05-01 09:48:07 +02:00
Torkel Ödegaard
5de9230924
Security: New config option to disable the use of gravatar for profile images, Closes #1891
2015-05-01 08:40:13 +02:00
Torkel Ödegaard
0d3fbb8659
Added message alerts when login failed due to github team membership or email domain requirement, #1731 , #1660
2015-04-29 10:08:01 +02:00
Torkel Ödegaard
884dc53f8a
smalĺ refactorings
2015-04-29 09:49:33 +02:00
Torkel Ödegaard
d812414621
Merge branch 'github-team-membership-requirement' of https://github.com/dewski/grafana into dewski-github-team-membership-requirement
2015-04-29 09:44:23 +02:00
Torkel Ödegaard
e7c43bf614
expose org id to frontend, Closes #1907
2015-04-29 09:26:12 +02:00
Garrett Bjerkhoel
1d7f945268
Handle special error case if connect.UserInfo returns an error
2015-04-28 20:22:45 -07:00
Garrett Bjerkhoel
eb37fc089b
Check for active team membership when fetching s.UserInfo
2015-04-28 20:22:21 -07:00
Garrett Bjerkhoel
979d0ca70f
Add new error type for team membership permissions
2015-04-28 20:21:44 -07:00
Garrett Bjerkhoel
7ea579bb71
Add team_ids configuration option
2015-04-28 20:19:48 -07:00
Torkel Ödegaard
af277f560f
Merge branch 'master' into editable_false
2015-04-27 08:53:57 +02:00
Torkel Ödegaard
e410fbb558
Corrected SQL migration for snapshot table column type change, #1880
2015-04-25 20:28:50 +02:00
Anthony Woods
f227002a80
fixes #1880 dashboard_snapshot table does not have a data column
2015-04-25 18:51:25 +08:00
Anthony Woods
d84d92f73c
fixes #1880 correct mysql statement for modifying column data type
2015-04-25 18:46:30 +08:00
Torkel Ödegaard
4fd2c0570c
Replaced slug dependency with one that did not use gopkgs.com
2015-04-24 15:46:16 +02:00
Emil Thelin
2d7c7871b0
Fixes broken test
2015-04-23 20:56:31 +02:00
Emil Thelin
9fd3ef2687
Enforce domain
2015-04-23 20:38:00 +02:00
Torkel Ödegaard
b99ee2562e
Restored sql integration tests to use in mem sqlite3
2015-04-23 16:21:49 +02:00
Torkel Ödegaard
8526025792
MySQL: Dashboard.data column type changed to mediumtext (sql migration added), Fixes #1863
2015-04-23 16:18:46 +02:00
Torkel Ödegaard
236c4e65f8
Began work on dashboard: editable flag, that actually stops users from changing anything, #1834
2015-04-23 15:26:48 +02:00
Torkel Odegaard
1edb13d715
Fixed gofmt formating
2015-04-19 09:29:08 +02:00
Torkel Ödegaard
aa8beda4ec
Merge pull request #1800 from alienth/allowsignup
...
Add allow_sign_up setting for auth.google/github.
2015-04-19 09:16:48 +02:00
Torkel Odegaard
7178dcad35
Windows: Fixed runtime issue with file logging config that casued errors on startup
2015-04-19 09:14:50 +02:00
Jason Harvey
ddaac50a25
Add allow_sign_up override for auth.google/github.
2015-04-16 13:43:18 -08:00
Torkel Ödegaard
c54f0fe58b
Merge pull request #1783 from williamjoy/master
...
oauth google: read api_url from config file
2015-04-16 08:15:31 +02:00
Torkel Ödegaard
fc47fb8f64
Backend auth: remember cookie is needed for oauth logins as well
2015-04-15 13:38:38 +02:00
Torkel Ödegaard
942e8fdba8
Support for unicode / international characters in dashboard title (improved slugify), Fixes #1734 , Fixes #827
2015-04-15 12:36:02 +02:00
William Wei
b7c0d99cdf
get google api url from config file
...
instead of using https://www.googleapis.com/oauth2/v1/userinfo in
code.
2015-04-15 18:11:54 +08:00
Torkel Ödegaard
836e4b4911
Dashboard snapshot: Should not require login to view snapshot, Fixes #1780
2015-04-15 10:39:03 +02:00
Torkel Ödegaard
e9afd30b47
Updated changelog with, Github OAuth: Now works with Github for Enterprise, thanks @williamjoy
2015-04-15 10:31:56 +02:00
William Wei
4fd2622e55
grafana/grafana#1781 add oauth api url as config
...
read github api from config file instead of using public github:
http://api.github.com/user
this would be useful when you are using github enterprise edition
2015-04-15 14:18:10 +08:00
William Wei
d048e39cde
grafana/grafana#1781 add oauth api url as config
2015-04-15 14:03:28 +08:00
Torkel Ödegaard
6de584aafc
Updated to config file finding, and added homepath command line option
2015-04-12 09:15:49 +02:00
Torkel Ödegaard
d32c03ed11
Rpm working again, systemd working on centos 7
2015-04-10 16:20:01 +02:00
Torkel Ödegaard
2020fedfdb
Fixed issue with overriding default config values via command line
2015-04-10 10:58:32 +02:00
Torkel Ödegaard
d1767144a8
Reworking configuration loading and overriding
2015-04-09 12:16:59 +02:00
Torkel Ödegaard
a991cda233
Began work on refactoring reading config values
2015-04-08 20:31:42 +02:00
Torkel Ödegaard
96ee1c17a3
Worked on new deb & rpm packaging and init.d scripts
2015-04-08 14:10:04 +02:00
Torkel Ödegaard
6911572fa1
Panel image rendering: now works under self-signed https cert, Fixes #1726
2015-04-08 09:06:01 +02:00
Torkel Ödegaard
059db533d5
HTTP API: grafana /render calls nows with api keys, Fixes #1649
2015-04-08 08:59:12 +02:00
Torkel Ödegaard
c07d48d930
A big refactoring for how sessions are handled, Api calls that authenticate with api key will no longer create a new session
2015-04-07 19:21:14 +02:00
Torkel Ödegaard
646298f5c5
Handle errors when loading dashboard with template variables that query data sources that cannot be found
2015-04-07 13:48:26 +02:00
Torkel Ödegaard
22adf0d06e
Datasource proxy & session timeout fix (casued 401 Unauthorized error after a while), Fixes #1667
2015-04-07 09:25:00 +02:00
Torkel Ödegaard
eb575685aa
OAuth: Specify allowed email address domains for google or and github oauth logins, Closes #1660
2015-04-06 14:16:22 +02:00
Torkel Ödegaard
b8c378f2f0
Updated golang/x/oauth2 dependency, #1710
2015-04-04 09:50:25 +02:00
Torkel Ödegaard
e6492f7db9
Share modal: Override UI theme via URL param for Share link, rendered panel, or embedded panel, Closes #1701
2015-04-02 09:21:38 +02:00
Torkel Ödegaard
a96e4a343c
Only create admin user specified in config file when there are no users in the database, Fixes #1680
2015-04-01 16:05:42 +02:00
Torkel Ödegaard
1f330d7753
Basic auth: Fixed issue when using basic auth proxy infront of Grafana, Fixes #1673
2015-04-01 15:23:26 +02:00
Torkel Ödegaard
cf877e6567
added postgres and redis session options
2015-04-01 09:45:42 +02:00
Torkel Ödegaard
c3fa68ade8
Data source proxy: Fixed issue with Gzip enabled and data source proxy, Fixes #1675
2015-04-01 09:00:17 +02:00
Torkel Ödegaard
5422d13607
Postgres fix update
2015-04-01 08:26:02 +02:00
Torkel Ödegaard
d8f614ed98
Merge pull request #1665 from mattrobenolt/bool
...
Let xorm convert `False` into the right type
2015-04-01 08:25:20 +02:00
Torkel Ödegaard
3c2bfbfc1c
Search: Dashboard results should be sorted alphabetically, Fixes #1685
2015-03-31 22:06:19 +02:00
Torkel Ödegaard
b83367063e
Small improvement to dashboard loading error handling
2015-03-31 14:03:01 +02:00
Matt Robenolt
cedb11ebab
Let xorm convert False
into the right type
2015-03-30 18:11:39 -07:00
Torkel Ödegaard
b46f8bad6d
Added check for allow_user_org_create, updated admin docs
2015-03-30 10:12:24 +02:00
Torkel Ödegaard
38db91c7be
Fixed failing go unit test
2015-03-29 13:33:34 +02:00
Torkel Ödegaard
8e9a0eddf5
Custom snapshot topnav header, new custom dashboard snapshot icon, #1623
2015-03-28 17:53:52 +01:00
Torkel Ödegaard
80c771c945
Added googla analytics id setting
2015-03-27 17:13:44 +01:00
Torkel Ödegaard
f7b4f331f3
Updating docs
2015-03-27 14:23:23 +01:00
Torkel Ödegaard
d3db49ae3e
Fixed snapshot sharing issue
2015-03-27 06:47:58 +01:00
Torkel Ödegaard
7be7aeb70a
Fixed sql migration issue with dashboard snapshots
2015-03-26 21:20:44 +01:00
Torkel Ödegaard
541cd2e430
Dashboard snapshot: more work on snapshot deletion, and saving external reference, #1623
2015-03-26 20:59:41 +01:00
Torkel Ödegaard
4322f29f34
Dashboard snapshot: added delete key which can be used to delete snapshots, #1623
2015-03-26 20:34:58 +01:00
Torkel Ödegaard
71aa2ef2c2
Changed reporting interval to 24 hour (1 hour was just for testing)
2015-03-26 12:20:24 +01:00
Torkel Ödegaard
b1f85dc8f1
Added expire option to dashboard snapshots, #1623
2015-03-26 12:00:52 +01:00
Torkel Ödegaard
f4280ca517
More refinements of dashboard snapshot dialog, #1623
2015-03-25 20:36:48 +01:00
Torkel Ödegaard
afeb65b3bf
Snapshot sharing fix
2015-03-25 17:18:43 +01:00
Torkel Ödegaard
aa60edd9fe
Fixed issue with external snapshot publish
2015-03-25 16:30:03 +01:00
Torkel Ödegaard
cb3593e472
Lots of small fixes, role viewer hides save icon and some actions in
...
config dropdown. Snapshot dashboard hides save, star, config menu icons.
Can now embedd panel from snapshotted dashboard.
2015-03-25 15:48:56 +01:00
Torkel Ödegaard
10618637e2
Fixed bug in sql migration, closes #1643
2015-03-25 13:53:58 +01:00
Torkel Ödegaard
9268ecf3e9
Some refinements to dashboard snapshots
2015-03-25 09:04:38 +01:00
Matt Robenolt
5286f0856d
Fix more Cache-Control headers
...
`max-age` is always with an `=`, not a `:`.
2015-03-24 17:30:26 -07:00
Torkel Ödegaard
7919d79347
Another cache header fix
2015-03-24 17:16:13 +01:00
Torkel Ödegaard
a5c3855233
Added dashboard snapshot metrics
2015-03-24 16:49:12 +01:00
Torkel Ödegaard
c27db7a347
Small updates to share dashboard snapshot feature
2015-03-24 15:46:17 +01:00
Matt Robenolt
3e9adeefbc
Fix format of Cache-Control header
2015-03-23 21:58:29 -07:00
Torkel Ödegaard
5f0e7cd52a
Added custom cache control headers for static content
2015-03-23 18:28:59 -04:00
Torkel Ödegaard
7614ddb318
Updated design for snapshot sharing dialog, #1596
2015-03-23 13:58:30 -04:00
Torkel Ödegaard
49a0ea53c7
Merge branch 'develop' of github.com:grafana/grafana into dashboard_snapshot_poc
...
Conflicts:
src/app/features/dashboard/partials/shareDashboard.html
2015-03-22 22:04:13 -04:00
Torkel Ödegaard
44bc2b2d56
Updated conf description, metrics interval
2015-03-22 16:30:28 -04:00
Torkel Ödegaard
a26436f59b
Server metrics fix
2015-03-22 16:13:16 -04:00
Torkel Ödegaard
1e4c62a70d
updated server reporting
2015-03-22 15:45:13 -04:00
Torkel Ödegaard
9c9ebb4987
Updated server stats
2015-03-22 15:24:35 -04:00
Torkel Ödegaard
d987532262
Added server metrics
2015-03-22 15:14:00 -04:00
Torkel Ödegaard
f48f5428e5
Adding snapshot storage and route, #1623
2015-03-21 10:56:26 -04:00
Torkel Ödegaard
964f0861d6
more work on dashboard snapshots
2015-03-21 08:53:16 -04:00
Anthony Woods
7010df0fe8
fixes #1619 Secure PhantomJS Png rendering
...
removes auth hack to allow phantomjs to query pages as a user
without auth. Instead we pass phantomjs the session cookie,
which it then includes in the request.
2015-03-21 07:14:13 +08:00
Torkel Ödegaard
94c3a07115
Fixed small issue when using 'Save As', dashboard version was not reset
2015-03-19 10:32:47 -04:00
Torkel Ödegaard
30047e6a9f
Updated macaron and ini package
2015-03-19 10:17:16 -04:00
Torkel Ödegaard
eb8b9c4ac3
Increase api_key.key varchar to 255 length
2015-03-18 13:20:15 -04:00
Anthony Woods
fc5839d8f1
gofmt. remove extra whitespace
2015-03-17 23:42:16 +08:00
Anthony Woods
bce62c49d0
fixes #1606
2015-03-17 23:10:49 +08:00
Anthony Woods
6a09a7c398
fixes #1606 emit OrgCreated event when new org created.
2015-03-17 23:09:43 +08:00
Torkel Ödegaard
2fec2c2fa0
Templating: Dashboard will now wait to load until all template variables that have refresh on load set or are initialized via url to be fully loaded and so all variables are in valid state before panels start issuing metric requests. Closes #1255
2015-03-14 15:29:41 -04:00
Torkel Ödegaard
17063df3cc
Changed default org name form 'main' to 'Main Org.'
2015-03-12 19:43:52 +01:00
Jason Wilder
d3d896dccd
Log more descriptive error when anonymous org is not found
...
Was logging:
[middleware.go:78 func·004()] [E] Anonymous access organization error%!(EXTRA <nil>)
2015-03-12 11:49:05 -06:00
Torkel Ödegaard
c1d7bef768
added cert_key and cert_file to defaults.ini
2015-03-11 19:44:31 +01:00
Torkel Ödegaard
477e035f2e
Fixed anonymous access mode, Closes #1586
2015-03-11 17:34:11 +01:00
Torkel Ödegaard
f3d4d2782f
Simplified single org settings, now auto_assign_org, and auto_assign_org_role, new [users] config section, Closes #1585
2015-03-11 16:19:29 +01:00
Torkel Ödegaard
ebad9cb502
Fixed gofmt formating, updated precommit hook
2015-03-07 16:37:19 +01:00
Torkel Ödegaard
d8005af8ee
updated circle with fmt formating test
2015-03-07 16:23:22 +01:00
Torkel Ödegaard
5719e437ef
Merge pull request #1556 from jwilder/jw-export
...
Add dashboards:export CLI command
2015-03-06 07:59:44 +01:00
Torkel Ödegaard
de1e762528
Fixed issue using mysql as session store, Closes #1557
2015-03-04 10:34:26 +01:00
Jason Wilder
433070a135
Add dashboards:export CLI command
...
Allows exporting all dashboards to a --dir or filtering dashboards
by title. If no --dir is specified, a single dashboard must be
found and it will be sent to stdout which can be piped to a file.
Fixes #1498
2015-03-03 23:16:14 -07:00
Torkel Ödegaard
c6d4b5cc86
Working on build steps
2015-03-03 17:42:50 +01:00
Torkel Ödegaard
0db55b6194
Work on deb and rpm packages, both seem to work now, #1476
2015-03-03 17:14:58 +01:00
Torkel Ödegaard
7e0f1a57af
Progress on deb and rpm packaging, renamed config files, added file logging, #1476
2015-03-03 10:18:37 +01:00
Torkel Ödegaard
04d25dc58a
Dashboard: When saving a dashboard and another user has made changes inbetween, the user is promted with a warning if he really wants to overwrite the other's changes, Closes #718
2015-03-02 22:24:01 +01:00
Torkel Ödegaard
ad2065afc7
Began work on deb and rpm packaging, #1476
2015-03-02 15:50:03 +01:00
Torkel Ödegaard
9710771f16
Added basic auth to data source edit/create, add support for basic auth in data source proxy code, Closes #1510
2015-03-02 09:58:35 +01:00
Torkel Ödegaard
d0d995da09
Inital work on SQL metric/annotation data source, #1542
2015-02-28 17:27:30 +01:00
Torkel Ödegaard
04ca85fe89
Moved dashboard theme option from the dashboard to a persisted user setting, #1458
2015-02-28 14:30:08 +01:00
Torkel Ödegaard
ae3b9617b6
Fixed dataproxy test
2015-02-28 12:34:51 +01:00
Torkel Ödegaard
0b1044b46f
Fixed plugins go test
2015-02-28 11:38:44 +01:00
Torkel Ödegaard
232f980c72
More work on restoring features after moving to plugin model for datasources, no annotations work again #1276 #1472
2015-02-28 10:52:25 +01:00
Torkel Ödegaard
9e892bddf0
More work on restoring features after moving to plugin model for datasources, #1276 #1472
2015-02-28 09:46:37 +01:00
Torkel Ödegaard
109dd3240a
Work on new datasource plugin model, #1276 #1472
2015-02-28 08:25:13 +01:00
Torkel Ödegaard
c198242292
A lot of work on backend plugin model for frontend components, right now for data sources, will enable dropin plugins for data sources and panels, #1472
2015-02-27 22:29:00 +01:00
Torkel Ödegaard
5bd5713a52
Began work on plugin system
2015-02-27 13:45:00 +01:00
Torkel Ödegaard
011fdf7ab6
fixed bug in datasource schema migration
2015-02-26 19:36:11 +01:00
Torkel Ödegaard
c75aa23092
New implementation for API Keys that only stores hashed api keys, and the client key is base64 decoded json web token with the unhashed key, Closes #1440
2015-02-26 17:23:28 +01:00
Torkel Ödegaard
6a2a6afc1d
Merge branch 'develop' into apikey_hashed
...
Conflicts:
pkg/api/apikey.go
pkg/services/sqlstore/migrations.go
2015-02-26 15:48:54 +01:00
Torkel Ödegaard
7c241fd617
Added permissions section to admin > edit user view, an admin can now make another user admin, Closes #1517
2015-02-26 15:43:48 +01:00
Torkel Ödegaard
ae7f18f981
Made a copy of influxdb datasource named influxdb_08 so the main influxdb data source can be modified to support InfluxDB 0.9, made some initial experiments to get queries to work, but a lot more work is needed, #1525
2015-02-25 18:43:44 +01:00
Torkel Ödegaard
3f96afba73
Merge branch 'fixDashboardDelete' of https://github.com/raintank/grafana into raintank-fixDashboardDelete
...
Conflicts:
pkg/services/sqlstore/dashboard.go
2015-02-25 14:31:44 +01:00
Torkel Ödegaard
9e789e6d82
More work on organization / admin nav, views, #1506
2015-02-25 14:27:34 +01:00
Torkel Ödegaard
563d5e3ad8
All migrations work in sqlite3, mysql and postgres
2015-02-25 07:57:51 +01:00
Torkel Ödegaard
16fd256225
Added missing common.go
2015-02-24 19:10:41 +01:00
Torkel Ödegaard
f3f79792ab
account -> org table migration is starting to work, need to test mysql and postgres
2015-02-24 18:32:29 +01:00
Torkel Ödegaard
ed68a4bb9a
More work on SQL migrations
2015-02-24 17:59:21 +01:00
Torkel Ödegaard
02a89c752b
Progress on database schema migration for account -> org refactor
2015-02-24 11:46:34 +01:00
Anthony Woods
b9b63f695d
fixes #1518 fix table name used in dashboard delete.
2015-02-24 08:56:10 +00:00
Torkel Ödegaard
da41d99aa7
Fixed sql integration test
2015-02-23 20:48:43 +01:00
Torkel Ödegaard
26e4809e2e
Big Backend Refatoring: Renamed Account -> Org
2015-02-23 20:07:49 +01:00
Torkel Ödegaard
e9e2fa2927
Started Account -> Organization rename
2015-02-23 18:29:01 +01:00
Torkel Ödegaard
5b2715515f
Began work on Account -> Organization rethink, #1506
2015-02-23 16:40:04 +01:00
Torkel Ödegaard
a8c90e2365
Small update to commands
2015-02-23 14:20:24 +01:00
Torkel Ödegaard
138e720695
Increased max user list to 1000 for user admin page, need to paging, but will have to wait a few days
2015-02-23 11:30:58 +01:00
Torkel Ödegaard
1a106e5c38
Added change password ability to admin > edit user view, #1446
2015-02-23 11:24:22 +01:00
Torkel Ödegaard
47c6c6e1b7
Added change password feature, Closes #1455
2015-02-19 16:09:49 +01:00
Torkel Ödegaard
60ae4afe87
Refresh frontend datasourceSrv after datasource update, no longer need to reload the page to use a newly added or updated datasource, #1493
2015-02-18 14:06:44 +01:00
Torkel Ödegaard
17004ce3ae
Fixed issue with login by username and uppercase letters in username, #1484
2015-02-18 13:00:39 +01:00
Torkel Ödegaard
26eb6e559e
Removed use of absolute urls in dashboard search and dashlist, root_url option is now not required, it is required if you use oauth or proxy grafana under suburl, #1483
2015-02-17 18:43:37 +01:00
Torkel Ödegaard
83d798dbad
Small update to grafana.ini describe server options
2015-02-16 08:12:07 +01:00
Torkel Ödegaard
56d8fe4a22
Small changes to CLI commands PR
2015-02-16 07:40:21 +01:00
Jason Wilder
b6428b08d0
CLI: Fix config flag being ignored
...
Passing --config had no effect when passed. It will now be applied as
the last config file and before any env var overrrides.
2015-02-15 15:06:02 -07:00
Jason Wilder
9223c95481
CLI: Order commands alphabetically
2015-02-15 14:01:48 -07:00
Jason Wilder
a3925e8aa0
CLI: Use console logger for dashbard:import command
...
More consistent w/ other commands and separates stdout/stderr
2015-02-15 13:51:41 -07:00
Jason Wilder
7c8fa067a2
CLI: Conver account flag to required arg
...
Follows the same convention as other commands.
2015-02-15 13:48:36 -07:00
Jason Wilder
f2e9ec63df
CLI: Renamed import-json to dashboard:import
...
More consistent w/ other command names.
2015-02-15 13:45:25 -07:00
Jason Wilder
b97361b193
CLI: Add datasource:delete command
2015-02-15 13:36:10 -07:00
Jason Wilder
22652889b2
CLI: Add datasource:create command
...
Allows creating a datasource from the command line
2015-02-15 13:36:10 -07:00
Jason Wilder
04a970eda2
CLI: Use 8 char min col size instead of 20
2015-02-15 13:36:10 -07:00
Jason Wilder
f443b7087c
CLI: Add datasource:info command
...
Describes the full datasource details given an account and
datasource name.
2015-02-15 13:36:10 -07:00
Jason Wilder
9cb1170361
CLI: Move duplicated config flag to global flag
2015-02-15 13:36:10 -07:00
Jason Wilder
dda760b9b5
CLI: Add datasource list command
...
Lists all the datasources for an account via the CLI
2015-02-15 13:36:10 -07:00
Jason Wilder
ca4124940a
CLI: Remove redundant Cmd prefix from commands
2015-02-15 13:36:10 -07:00
Jason Wilder
90cd10e034
CLI: Add account:delete command
2015-02-15 13:36:10 -07:00
Jason Wilder
c1d4acc01e
CLI: Use colorized console output
...
This extracts some of the colored logging functionality into some
convenience functions to log directly to the console (stdout) w/o
the usual logging prefixes and flags. It's intended for console
messages when using grafana commands.
2015-02-15 13:36:10 -07:00
Jason Wilder
81531a29eb
CLI: Add account:create command
...
Creates a new account attached to the default admin account for now.
2015-02-15 13:36:10 -07:00
Jason Wilder
7d4c319fcb
CLI: Default logging output to stderr instead of stdout
...
Makes it possible to separate console output from logging output so
command output can be piped to a file cleanly.
2015-02-15 13:36:10 -07:00
Jason Wilder
ca37b24455
CLI: Add account list command
2015-02-15 13:36:10 -07:00
Torkel Ödegaard
f6c07fdabd
Rewrote and redesign how the data source edit views look and work so they conform better to how account views look, removed tabs and put top nav items to add data source etc, made list, edit and new seperate url routes, #1483
2015-02-14 10:04:34 +01:00
Torkel Ödegaard
a88187023d
Added a sql integration test for api keys
2015-02-13 15:55:32 +01:00
woodsaj
7d69885e06
fixes #1481 . correctly escape api_key.key column name
...
'key' is a reserved word in mysql. So when building a query,
the api-key.key column name needs to be escaped
2015-02-13 22:00:03 +08:00
Torkel Ödegaard
8722ee8ad6
Worked on playlist update for Grafana 2.0, added dashboard search to playliststart view, #1460
2015-02-13 08:47:44 +01:00
Torkel Ödegaard
1a44036148
Fixed req.Host in datasource proxy, Fixes #1478
2015-02-13 07:26:33 +01:00
Torkel Ödegaard
e65a6cc063
added an inital admin settings view, very basic right now only displays all config options in grafana.ini
2015-02-12 15:46:14 +01:00
Torkel Ödegaard
79f798f67b
Configuration file options can now be overriden using environment variables using GF_<SectionName>_<KeyName> syntax, if Section name contains dots in config they are replaced with underscores, and the section name and keyname needs to be all upper case, #1473
2015-02-12 13:31:41 +01:00
Torkel Ödegaard
2c16b0f0f3
added unit test for loading configuration file
2015-02-12 11:55:55 +01:00
Torkel Ödegaard
4df6668416
Merge branch 'develop' of github.com:grafana/grafana into develop
2015-02-12 10:34:52 +01:00
Torkel Ödegaard
0140a00884
Added two columns to user table, email_verified and theme, no used right now but will probably shortly
2015-02-12 10:32:22 +01:00
Jason Wilder
793eda7640
Assign new dashboard ID when importing dashboard via command-line
2015-02-11 15:20:36 -07:00
Torkel Ödegaard
71f09ddd94
Added delete user action to user admin api, and made it work in UI, Closes #1466 , #1446
2015-02-11 16:47:22 +01:00
Torkel Ödegaard
add4adeec9
Fixed links to user admin views, and backend html routes for user admin edit/create urls, Closes #1451
2015-02-10 16:26:23 +01:00
Torkel Ödegaard
e165e2af95
Worked on user admin features, can now create and edit users as a grafana admin user, #1446
2015-02-10 15:36:51 +01:00
Torkel Ödegaard
c5afcd8e09
Fixed issue with datasource proxying, it required account admin role when it should not
2015-02-10 10:19:43 +01:00
Torkel Ödegaard
5269422f7c
Began work on hashing api keys
2015-02-09 13:30:04 +01:00
Torkel Ödegaard
c9f06e1da1
Fixed failing events test and issue with dashboard list panel
2015-02-08 11:24:03 +01:00
woodsaj
c4fe9d50bf
correctly handle event being a ptr
...
Events are passed in as PTRs, so we need to de-reference when getting the type and value.
2015-02-08 18:13:32 +08:00
Torkel Ödegaard
727fc9d3a6
Updated search result view, removed delete link, added delete action from dashboard cogs dropdown
2015-02-07 20:25:53 +01:00
Torkel Ödegaard
9818f81c5f
Completed search makover
2015-02-07 16:12:29 +01:00
Torkel Ödegaard
23bbc5160e
Fixed validation for adding api keys, added unique index for api key name + account_id
2015-02-07 13:11:39 +01:00
Torkel Ödegaard
397dfc54cd
Fixed bug in png rendering when having changed public url
2015-02-06 14:17:40 +01:00
Torkel Ödegaard
85c1c97ea2
Updated readme
2015-02-06 09:10:52 +01:00
Torkel Ödegaard
f8a10fa7af
Updated account and profile pages, very temporary solution, do not like it at all
2015-02-06 08:21:00 +01:00
Torkel Ödegaard
e3764ad951
Fixed failing dashboard sql test
2015-02-05 15:53:15 +01:00
Torkel Ödegaard
e5fbbe96fd
fixed error handling, and error logging for panel rendering
2015-02-05 12:23:24 +01:00
Torkel Ödegaard
8e1b753664
Added limit to dashboard list panel and search
2015-02-05 11:10:56 +01:00
Torkel Ödegaard
0f63c04beb
Fixed bug in user creation and admin role
2015-02-05 10:50:18 +01:00
Torkel Ödegaard
10820f31c2
Changed go package path
2015-02-05 10:37:13 +01:00
Torkel Ödegaard
076905d14e
Added isStarred to search result hit, very inefficient loading right now but can be cached later on
2015-02-05 09:49:00 +01:00
Torkel Ödegaard
69e7279cff
fixed unit test failing on build server
2015-02-04 18:25:15 +01:00
Torkel Ödegaard
896e6d4662
Merge branch 'notifications'
2015-02-04 17:15:16 +01:00
Torkel Ödegaard
d8db5189c1
More work on events, still have to convert pascal case event type name to rabbitmq dot notation, but after that should be done
2015-02-04 17:15:05 +01:00
Torkel Ödegaard
525179eb85
Added on wire event format
2015-02-04 16:57:20 +01:00
Torkel Ödegaard
dace35d31d
Missed setting account name
2015-02-04 15:41:40 +01:00
Torkel Ödegaard
3752379106
Worked on event system, needs a little more work
2015-02-04 15:37:26 +01:00
Torkel Ödegaard
60541a455f
Worked on search filter flag IsStarred, and updated frontend with new dashboard list panel
2015-02-04 11:35:59 +01:00
Torkel Ödegaard
1ac3355b03
updated frontend with style changes
2015-02-03 22:06:07 +01:00
woodsaj
a712f1a231
Add inital implementation of Notification events.
...
If notifications are enabled in the config, Adds a eventHandler
accepting Notification{} payloads to the internal Bus. The
eventHandler then marshals the payload into json and sends it
to a rabbitmq topic exchange using the
Notification.Priority+Noticiation.EventType as the routing key.
eg. INFO.account.created
Currently, notifications are only being emitted for
INFO.account.created
INFO.account.updated
INFO.user.created
INFO.user.updated
2015-02-03 23:57:42 +08:00
Torkel Ödegaard
42a5aefb23
Worked on home dashboard
2015-02-03 15:04:35 +01:00
Torkel Ödegaard
bd470abcf0
fontend styles updated
2015-02-03 10:46:52 +01:00
Torkel Ödegaard
97758380e0
Worked on stars in search results
2015-02-02 17:17:57 +01:00
Torkel Ödegaard
ad3d15e28d
Worked on dashboard starring and unstarring, renamed favorite model to star
2015-02-02 11:32:32 +01:00
Torkel Ödegaard
20c6925470
Fixed sub url setting bug
2015-01-30 14:21:32 +01:00
Torkel Ödegaard
04d03f73b3
Added disable user sign up feature
2015-01-29 15:46:54 +01:00
Torkel Ödegaard
d95c5e6674
Basic import of json dashboards is working, needs more work to handle updates, and continous watching, #22
2015-01-29 14:33:50 +01:00
Torkel Ödegaard
1d6413bfae
More work on backend for user favorites
2015-01-29 12:10:34 +01:00
Torkel Ödegaard
e02e60171e
Began work on user favorites backend support & storage
2015-01-28 15:29:36 +01:00
Torkel Ödegaard
b25bf363b3
updated frontend, fixed new dashboard button
2015-01-28 14:31:09 +01:00
Torkel Ödegaard
1cff564483
Fontend handling of account role to hide user actions and links that the user does not have access to
2015-01-28 11:33:50 +01:00
Torkel Ödegaard
aa261bbe23
Login: only enabled oauth options are shown on login page
2015-01-28 10:26:13 +01:00
Torkel Ödegaard
a5e450a0dd
Worked on anonymous access
2015-01-27 15:45:27 +01:00