metabase / metabase

The simplest, fastest way to get business intelligence and analytics to everyone in your company :yum:
https://metabase.com
Other
38.15k stars 5.05k forks source link

0.48 version: get-apidashboard api method missing #36939

Closed nosovk closed 9 months ago

nosovk commented 9 months ago

Describe the bug

Prior to 0.47 version there was an api method get-apidashboard see docs but it's missing in 0.48 build.

There was no announcement of that api method removal

To Reproduce

  1. Install 0.48 method
  2. Try to invoke https://www.metabase.com/docs/v0.47/api/dashboard#get-apidashboard
  3. See error

Expected behavior

I expect to be able to use previously existing api, or at least some noification about api deprecation at least

Logs

No response

Information about your Metabase installation

- metabase 0.48
- database postgresql

Severity

blocking an upgrade

Additional context

No response

### Tasks
paoliniluis commented 9 months ago

Hey, we put that here https://github.com/metabase/metabase/issues/35365, but seems that the long list of things we shipped swallowed it through.

You will need to call the collections endpoint, get the collections, then iterate over those and get the dashboards of each of those, and then get iterate on dashboards and get the details of each.

A sample of that approach can be seen here: https://github.com/paoliniluis/metagraph/blob/a1c87f38a48d457d35dc6341af0d82135b2a3d14/main.py#L257C44-L257C44

sz-roney-maia commented 9 months ago

Hey, we put that here #35365, but seems that the long list of things we shipped swallowed it through.

You will need to call the collections endpoint, get the collections, then iterate over those and get the dashboards of each of those, and then get iterate on dashboards and get the details of each.

A sample of that approach can be seen here: https://github.com/paoliniluis/metagraph/blob/a1c87f38a48d457d35dc6341af0d82135b2a3d14/main.py#L257C44-L257C44

Hello, the removal of this endpoint has caused some issues in applications, plugins, and microservices that I manage, as well as in those of other developers I know. Was its removal really necessary?

insorion commented 9 months ago

this is breaking change, we hade some hard time to find out what was wrong, and currently mitigating issue by blocking update of our metabase instance. But I hope there will be some solution to get that functionality back to new version, because we can't use version that has no security updates....