grafana-toolbox / grafana-client

Python client library for accessing the Grafana HTTP API.
MIT License
106 stars 30 forks source link

Grafana 10.2.3: breaking changes #147

Closed hamelg closed 8 months ago

hamelg commented 10 months ago

Describe the bug

Grafana-client is no longer compatible with the data source permissions APIs of grafana Enterprise 10.2.3.

https://grafana.com/blog/2024/01/08/grafana-10.2.3-release-new-features-and-breaking-changes

The following data source permission endpoints have been removed:

replaced by:

Versions

amotl commented 10 months ago

Dear Gilles,

thank you for your report. I am curious about two details.

a) I guess it will be similar with Grafana OSS? you have any information about that?

b) Do you think it will be a good measure to add the corresponding implementations to rbac.py contributed by you the other day on behalf of GH-60? In this spirit, the previous implementation would just be kept for backward-compatibility reasons, we'd slap a deprecation notice on them, but otherwise leave them untouched, and build up the new implementation in parallel.

With kind regards, Andreas.

hamelg commented 10 months ago

Hello Andreas,

This change only affects the enterprise version, as data source permissions are only available in Grafana Enterprise [1].

I agree with your plan :

I'm adding this task to my to-do list.

[1] https://grafana.com/docs/grafana/latest/developers/http_api/datasource_permissions/

amotl commented 10 months ago

Thank you very much for your assessment, and your quick reply. If you could support the project by submitting the pull request yourself, it will be great!

amotl commented 8 months ago

Hi again. Thanks for your support by submitting GH-152 and GH-156. grafana-client 3.11.2 has been released, including your changes. Do you think this issue can be closed?

hamelg commented 8 months ago

Yes, thank you. I close it.