mirror of https://github.com/grafana/grafana
BackendSrv: Make it possible to pass `options` to `.get|post|patch...` methods (#51316)
* feat: make it possible to pass in `options` to `.get()`, `.post()`, etc methods * feat(Datasource): make it possible to specify `optinos` for `getResource()` and `postResource()` * fix(BackendSrv): use partial `BackendSrvRequest` * feat(Datasource): make it possible to set `options` for resource requests * refactor(BackendSrv): remove internal usage of `.request()` * fix(GettingStarted): remove unnecessary import * fix: fix type issues by typing the delete dashboard response * refactor: use more strict types for `params` By reusing the type of `BackendSrvRequest.params` * refactor: make the options paramater partial * fix: extract `data` from the fetch response * docs: update the deprecation notice or `BackendSrv.request()` * refactor: use `.request()` as if it was private * refactor: remove unnecessary changepull/56266/head
parent
489b302c03
commit
cc6fae18db
Loading…
Reference in new issue