Problem/Motivation
Some services injected into the \Drupal\search_api_meilisearch\Plugin\search_api\backend\SearchApiMeilisearchBackend are unused and can be removed:
LanguageManagerInterfaceConfigFactoryInterfaceMessenger
There is also $warnings property that is being set on line 604 but is unused.
$msg = $this->t('Unknown sort order @order. Assuming "@default".', [
'@order' => $order,
'@default' => QueryInterface::SORT_ASC,
]);
$this->warnings[(string) $msg] = 1;
Proposed resolution
Remove the code.
Issue fork search_api_meilisearch-3386859
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
bcizej commentedReady for review.
Comment #5
deaom commentedTests were failing on pipeline for D10, for some strange reason, not connected to the code, so I just triggered the pipeline again and now the tests are passing. They are also passing locally for me, which means the removal of code did not break anything and was obsolete. Marking it as RTBC.
Comment #7
bcizej commentedMerged, thanks.