Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
acquia_search
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
acquia_search
Commits
a2ebba14
Commit
a2ebba14
authored
2 years ago
by
Matt Glaman
Committed by
Jakob P
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3324440
by mglaman: Search breaks after upgrade to 3.1
parent
e729f3ef
No related branches found
No related tags found
1 merge request
!14
Issue #3324440: Search breaks after upgrade to 3.1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Plugin/SolrConnector/SearchApiSolrAcquiaConnector.php
+2
-1
2 additions, 1 deletion
src/Plugin/SolrConnector/SearchApiSolrAcquiaConnector.php
tests/src/Unit/SearchApiSolrAcquiaConnectorTest.php
+17
-0
17 additions, 0 deletions
tests/src/Unit/SearchApiSolrAcquiaConnectorTest.php
with
19 additions
and
1 deletion
src/Plugin/SolrConnector/SearchApiSolrAcquiaConnector.php
+
2
−
1
View file @
a2ebba14
...
...
@@ -124,7 +124,8 @@ class SearchApiSolrAcquiaConnector extends SolrConnectorPluginBase implements
public
static
function
create
(
ContainerInterface
$container
,
array
$configuration
,
$plugin_id
,
$plugin_definition
)
{
// Our schema (8.1.7) is newer than Solr's version, 4.1.1.
$configuration
[
'skip_schema_check'
]
=
TRUE
;
// Ensure platform config is always used.
$configuration
=
array_merge
(
$configuration
,
self
::
getPlatformConfig
());
$instance
=
new
static
(
$configuration
,
$plugin_id
,
...
...
This diff is collapsed.
Click to expand it.
tests/src/Unit/SearchApiSolrAcquiaConnectorTest.php
+
17
−
0
View file @
a2ebba14
...
...
@@ -65,6 +65,23 @@ final class SearchApiSolrAcquiaConnectorTest extends UnitTestCase {
);
}
public
function
testCoreLinkWithExistingConfiguration
():
void
{
$container
=
$this
->
createContainerMock
();
$sut
=
$this
->
createInstance
(
$container
,
[
'port'
=>
'8983'
,
'scheme'
=>
'http'
,
]);
// '<a href="https://foobarbaz.host:443/solr/FooBarBaz/">https://foobarbaz.host:443/solr/FooBarBaz/</a>'
self
::
assertEquals
(
[
'#type'
=>
'link'
,
'#url'
=>
Url
::
fromUri
(
'https://solr.acquia.com:443/solr/abc123.prod/'
),
'#title'
=>
'https://solr.acquia.com:443/solr/abc123.prod/'
,
],
$sut
->
getCoreLink
()
->
toRenderable
()
);
}
public
function
testPingServer
():
void
{
$ping_response
=
Json
::
encode
([
'core'
=>
[
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment