Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ACMS-1972: Fixing new search index field on field settings and storage page. #1642

Merged
merged 2 commits into from
Oct 5, 2023

Conversation

apathak18
Copy link
Contributor

@apathak18 apathak18 commented Sep 28, 2023

Motivation

Fixes ACMS-1972

Proposed changes
Field storage and settings page throws error with new core improvement patches.

@apathak18 apathak18 changed the title ACMS-1972: Fixing new search index field on field settings and storag… ACMS-1972: Fixing new search index field on field settings and storage page. Oct 3, 2023
Copy link
Collaborator

@chandan-singh7929 chandan-singh7929 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes looks good to me, there's minor suggestions, please check.

@@ -145,6 +145,7 @@ protected function createSampleContent(string $node_type) {
]);
}
$this->drupalPlaceBlock('facet_block:search_category', ['region' => 'content']);
\Drupal::getContainer()->get('search_api.post_request_indexing')->destruct();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use $this->container->get('search_api.post_request_indexing')->destruct();

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getContainer method is static and with $this->container we won't get a destruct method CI repeats failing.
For example check below screenshot.
Screenshot 2023-10-04 at 2 38 15 PM

@vishalkhode1 vishalkhode1 merged commit d573d0f into feature/acms-search-improvement Oct 5, 2023
17 checks passed
@vishalkhode1 vishalkhode1 deleted the ACMS-1972 branch October 5, 2023 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants