SearchKit - Autogenerate default display table for saved searches; calculate links...
authorColeman Watts <coleman@civicrm.org>
Wed, 27 Oct 2021 05:22:23 +0000 (01:22 -0400)
committerColeman Watts <coleman@civicrm.org>
Sun, 31 Oct 2021 15:00:58 +0000 (11:00 -0400)
commitea04af0c9483be804df873fbb54515e97286662a
tree814162b98dc99b3c37f36d62baa8bd954b7c9265
parentd0c97a50ea4e36b57ea2773940760a92f9984a7a
SearchKit - Autogenerate default display table for saved searches; calculate links by entity+action

This adds a SearchDisplay.getDefault APIv4 action, which autogenerates the default table display
which is used on the admin screen.

It also refactors links so they can be calculated based on a given entity+action which does not
require paths to be stored in the search display.
13 files changed:
Civi/Api4/Query/Api4SelectQuery.php
Civi/Api4/Query/SqlFunction.php
ext/search_kit/Civi/Api4/Action/SearchDisplay/AbstractRunAction.php
ext/search_kit/Civi/Api4/Action/SearchDisplay/Download.php
ext/search_kit/Civi/Api4/Action/SearchDisplay/GetDefault.php [new file with mode: 0644]
ext/search_kit/Civi/Api4/Action/SearchDisplay/Run.php
ext/search_kit/Civi/Api4/Action/SearchDisplay/SavedSearchInspectorTrait.php [new file with mode: 0644]
ext/search_kit/Civi/Api4/SearchDisplay.php
ext/search_kit/Civi/Search/Admin.php
ext/search_kit/Civi/Search/Display.php
ext/search_kit/ang/crmSearchAdmin/crmSearchAdmin.component.js
ext/search_kit/ang/crmSearchAdmin/displays/searchAdminDisplayTable.component.js
ext/search_kit/ang/crmSearchAdmin/resultsTable/crmSearchAdminResultsTable.component.js