* feat: create folder if it does not exist
* feat: test the folder creation behaviour
* test: make sure deletion doesn't fail
* test: remove unnecessary settings
* feat: add export endpoint
This is not at all complete, but acts as a good base.
* chore: more todos
* feat: fetch folders and their parents
* feat: export to folders
* refactor: use constant for folder key
(cherry picked from commit d403f5255e)
* add new option for multi variables to lock value list wip
* WIP - lock option list
* tests
* fix
* fixes + canary scenes
* wip
* wip
* fix snapshot
* bump scenes
* Dashboards: Add possibility to lock adhoc variables options list (#96077)
* Lock list of options flag for ad hoc
* refactor
* fix snapshot
* Refactor OAuthToken service
* introduce user.SessionAwareIdentityRequester
* replace login.UserAuth parameters with user.SessionAwareIdentityRequester
* Add nosec G101 to fake ID tokens
* Opt 2, min changes
* Revert a change to the current version
This patch marks ID tokens as not required when initalising a gRPC
Authenticator to be used in `cloud` mode. ID Tokens are still enabled in
`cloud` mode, but the `Required` option is set to `false`.
This is needed for MT services like Cloud API Server to authenticate
against gRPC services like Resource Store with only an Access Token.
Signed-off-by: Prem Kumar <prem.saraswat@grafana.com>
* Add baseAPI
* Restore schemaFile
* Generate endpoints
* Cleanup endpoints
* Update endpoints
* Set up config page
* Add hook
* Rename to provisioning
* Register reducer and middleware
* Separate List and New pages
* Add GitHub config
* Save data
* Fix types
* Display list
* Fix redirect
* Update tags
* Common folder
* Cleanup
* Update public/app/routes/routes.tsx
Co-authored-by: kay delaney <45561153+kaydelaney@users.noreply.github.com>
* Add token permissions instructions
* Add EditPage
* load data for edit
* Update hook
* Show api errors
* Add title and token
* Use test name
* Update token field state
* Add delete button
* Add feedback for delete action
* Sort list
* Do not load items for new page
* Prettier
* Disable type change for edit
* Add title field
* Update pkg/services/navtree/navtreeimpl/admin.go
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
* Update public/app/features/provisioning/ConfigForm.tsx
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
---------
Co-authored-by: kay delaney <45561153+kaydelaney@users.noreply.github.com>
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
* add group mapping UID returned mapped roles
* request mapped roles from the frontend, but don't attempt to update mapped roles
* lock mapped roles and show a pop-up message about why a role is locked
* update role selectors to not allow deselecting a mapped role
* swagger gen
* simplify and set mapped as bool instead of mapping UID array
* swagger gen
* optimize tokens count from service accounts query
* add unit tests for tokens count
* skip broken test
* fix lint error
* rename Tokens to TokenCount
* Move TraceQL metrics queries to backend
* Add tests for TransformMetricsResponse
* Add tests for createMetricsQuery
* Refactor, detect metric queries and throw error for search queries
* Remove unneeded types
* Don't add start and end if they are 0. Return on err
* lint
* Fix pre-alloc of frames
* Address PR comments