Augustin
05e060dee0
HTTP API documentation +fix when updating a playlist ( #12612 )
...
* get id from path param when updating a playlist
* add playlist http api documentation
* remove required condition for the id in update cmd
2018-07-17 07:45:38 -07:00
Caleb Tote
10aaf7b506
Adding eval_data to alerts query results
2018-07-16 12:38:42 -04:00
Torkel Ödegaard
c6bcf13d78
Devenv testdata dashboards ( #12615 )
...
* devenv: working on dev env setup & dashboards
* devenv: refactored testdata app to a built in datasource instead, and moved dashboards to a devenv provisioned dashboards
2018-07-16 03:12:13 -07:00
David
a13b4f2b3f
Merge pull request #12596 from grafana/davkal/explore-datasource-selector
...
Explore Datasource selector
2018-07-16 11:13:29 +02:00
Mark Meyer
0f6e5e2953
Allow settting of default org id to auto-assign to ( #12401 )
...
Author: Mark Meyer <mark@ofosos.org>
2018-07-13 12:14:40 -07:00
David Kaltschmidt
d06b26de26
Explore Datasource selector
...
Adds a datasource selector to the Explore UI. Only datasource plugins
that have `explore: true` in their `plugin.json` can be selected.
- adds datasource selector (based on react-select) to explore UI
- adds getExploreSources to datasource service
- new `explore` flag in datasource plugins model
- Prometheus plugin enabled explore
2018-07-13 09:09:36 +02:00
Torkel Ödegaard
c03764ff8a
Refactor team pages to react & design change ( #12574 )
...
* Rewriting team pages in react
* teams to react progress
* teams: getting team by id returns same DTO as search, needed for AvatarUrl
* teams: progress on new team pages
* fix: team test
* listing team members and removing team members now works
* teams: team member page now works
* ux: fixed adding team member issue
* refactoring TeamPicker to conform to react coding styles better
* teams: very close to being done with team page rewrite
* minor style tweak
* ux: polish to team pages
* feature: team pages in react & everything working
* fix: removed flickering when changing tabs by always rendering PageHeader
2018-07-11 11:23:07 -07:00
yogy rahmawan
8b32dc5847
move go vet out of scripts and fixing warning ( #12552 )
2018-07-09 23:25:32 -07:00
Jesse Tane
677117fb03
fix diff and percent_diff ( #12515 )
...
* make diff and percent_diff tests more realistic
* fix diff and percent_diff
* include @marefr's additional tests
2018-07-08 21:58:34 -07:00
Marcus Efraimsson
d90d4ce55d
Merge pull request #12402 from AustinWinstanley/macros/sql
...
mysql,mssql: improve $__timeFilter, $__timeFrom, $__timeTo macros
The $__timeFilter macro now uses a BETWEEN with timestamps instead of
comparing epochs
The $__timeFrom and $__timeTo macros now return strings of format
YYYY-MM-DDThh:mm:ssZ instead of epoch
2018-07-04 20:01:43 +02:00
Marcus Efraimsson
d2f31a716f
remove unnecessary conversions
2018-07-04 12:16:39 +02:00
Torkel Ödegaard
1f97df46c1
devenv: open ldap docker block now prepopulating data with correct member groups
2018-07-03 12:58:17 +02:00
Leonard Gram
5e08bf5130
test: fixed usage of wrap in tests.
2018-07-02 17:13:59 +02:00
Torkel Ödegaard
6286c31d4b
refactoring: making api wrap public
2018-07-02 14:13:18 +02:00
Torkel Ödegaard
b8724ae0c4
refactoring: enterprise build/hooks refactorings ( #12478 )
2018-07-02 04:33:39 -07:00
Torkel Ödegaard
10e86eda69
fix : #12461 introduced issues with route registration ordering, adding plugin static routes before plugins package had been initiated ( #12474 )
2018-07-01 23:35:50 -07:00
Carl Bergquist
861af4cb97
Improve extensions build. ( #12461 )
...
* enable ee build on pr/master
* step1: of including group sync
* disable commit pinning for now
* fixes broken build
* enable team to ldap group sync
* avoid returning error for missing external handler
* services: allow routes to be added before http server start
* services: allows services to add their own migrations
* moves db migrations to ee code base
* build using master branch in ee
* disable enterprise build in .bra.toml
[skip ci]
* removes team sync extensions
* removes commented line
2018-07-01 07:01:43 -07:00
Sven Klemm
1601f6d17c
[mysql] fix $__timeGroup rounding ( #12469 )
...
* fix $__timeGroup rounding for mysql
* revert accidentally commented out line
2018-07-01 06:59:05 -07:00
Sven Klemm
f017c04a65
[mssql] fix $__timeGroup rounding ( #12470 )
...
* fix $__timeGroup rounding for mssql
* revert enabling of mssql integration tests
2018-07-01 06:57:02 -07:00
Sven Klemm
c2c22c142b
[postgres] fix timeGroup macro rounding ( #12468 )
...
* fix timeGroup tests to check for correct grouping
* do explicit floor rounding in $__timeGroup macro
* fix typo in comments
2018-07-01 06:55:46 -07:00
Will Weber
c03d527d25
pkg/social/github: Allow changing of userinfo data ( #12471 )
...
Experienced a problem where a user whose email changed was no longer
able to login. By using the ID as a primary identifier, we can avoid
conflicts of this variety within the github OAuth provider.
2018-07-01 05:56:16 -07:00
Carl Bergquist
88783d6e0a
avoid calling os.Exit outside main.go ( #12459 )
...
I don't think we should call os.Exit outside main.go. Calling
os.Exit breaks the application control flow.
2018-06-29 22:48:26 -07:00
bergquist
d440b9a8d1
registry: adds more comments
2018-06-29 11:58:54 +02:00
bergquist
f0f6d0e915
registry: adds comments to interfaces
2018-06-29 11:45:32 +02:00
Marcus Efraimsson
59756863df
Merge pull request #12439 from grafana/fix-log-close-too-early
...
Fix: Log close (ie flush) was done too early, before final shutdown log
2018-06-29 10:45:14 +02:00
bergquist
c4292b43f5
alerting: only log when screenshot been uploaded
2018-06-29 09:58:58 +02:00
Austin Winstanley
a0e8437f8f
Used PostgreSQL TSDB as a model the set up the __timeFilter, __timeFrom, and __timeTo macros for Microsoft SQL and MySQL
2018-06-29 03:48:14 +00:00
Austin Winstanley
d663122244
Merge branch 'master' of https://github.com/grafana/grafana into macros/sql
2018-06-29 03:31:23 +00:00
Marcus Efraimsson
8af5da7383
Revert "auth proxy: use real ip when validating white listed ip's"
2018-06-28 15:43:33 +02:00
Torkel Ödegaard
7a7c6f8fab
fix: log close/flush was done too early, before server shutdown log message was called, fixes #12438
2018-06-28 04:38:23 -07:00
Dan Cech
3056d9a80e
support passing api token in Basic auth password ( #12416 )
2018-06-28 03:08:32 -07:00
Augustin
ef0bf9f701
ensure that if the dasboardID is negative, it will not bypass the checking of the right ( #12398 )
2018-06-26 05:12:20 -07:00
bergquist
f83306bb5b
removes unused return object
2018-06-26 09:22:31 +02:00
Dan Cech
583df47c2f
handle "dn" ldap attribute more gracefully ( #12385 )
...
* handle "dn" ldap attribute more gracefully
* use strings.ToLower
2018-06-26 00:14:55 -07:00
Austin Winstanley
c35c1d7270
Merge branch 'master' of https://github.com/grafana/grafana into macros/sql
2018-06-25 20:13:34 +00:00
Austin Winstanley
105b3d6804
Switched MySQL and MSSQL macros for timeFilter and related to use BETWEEN and calculate UNIX time server side instead of database side. Fixes #11618 #11619
2018-06-25 20:11:58 +00:00
Carl Bergquist
175e95abb0
Merge pull request #12396 from bergquist/routing
...
routing: allows routes to be added to existing groups
2018-06-25 17:17:14 +02:00
bergquist
4a46dd886b
routing: raise panic if duplicate routes are added
2018-06-25 16:58:49 +02:00
bergquist
dbfafa1cb5
routing: allows routes to be added to existing groups
...
this enables services to add routing to ex /api
without causing conflicts.
2018-06-25 16:50:27 +02:00
Marcus Efraimsson
f106de0efd
enhance error message if phantomjs executable is not found
...
if arm build, explain that phantomjs is not included by default in arm
builds. If not explain that phantom js isn't installed correctly
2018-06-25 16:06:52 +02:00
Torkel Ödegaard
132df4553c
fix: annnotation api & sql issue
2018-06-25 16:03:38 +02:00
Augustin
eb4d860fcb
Light improve of massive delete annotation api ( #12390 )
...
* fix delete annotations
* fix self assignment
* add right unit test using admin role
2018-06-25 04:58:49 -07:00
Austin Winstanley
defb0396b7
Return a 404 when deleting a datasource through the API if it doesn't exist and add a test for it to confirm #12313
2018-06-22 21:15:36 -05:00
Carl Bergquist
828fb39ee2
Merge pull request #11643 from mrsiano/generic_oauth
...
Pass configured/auth headers to a Datasource.
2018-06-21 14:21:59 +02:00
mrsiano
cc1e3a0e3c
Pass configured/auth headers to a Datasource.
...
In some setups (ex openshift), the Datasource will require Grafana
to pass oauth token as header when sending queries.
Also, this PR allow to send any header which is something
Grafana currently does not support.
2018-06-21 14:58:05 +03:00
bergquist
503c8cd8ef
tech: adds comments about route register code
2018-06-20 16:55:42 +02:00
Carl Bergquist
578a8e8f55
Merge pull request #12322 from bergquist/sqlstore_refactoring
...
expose session and transaction helpers to other services
2018-06-20 10:22:06 +02:00
Marcus Efraimsson
b1cf1acb71
Merge pull request #10970 from mmolnar/master
...
ldap: allow use of DN in group_search_filter_user_attribute and member_of
2018-06-19 14:40:05 +02:00
Marcus Efraimsson
5377ad4e96
remove unused argument in default scenario of guardian test
2018-06-19 12:34:34 +02:00
Torkel Ödegaard
24d0b43e62
fix: fixed permission issue with api key with viewer role in dashboards with default permissions
2018-06-19 11:10:17 +02:00