Skip to content
This repository has been archived by the owner on Jun 22, 2020. It is now read-only.

Issue #2899254: Integrate editorial search with Search API module #434

Open
wants to merge 193 commits into
base: 8.x-2.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 128 commits
Commits
Show all changes
193 commits
Select commit Hold shift + click to select a range
20c502c
Add search_api and facet module
chrfritsch Sep 12, 2017
8389d0d
Add VBO and index+server
chrfritsch Oct 16, 2017
c192fbf
Add facets
chrfritsch Oct 17, 2017
49dfacc
Use facets dev
chrfritsch Nov 2, 2017
d266358
Add toolbar
chrfritsch Nov 2, 2017
b37766a
Style content overview and remove toolbar block
chrfritsch Nov 7, 2017
5df7e38
Add db command patch
chrfritsch Nov 7, 2017
5b87def
Merge branch 'develop' into feature/2899254-integrate_editorial_searc…
chrfritsch Nov 7, 2017
5641d3d
Apply patches before dump creation
chrfritsch Nov 7, 2017
f938bec
Try to fix config
chrfritsch Nov 7, 2017
fd6ad2d
Merge branch 'develop' into feature/2899254-integrate_editorial_searc…
chrfritsch Nov 10, 2017
9f8ddb5
Fix config
chrfritsch Nov 10, 2017
17febb7
Merge branch 'develop' into feature/2899254-integrate_editorial_searc…
dbosen Nov 13, 2017
993c89b
Merge branch 'develop' into feature/2899254-integrate_editorial_searc…
chrfritsch Nov 14, 2017
1e7a320
Merge branch 'feature/2899254-integrate_editorial_search_with_search_…
chrfritsch Nov 14, 2017
0b7fed7
WIP
chrfritsch Nov 14, 2017
41a566c
Fix cs
chrfritsch Nov 14, 2017
5ae3f8f
Merge branch 'develop' into feature/2899254-integrate_editorial_searc…
chrfritsch Nov 14, 2017
f91dca3
WIP
chrfritsch Nov 15, 2017
1b9a54d
Merge branch 'develop' into feature/2899254-integrate_editorial_searc…
chrfritsch Nov 16, 2017
74bdf5d
WIP
chrfritsch Nov 16, 2017
d9fc9ec
Merge branch 'develop' into feature/2899254-integrate_editorial_searc…
chrfritsch Nov 23, 2017
87b1690
WIP
chrfritsch Nov 24, 2017
3d49485
Merge branch 'develop' into feature/2899254-integrate_editorial_searc…
chrfritsch Nov 27, 2017
859bba8
WIP
chrfritsch Nov 30, 2017
2c8cdf7
Merge branch 'feature/2899254-integrate_editorial_search_with_search_…
chrfritsch Nov 30, 2017
12f2876
Stable versions
chrfritsch Dec 5, 2017
f7d9c6a
Finalize content search
chrfritsch Dec 5, 2017
ee3fe89
Merge branch 'develop' into feature/2899254-integrate_editorial_searc…
chrfritsch Dec 5, 2017
716f951
Update media view
chrfritsch Dec 6, 2017
7f235a8
Add media facets
chrfritsch Dec 6, 2017
917b2d0
Use search api in entity browser
chrfritsch Dec 7, 2017
ba7cac9
Merge branch 'develop' into feature/2899254-integrate_editorial_searc…
chrfritsch Dec 20, 2017
9393f66
Merge branch 'develop' into feature/2899254-integrate_editorial_searc…
chrfritsch Jan 19, 2018
4206ebf
Merge branch 'develop' into feature/2899254-integrate_editorial_searc…
chrfritsch Feb 19, 2018
2f6138b
Update modules and patches
chrfritsch Feb 19, 2018
a3386b7
Fix makefile
chrfritsch Feb 19, 2018
6d721a2
Merge branch 'develop' into feature/2899254-integrate_editorial_searc…
chrfritsch Feb 20, 2018
081b6eb
Add missing configs
chrfritsch Feb 20, 2018
6033735
Add local tasks to content view
chrfritsch Feb 20, 2018
9401202
Remove on all paths
chrfritsch Feb 21, 2018
a805017
Fix CS
chrfritsch Feb 21, 2018
3ab390b
Merge branch 'develop' into feature/2899254-integrate_editorial_searc…
chrfritsch Feb 21, 2018
e8b3e3b
Use config_selector for content view replacement
chrfritsch Feb 21, 2018
b4c1f1e
Use config_selector for media search
chrfritsch Feb 21, 2018
187d11f
Remove not used file
chrfritsch Feb 21, 2018
e49a670
Merge branch 'develop' into feature/2899254-integrate_editorial_searc…
chrfritsch Feb 23, 2018
02123b6
Use config_selector to get enabled media view
chrfritsch Feb 23, 2018
5925e84
Try to fix config
chrfritsch Feb 23, 2018
f8b630a
Update search_api
chrfritsch Feb 26, 2018
38326cf
Merge branch 'develop' into feature/2899254-integrate_editorial_searc…
chrfritsch Mar 5, 2018
e37591e
Merge branch 'develop' into feature/content-view-local-tasks
chrfritsch Mar 6, 2018
ae5fa45
Remove content_lock and scheduler fields
chrfritsch Mar 6, 2018
a4d5f91
Rename filters
chrfritsch Mar 6, 2018
2316bc6
Enhance check for scheduler menu item
chrfritsch Mar 6, 2018
f0295b1
Add required modules and reimport content view
chrfritsch Mar 6, 2018
d9dac01
Check if route exists
chrfritsch Mar 6, 2018
a719ca0
Recover view only when content_lock was removed
chrfritsch Mar 6, 2018
8b8f696
Wrong hook name
chrfritsch Mar 6, 2018
815fdb5
CS fixes
chrfritsch Mar 6, 2018
8ea6215
Add break
chrfritsch Mar 6, 2018
23adcae
Add config form
chrfritsch Mar 7, 2018
2c701c4
Add tests
chrfritsch Mar 7, 2018
d18e6b5
Cleanup
chrfritsch Mar 7, 2018
a3f70ef
Add group annotation
chrfritsch Mar 7, 2018
96a1d6d
Import new content lock view
chrfritsch Mar 7, 2018
3c75d72
Add update checklist point
chrfritsch Mar 8, 2018
80f355e
Change wording
chrfritsch Mar 8, 2018
84d52eb
Fix CS issue
chrfritsch Mar 8, 2018
cf8088e
Merge branch 'develop' into feature/content-view-local-tasks
chrfritsch Mar 8, 2018
02a2ae8
Remove cache clears from Configuration form
alexpott Mar 8, 2018
516dc4e
Fix caching
alexpott Mar 8, 2018
ef71d50
Less code and get to use a XOR
alexpott Mar 8, 2018
c781822
Less brakcets
alexpott Mar 8, 2018
565b959
Do less in the loop and explain why \Drupal::service('config.factory'…
alexpott Mar 8, 2018
b523dca
Merge branch 'feature/content-view-local-tasks' into feature/2899254-…
chrfritsch Mar 12, 2018
a77e1c9
Remove EB search api view
chrfritsch Mar 12, 2018
4d24654
Merge branch 'develop' into feature/2899254-integrate_editorial_searc…
chrfritsch Mar 12, 2018
5bbb4f4
Merge branch 'develop' into feature/2899254-integrate_editorial_searc…
chrfritsch Mar 12, 2018
efeaf52
Make search integration not enabled by default
chrfritsch Mar 13, 2018
c03410e
Fix config test
chrfritsch Mar 13, 2018
21d934a
Merge branch 'develop' of https://github.com/BurdaMagazinOrg/thunder-…
chrfritsch Mar 13, 2018
64c84ac
Add tests
chrfritsch Mar 13, 2018
ea686ac
[TEST_UPDATE=true] Trigger update test path
chrfritsch Mar 13, 2018
5ddb005
[TEST_UPDATE=true] Trigger update test path
chrfritsch Mar 13, 2018
c2c4d5f
Add config_selector UI
chrfritsch Mar 14, 2018
24877f9
Merge branch 'develop' into feature/2899254-integrate_editorial_searc…
chrfritsch Mar 15, 2018
778eebf
Add channel faces, update config_selector
chrfritsch Mar 15, 2018
cfdad76
Merge branch 'develop' into feature/2899254-integrate_editorial_searc…
chrfritsch Apr 3, 2018
341678a
Merge branch '8.x-2.x' into feature/2899254-integrate_editorial_searc…
chrfritsch Apr 4, 2018
1147d01
Merge branch '8.x-2.x' into feature/2899254-integrate_editorial_searc…
chrfritsch Apr 5, 2018
e56a4f8
Fix CS
chrfritsch Apr 5, 2018
245da54
Merge branch '8.x-2.x' into feature/2899254-integrate_editorial_searc…
chrfritsch Apr 23, 2018
84242e8
Adding descriptions
chrfritsch Apr 23, 2018
3af291c
Merge branch '8.x-2.x' into feature/2899254-integrate_editorial_searc…
dbosen May 2, 2018
c3105fd
Merge branch '8.x-2.x' into feature/2899254-integrate_editorial_searc…
chrfritsch Jul 25, 2018
0543e40
Merge branch '8.x-2.x' into feature/2899254-integrate_editorial_searc…
chrfritsch Jul 25, 2018
4f25d1e
Merge branch '8.x-2.x' into feature/2899254-integrate_editorial_searc…
chrfritsch Aug 2, 2018
0107f18
Fix configs
chrfritsch Aug 2, 2018
a695a6c
Merge branch '8.x-2.x' into feature/2899254-integrate_editorial_searc…
chrfritsch Aug 27, 2018
1dece5a
Merge branch '8.x-2.x' into feature/2899254-integrate_editorial_searc…
chrfritsch Sep 18, 2018
ae259a6
Update search api
chrfritsch Sep 19, 2018
df2d353
Use select2 widget
chrfritsch Sep 20, 2018
91d0d8e
Merge branch '8.x-2.x' into feature/2899254-integrate_editorial_searc…
chrfritsch Oct 2, 2018
badfa1d
Add tags facet
chrfritsch Oct 4, 2018
3098241
Use select2 facet widget
chrfritsch Oct 10, 2018
467cef3
Add views bulk patch
chrfritsch Oct 17, 2018
8e64f41
Merge branch '8.x-2.x' into feature/2899254-integrate_editorial_searc…
chrfritsch Oct 18, 2018
0c46aa7
Update facets
chrfritsch Oct 18, 2018
bf9e4ed
Fix CS
chrfritsch Oct 18, 2018
cea413c
Add dev branch of select2
chrfritsch Oct 18, 2018
eef4ee2
Cleanup
chrfritsch Oct 19, 2018
fc0beca
Show message
chrfritsch Oct 22, 2018
49c9122
WIP
chrfritsch Oct 23, 2018
10d6fd8
Merge branch '8.x-2.x' into feature/2899254-integrate_editorial_searc…
dbosen Oct 24, 2018
9b9daf7
Fix test
chrfritsch Oct 25, 2018
6038bd3
Fix InstalledConfigurationTest
chrfritsch Oct 25, 2018
08266a2
Add empty behavior text
chrfritsch Oct 25, 2018
4424823
Hide status facet without narrowing results
chrfritsch Oct 25, 2018
a30aded
Fix comments
chrfritsch Oct 29, 2018
8e95a3c
WIP
chrfritsch Oct 30, 2018
134c8ba
Add patches
chrfritsch Nov 6, 2018
00a17dc
Add patch to correct module
chrfritsch Nov 6, 2018
8029ecc
Merge branch '8.x-2.x' into feature/2899254-integrate_editorial_searc…
chrfritsch Nov 6, 2018
9d9d072
Show numbers
chrfritsch Nov 6, 2018
d34f2bd
Change width
chrfritsch Nov 7, 2018
4e5fe5b
Cache views
chrfritsch Nov 7, 2018
a30a5f2
Update views
chrfritsch Nov 8, 2018
eaf714f
Remove empty behavior
chrfritsch Nov 8, 2018
98606a9
Add search_api_db as a soft dependency
chrfritsch Nov 9, 2018
7f2c832
Add new search api patch
chrfritsch Nov 12, 2018
64387ff
Update patch
chrfritsch Nov 12, 2018
d18e3e1
Activate query preserving
chrfritsch Nov 13, 2018
e5dafed
Add view classes
chrfritsch Nov 13, 2018
1bb3710
Fix patch path
chrfritsch Nov 13, 2018
af70c51
Show titles with config
chrfritsch Nov 14, 2018
7dd9b11
Merge branch '8.x-2.x' into feature/2899254-integrate_editorial_searc…
dbosen Nov 15, 2018
9468567
Merge branch '8.x-2.x' into feature/2899254-integrate_editorial_searc…
dbosen Nov 21, 2018
4cd7377
Merge branch '8.x-2.x' into feature/2899254-integrate_editorial_searc…
chrfritsch Dec 13, 2018
28964ea
Kill thunder_search
chrfritsch Dec 13, 2018
6b10e70
Kill thunder_search leftovers
chrfritsch Dec 13, 2018
1c17ccb
Update search_api
chrfritsch Dec 13, 2018
119a25e
Merge branch '8.x-2.x' into feature/2899254-integrate_editorial_searc…
chrfritsch Dec 13, 2018
4e917d0
Cleanup config
chrfritsch Dec 13, 2018
9df45a5
Update patches
chrfritsch Jan 7, 2019
e9cd588
Remove unneeded patch
chrfritsch Jan 7, 2019
bddd62b
Merge branch '8.x-2.x' into feature/2899254-integrate_editorial_searc…
chrfritsch Jan 14, 2019
b25f2e8
Merge branch '8.x-2.x' into feature/2899254-integrate_editorial_searc…
chrfritsch Jan 16, 2019
9d6eaa5
Merge branch '8.x-2.x' into feature/2899254-integrate_editorial_searc…
dbosen Jan 17, 2019
bddeb01
Add performance
chrfritsch Jan 17, 2019
84061fe
Add search_api view displays
chrfritsch Jan 17, 2019
18f272e
Fix tests
chrfritsch Jan 18, 2019
a2c30d1
Back to current core version
chrfritsch Jan 22, 2019
49ebf04
Merge branch '8.x-2.x' into feature/2899254-integrate_editorial_searc…
dbosen Jan 28, 2019
fccc075
Add facet item limits
chrfritsch Jan 29, 2019
91e4757
Add facets patxh
chrfritsch Jan 31, 2019
e374488
Remove media view
chrfritsch Feb 6, 2019
24015b1
Merge branch '8.x-2.x' into feature/2899254-integrate_editorial_searc…
chrfritsch Feb 6, 2019
99d97d4
Remove core patch
chrfritsch Feb 7, 2019
b083776
Use block building in our facet block
chrfritsch Feb 7, 2019
7d9f5eb
Simplify code
chrfritsch Feb 7, 2019
e3309fd
Render facet all the time
chrfritsch Feb 8, 2019
0549f61
Use facet blocks
chrfritsch Feb 8, 2019
49f7d44
Make select2 work
chrfritsch Feb 12, 2019
32ee3ce
Update facets
chrfritsch Feb 13, 2019
71250b6
Update patches
chrfritsch Feb 14, 2019
1f53f2f
New patch
chrfritsch Feb 18, 2019
da242f4
Merge branch '8.x-2.x' into feature/2899254-integrate_editorial_searc…
chrfritsch Feb 20, 2019
3354f4d
Add fulltext block
chrfritsch Feb 20, 2019
048aab8
Update patches
chrfritsch Feb 22, 2019
570e44f
Merge branch '8.x-2.x' into feature/2899254-integrate_editorial_searc…
chrfritsch Feb 22, 2019
1a17609
Remove patch
chrfritsch Feb 25, 2019
2e56812
Remove committed patch
chrfritsch Feb 26, 2019
3f45b29
add search_api outdated items flagging
ol0lll Mar 6, 2019
c1e1b6d
Add data attr to search_api view output
ol0lll Mar 6, 2019
62c966e
Merge branch 'feature/2899254-integrate_editorial_search_with_search_…
ol0lll Mar 6, 2019
d9bf3ba
use combined patch to fix views caching
ol0lll Mar 6, 2019
26c83a1
Merge branch '8.x-2.x' into feature/2899254-integrate_editorial_searc…
chrfritsch Mar 19, 2019
c4d811a
move blocks to theme
ol0lll Mar 20, 2019
0bdb1bc
Merge branch '8.x-2.x' into feature/2899254-integrate_editorial_searc…
chrfritsch Mar 20, 2019
995e61a
Move to update helper
chrfritsch Mar 20, 2019
18474aa
Merge branch 'feature/2899254-integrate_editorial_search_with_search_…
ol0lll Mar 20, 2019
a06ab07
REVERT BEFORE COMMIT: switch to thunder_admin branch
ol0lll Mar 20, 2019
28f4efd
Revert "REVERT BEFORE COMMIT: switch to thunder_admin branch"
ol0lll Mar 20, 2019
0f0ef0d
REVERT BEFORE COMMIT: switch to thunder_admin branch using composer.json
ol0lll Mar 20, 2019
28bd98c
Fix composer.json
dbosen Mar 21, 2019
5b3c462
Fix branch
chrfritsch Mar 21, 2019
a097037
Merge branch '8.x-2.x' into feature/2899254-integrate_editorial_searc…
chrfritsch Mar 21, 2019
4cada2d
Merge branch '8.x-2.x' into feature/2899254-integrate_editorial_searc…
chrfritsch Mar 29, 2019
6885e12
Merge branch '8.x-2.x' of github.com:BurdaMagazinOrg/thunder-distribu…
ol0lll Apr 16, 2019
73aad0e
Merge branch '8.x-2.x' of github.com:BurdaMagazinOrg/thunder-distribu…
ol0lll May 6, 2019
1d31aac
use facets release
ol0lll May 7, 2019
01d3c0b
Merge branch '8.x-2.x' into feature/2899254-integrate_editorial_searc…
chrfritsch May 15, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,15 @@
"drupal/entity_browser": {
"Provide inline entity form FieldWidgetDisplay": "https://www.drupal.org/files/issues/2858438_6.patch"
},
"drupal/search_api": {
"Support entity 'operations' in Views": "https://www.drupal.org/files/issues/2861832-6--views_entity_operations.patch",
"VBO on a Search API view with facets didn't work": "https://www.drupal.org/files/issues/2018-11-06/3011743-2.patch"
},
"drupal/scheduler": {
"Scheduler integration with core Content moderation": "https://www.drupal.org/files/issues/2018-08-02/2798689-102.patch"
},
"drupal/views_bulk_operations": {
"Fatal error when executing simple actions on Adminimal theme": "https://www.drupal.org/files/issues/2018-09-19/views_bulk_operations-theme_error-2952498-29.patch"
}
}
},
Expand Down Expand Up @@ -105,6 +112,7 @@
"drupal/entity_browser": "1.6",
"drupal/entity_reference_revisions": "^1.0",
"drupal/fb_instant_articles": "dev-1.x",
"drupal/facets": "^1.0",
"drupal/field_group": "^1.0",
"drupal/focal_point": "^1.0",
"drupal/google_analytics": "^2.0",
Expand All @@ -130,6 +138,7 @@
"drupal/redirect": "^1.0",
"drupal/riddle_marketplace": "^2.0",
"drupal/scheduler": "1.0",
"drupal/search_api": "1.10",
"drupal/select2": "^1.0",
"drupal/simple_sitemap": "^2.0",
"drupal/shariff": "^1.0",
Expand All @@ -138,6 +147,7 @@
"drupal/thunder_admin": "^1.0 || ^2.0-beta15",
"drupal/token": "^1.0",
"drupal/video_embed_field": "^1.0",
"drupal/views_bulk_operations": "2.4",
"drupal/views_load_more": "dev-1.x",
"valiton/harbourmaster": "~8.1",
"bower-asset/dropzone": "^5.1",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
langcode: en
status: true
dependencies:
enforced:
module:
- config_selector
id: thunder_content_view
label: 'Content view'
description: 'The main view for editing content'
9 changes: 9 additions & 0 deletions config/install/config_selector.feature.thunder_media_view.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
langcode: en
status: true
dependencies:
enforced:
module:
- config_selector
id: thunder_media_view
label: 'Media view'
description: 'The main view for editing media items'
5 changes: 5 additions & 0 deletions config/optional/views.view.content.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ dependencies:
- media_entity
- node
- user
- config_selector
id: content
label: Content
module: node
Expand All @@ -17,6 +18,10 @@ tag: default
base_table: node_field_data
base_field: nid
core: 8.x
third_party_settings:
config_selector:
feature: thunder_content_view
priority: 0
display:
default:
display_options:
Expand Down
16 changes: 16 additions & 0 deletions config/update/thunder_add_config_selector_to_content_media.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
views.view.content:
expected_config: { }
update_actions:
add:
third_party_settings:
config_selector:
feature: thunder_content_view
priority: 0
views.view.thunder_media:
expected_config: { }
update_actions:
add:
third_party_settings:
config_selector:
feature: thunder_media_view
priority: 0
9 changes: 9 additions & 0 deletions drupal-org.make
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ projects[entity_browser][version] = 1.6
projects[entity_browser][patch][] = https://www.drupal.org/files/issues/2858438_6.patch
projects[entity_reference_revisions][type] = module
projects[entity_reference_revisions][version] = 1
projects[facets][type] = module
projects[facets][version] = 1
projects[fb_instant_articles][type] = module
projects[fb_instant_articles][download][url] = http://git.drupal.org/project/fb_instant_articles.git
projects[fb_instant_articles][download][branch] = 8.x-1.x
Expand Down Expand Up @@ -98,6 +100,10 @@ projects[riddle_marketplace][type] = module
projects[riddle_marketplace][version] = 2
projects[redirect][type] = module
projects[redirect][version] = 1
projects[search_api][type] = module
projects[search_api][version] = 1.10
projects[search_api][patch][] = https://www.drupal.org/files/issues/2861832-6--views_entity_operations.patch
projects[search_api][patch][] = https://www.drupal.org/files/issues/2018-11-06/3011743-2.patch
projects[scheduler][type] = module
projects[scheduler][version] = 1.0
projects[scheduler][patch][] = "https://www.drupal.org/files/issues/2018-08-02/2798689-102.patch"
Expand Down Expand Up @@ -126,6 +132,9 @@ projects[infinite_module][download][tag] = 8.x-1.0-beta6
projects[infinite][type] = theme
projects[infinite][download][url] = http://git.drupal.org/sandbox/gos77/2677750.git
projects[infinite][download][tag] = 8.x-1.0-beta7
projects[views_bulk_operations][type] = module
projects[views_bulk_operations][version] = 2.4
projects[views_bulk_operations][patch][] = https://www.drupal.org/files/issues/2018-09-19/views_bulk_operations-theme_error-2952498-29.patch
projects[video_embed_field][type] = module
projects[video_embed_field][version] = 1
projects[views_load_more][type] = module
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,13 @@
* Implements hook_menu_local_actions_alter().
*/
function thunder_riddle_menu_local_actions_alter(&$local_actions) {
$view = \Drupal::entityTypeManager()->getStorage('view')->load('thunder_media');
if ($view) {
$local_actions['riddle_marketplace.import']['appears_on'][] = 'view.thunder_media.media_page_list';
/** @var \Drupal\config_selector\ActiveEntity $config_selector */
$config_selector = \Drupal::service('config_selector.active');
/** @var \Drupal\views\ViewEntityInterface $view */
$view = $config_selector->get('view', 'thunder_media_view');
if ($view && $view->status()) {
$view->getExecutable()->initDisplay();
$local_actions['riddle_marketplace.import']['appears_on'][] = $view->getExecutable()->getUrl()->getRouteName();
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,19 @@ dependencies:
- image
- media_entity
- user
- config_selector
id: thunder_media
label: Media
module: views
description: ''
description: 'Find and manage media.'
tag: ''
base_table: media_field_data
base_field: mid
core: 8.x
third_party_settings:
config_selector:
feature: thunder_media_view
priority: 0
display:
default:
display_plugin: default
Expand Down
20 changes: 14 additions & 6 deletions modules/thunder_media/thunder_media.module
Original file line number Diff line number Diff line change
Expand Up @@ -61,19 +61,27 @@ function thunder_media_page_attachments(array &$page) {
* Implements hook_menu_local_actions_alter().
*/
function thunder_media_menu_local_actions_alter(&$local_actions) {
$view = \Drupal::entityTypeManager()->getStorage('view')->load('thunder_media');
if ($view) {
$local_actions['media.add']['appears_on'][] = 'view.thunder_media.media_page_list';
/** @var \Drupal\config_selector\ActiveEntity $config_selector */
$config_selector = \Drupal::service('config_selector.active');
/** @var \Drupal\views\ViewEntityInterface $view */
$view = $config_selector->get('view', 'thunder_media_view');
if ($view && $view->status()) {
$view->getExecutable()->initDisplay();
$local_actions['media.add']['appears_on'][] = $view->getExecutable()->getUrl()->getRouteName();
}
}

/**
* Implements hook_menu_links_discovered_alter().
*/
function thunder_media_menu_links_discovered_alter(&$links) {
$view = \Drupal::entityTypeManager()->getStorage('view')->load('thunder_media');
if ($view) {
$links['entity.media.collection']['route_name'] = 'view.thunder_media.media_page_list';
/** @var \Drupal\config_selector\ActiveEntity $config_selector */
$config_selector = \Drupal::service('config_selector.active');
/** @var \Drupal\views\ViewEntityInterface $view */
$view = $config_selector->get('view', 'thunder_media_view');
if ($view && $view->status()) {
$view->getExecutable()->initDisplay();
$links['entity.media.collection']['route_name'] = $view->getExecutable()->getUrl()->getRouteName();
}
}

Expand Down
68 changes: 68 additions & 0 deletions modules/thunder_search/config/optional/facets.facet.author.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
langcode: en
status: true
dependencies:
config:
- search_api.index.content
- views.view.content_search_api
module:
- search_api
id: author
name: Author
url_alias: author
weight: -2
min_count: 1
show_only_one_result: true
field_identifier: uid
facet_source_id: 'search_api:views_page__content_search_api__page_1'
widget:
type: select2
config:
show_numbers: true
width: resolve
autocomplete: false
match_operator: CONTAINS
query_operator: or
use_hierarchy: false
expand_hierarchy: false
enable_parent_when_child_gets_disabled: true
hard_limit: 10
exclude: false
only_visible_when_facet_source_is_visible: true
processor_configs:
active_widget_order:
processor_id: active_widget_order
weights:
sort: -10
settings:
sort: DESC
count_widget_order:
processor_id: count_widget_order
weights:
sort: -10
settings:
sort: DESC
display_value_widget_order:
processor_id: display_value_widget_order
weights:
sort: -10
settings:
sort: ASC
hide_1_result_facet:
processor_id: hide_1_result_facet
weights:
build: -10
settings: { }
uid_to_username_callback:
processor_id: uid_to_username_callback
weights:
build: 5
settings: { }
url_processor_handler:
processor_id: url_processor_handler
weights:
pre_query: -10
build: -10
settings: { }
empty_behavior:
behavior: none
show_title: false
73 changes: 73 additions & 0 deletions modules/thunder_search/config/optional/facets.facet.channel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
langcode: en
status: true
dependencies:
config:
- search_api.index.content
- views.view.content_search_api
module:
- search_api
id: channel
name: Channel
url_alias: channel
weight: -4
min_count: 0
show_only_one_result: true
field_identifier: field_channel
facet_source_id: 'search_api:views_page__content_search_api__page_1'
widget:
type: select2
config:
show_numbers: true
width: resolve
autocomplete: false
match_operator: CONTAINS
query_operator: and
use_hierarchy: true
expand_hierarchy: true
enable_parent_when_child_gets_disabled: true
hard_limit: 0
exclude: false
only_visible_when_facet_source_is_visible: true
processor_configs:
active_widget_order:
processor_id: active_widget_order
weights:
sort: -10
settings:
sort: DESC
count_widget_order:
processor_id: count_widget_order
weights:
sort: -10
settings:
sort: DESC
display_value_widget_order:
processor_id: display_value_widget_order
weights:
sort: -10
settings:
sort: ASC
hide_1_result_facet:
processor_id: hide_1_result_facet
weights:
build: -10
settings: { }
hide_non_narrowing_result_processor:
processor_id: hide_non_narrowing_result_processor
weights:
build: 40
settings: { }
translate_entity:
processor_id: translate_entity
weights:
build: 5
settings: { }
url_processor_handler:
processor_id: url_processor_handler
weights:
pre_query: -10
build: -10
settings: { }
empty_behavior:
behavior: none
show_title: false
Loading