grafana/pkg/api
Torkel Ödegaard 8b0dd4244b
Search: Fixes search limits and adds a page parameter (#16458)
* Search: Fixes search limits and adds a page parameter

This adds a page parameter to search api without adding
any major breaking change.

It does at an api validation error when trying to use
a limit beyond 5000. This is a breaking change. We could
remove this and have it only in the docs and describe that this
is a limit that grafana will apply silently.

Fixes #16049

* Fix: Corrected wrong array slice change

* Docs: minor docs fix

* Search: fixed folder tests

* Fixed: Moved limit to correct inner query

* Search: moving limit check and page check

* Search: limit in handler is no longer needed
2019-04-17 13:07:50 +02:00
..
avatar Fix megacheck issue unused code. 2018-10-01 18:23:59 +02:00
dtos feat(api): support list/revoke auth token in admin/current user api 2019-03-08 15:15:38 +01:00
live Fix megacheck issue unused code. 2018-10-01 18:23:59 +02:00
pluginproxy Security: Store datasource passwords encrypted in secureJsonData (#16175) 2019-04-15 11:11:17 +02:00
routing removes unused return object 2018-06-26 09:22:31 +02:00
static pkg: fix codespell issues 2018-04-13 20:31:29 +02:00
admin_users_test.go feat(api): support list/revoke auth token in admin/current user api 2019-03-08 15:15:38 +01:00
admin_users.go feat(api): support list/revoke auth token in admin/current user api 2019-03-08 15:15:38 +01:00
admin.go Initial Baby Step to refactoring settings from global vars to instance (#11777) 2018-04-30 16:21:04 +02:00
alerting_test.go Fix Error 500 on unexisting /api/alert-notification/<id> 2019-01-13 21:30:20 +02:00
alerting.go Alerting: Notification channel http api fixes (#16379) 2019-04-04 17:52:40 +02:00
annotations_test.go Added PATCH verb end point for annotation op 2019-02-05 09:43:17 +10:00
annotations.go Address review comments 2019-02-06 06:41:39 +10:00
api.go Search: Fixes search limits and adds a page parameter (#16458) 2019-04-17 13:07:50 +02:00
apikey.go Make golint happier 2018-03-22 22:38:44 +01:00
app_routes.go Plugins: Unifying alpha state & options for all plugins (#16530) 2019-04-12 13:46:42 +02:00
basic_auth_test.go Re-organize packages and add basic auth test 2018-11-19 13:54:13 -05:00
basic_auth.go Re-organize packages and add basic auth test 2018-11-19 13:54:13 -05:00
common_test.go Chore: use remote cache instead of session storage (#16114) 2019-04-08 14:31:46 +03:00
common.go refactoring: making api wrap public 2018-07-02 14:13:18 +02:00
dashboard_permission_test.go test: fixed usage of wrap in tests. 2018-07-02 17:13:59 +02:00
dashboard_permission.go permission: generate team avatar url with default 2018-04-04 15:50:45 +02:00
dashboard_snapshot_test.go snapshots: Add support for deleting external snapshots 2018-12-10 18:47:23 -05:00
dashboard_snapshot.go moves metric package to /infra 2019-02-24 21:12:51 +01:00
dashboard_test.go Provisioning: Do not allow deletion of provisioned dashboards (#16211) 2019-04-10 13:29:10 +02:00
dashboard.go build: upgrades to golang 1.12.4 (#16545) 2019-04-15 09:18:28 +02:00
dataproxy_test.go dataproxy should forward a trailing slash to proxy 2018-10-03 12:55:01 +02:00
dataproxy.go Add custom header with grafana user and a config switch for it 2019-03-14 16:33:19 +01:00
datasources_test.go 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
datasources.go permissions: cleanup. 2018-10-17 15:58:52 +02:00
folder_permission_test.go test: fixed usage of wrap in tests. 2018-07-02 17:13:59 +02:00
folder_permission.go permissions: return user and team avatar in folder permissions api 2018-04-04 15:51:19 +02:00
folder_test.go Search: Fixes search limits and adds a page parameter (#16458) 2019-04-17 13:07:50 +02:00
folder.go Search: Fixes search limits and adds a page parameter (#16458) 2019-04-17 13:07:50 +02:00
frontendsettings.go Security: Store datasource passwords encrypted in secureJsonData (#16175) 2019-04-15 11:11:17 +02:00
grafana_com_proxy.go pkg/util/{ip.go,url.go}: Fix some golint issues 2019-01-28 22:29:20 +01:00
http_server_test.go Re-organize packages and add basic auth test 2018-11-19 13:54:13 -05:00
http_server.go Chore: use remote cache instead of session storage (#16114) 2019-04-08 14:31:46 +03:00
index.go teams: viewers and editors can view teams 2019-03-19 14:01:14 +01:00
login_oauth.go Merge branch 'master' into 12556-oauth-pass-thru 2019-03-13 14:25:43 -04:00
login.go build: partially replace gometalinter with golangci-lint (#16610) 2019-04-16 10:27:07 +02:00
metrics.go log error on datasource access denied 2018-10-30 09:32:32 +01:00
org_invite.go Return 404 on user not found (#15606) 2019-03-02 20:34:48 +01:00
org_users.go Merge pull request #13611 from grafana/remove-user-from-org-and-system 2018-10-11 21:54:07 +02:00
org.go moves metric package to /infra 2019-02-24 21:12:51 +01:00
password.go Prevent password reset when login form is disabled or either LDAP or Auth Proxy is enabled 2018-12-03 15:32:26 +02:00
playlist_play.go fix: Return url when query dashboards by tag 2019-02-28 10:44:39 +01:00
playlist.go HTTP API documentation +fix when updating a playlist (#12612) 2018-07-17 07:45:38 -07:00
plugins.go Plugins: Unifying alpha state & options for all plugins (#16530) 2019-04-12 13:46:42 +02:00
preferences.go feat: team preferences 2018-11-12 20:01:53 +01:00
quota.go Make golint happier 2018-03-22 22:38:44 +01:00
render.go pkg/util/{ip.go,url.go}: Fix some golint issues 2019-01-28 22:29:20 +01:00
search.go Search: Fixes search limits and adds a page parameter (#16458) 2019-04-17 13:07:50 +02:00
signup.go moves metric package to /infra 2019-02-24 21:12:51 +01:00
stars.go Make golint happier 2018-03-22 22:38:44 +01:00
team_members.go teams: local access to bus, moving away from dep on global. 2019-03-19 14:01:20 +01:00
team_test.go teams: moved logic for searchteams to backend 2019-03-19 14:01:15 +01:00
team.go permissions: removes global access to bus from MakeUserAdmin. 2019-03-19 14:01:20 +01:00
user_test.go admin: adds paging to global user list 2017-02-13 12:59:36 +01:00
user_token_test.go feat(api): support list/revoke auth token in admin/current user api 2019-03-08 15:15:38 +01:00
user_token.go feat(api): support list/revoke auth token in admin/current user api 2019-03-08 15:15:38 +01:00
user.go Fixed bug with getting teams for user 2019-02-22 14:07:18 +01:00