Skip to content
Snippets Groups Projects
Unverified Commit 6ec4b1d5 authored by Tim Macdonald's avatar Tim Macdonald Committed by GitHub
Browse files

Add model_id to action search results so that URLs can be made (#28566)

* Add `model_id` to action search results so that URLs can be made

[Fixes #28565]

* Fix typo in Cypress filename
parent 91745f6b
No related branches found
No related tags found
No related merge requests found
......@@ -91,6 +91,7 @@
;; returned for Database and Table
:initial_sync_status :text
;; returned for Action
:model_id :integer
:model_name :text))
;;; +----------------------------------------------------------------------------------------------------------------+
......
......@@ -133,7 +133,8 @@
[_]
(conj default-columns :model_id
[:model.collection_id :collection_id]
[:model.name :model_name]))
[:model.id :model_id]
[:model.name :model_name]))
(defmethod columns-for-model "card"
[_]
......
......@@ -54,6 +54,7 @@
:description nil
:id true
:initial_sync_status nil
:model_id false
:model_name nil
:moderated_status nil
:table_description nil
......@@ -94,7 +95,7 @@
test-collection
(make-result "card test card", :model "card", :bookmark false, :dataset_query nil, :dashboardcard_count 0)
(make-result "dataset test dataset", :model "dataset", :bookmark false, :dataset_query nil, :dashboardcard_count 0)
(make-result "action test action", :model "action", :model_name (:name action-model-params))
(make-result "action test action", :model "action", :model_name (:name action-model-params), :model_id true)
(merge
(make-result "metric test metric", :model "metric", :description "Lookin' for a blueberry")
(table-search-results))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment