Skip to content
This repository has been archived by the owner on Apr 26, 2021. It is now read-only.

get/set folder permission routes #6

Merged
merged 1 commit into from
Feb 19, 2021
Merged

Conversation

domasx2
Copy link
Collaborator

@domasx2 domasx2 commented Feb 18, 2021

Added two routes to get /set folder permissions.
This is rather naive, using hte same model from grafana as payload and return body.
I see that grafana returns a lot more stuff with GET ,some related to dasboards only. Not sure that we should or can have all that right now

"github.com/grafana/grafana/pkg/api/dtos"
)

// swagger:route GET /api/v1/folder/{Id}/permissions Folders RouteGetFolderPermissions
Copy link
Collaborator

@papagian papagian Feb 18, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we change it to UID? In grafana API we use UIDs for identification.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there are no UUIDS in prom/cortex API for namespaces, just the namespace name. So I think we'll have to use that (as id)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

grafana folders have also an Id (int) field so that parameter name would be confusing for the grafana users.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, what do you suggest? {Namespace}? {Folder}?

@domasx2 domasx2 merged commit 50f0fbb into master Feb 19, 2021
@owen-d owen-d deleted the domas/folder-permissions branch March 4, 2021 12:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants