-
- Downloads
Static embed dashboard and question endpoints (#47270)
* entity id translation + tests
* add api level test
* simplify definition of eid-table->model + add test
* update tests to take keywords
* improve comment
* generate the eid-table->model map
* delete now-obsolete test
* make it work in oss
* put the resulting response into a key, so we can add more information later
* formatting
* use model names without the model/ prefix as keys
* Creates list of `api/model->db-model`
- update keys for util/entity_id request
- update shape of util/entity_id response
- add test for not-found eids
* formatting
* Respond to code review feedback
* entity-ids work on /embed/{card,dashboard}* routes
* make entity id translation work for all tokens
* Merge branch 'static-embed-dashboard-and-question-endpoints' of github.com:metabase/metabase into static-embed-dashboard-and-question-endpoints
* massage schema. add tons of tests
* decode more eids
* test alignment
* don't require ns inside of itself :think:
* make the test functions to create tokens better
* bring back `dashboard-url`
---------
Co-authored-by:
Oisin Coveney <oisin@metabase.com>
Showing
- src/metabase/api/embed.clj 43 additions, 15 deletionssrc/metabase/api/embed.clj
- src/metabase/api/embed/common.clj 99 additions, 67 deletionssrc/metabase/api/embed/common.clj
- test/metabase/api/embed_test.clj 304 additions, 106 deletionstest/metabase/api/embed_test.clj
- test/metabase/api/util_test.clj 1 addition, 1 deletiontest/metabase/api/util_test.clj
This diff is collapsed.
Please register or sign in to comment