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

[ELASTICSEARCH-FIRST] Enable Elasticsearch for new wikis #147

Merged
merged 7 commits into from
Sep 2, 2021

Conversation

toban
Copy link
Contributor

@toban toban commented Aug 10, 2021

This enables elasticsearch for new wikis through the ElasticSearchIndexInit job.

Lexemes and Items end up in the same index so no special treatment should be needed when this setting is enabled but probably needs wbstack/mediawiki#121 to be deployed before.

@toban toban force-pushed the elasticsearch-setting branch 9 times, most recently from 556f41d to ebc34ff Compare August 10, 2021 09:12
@toban toban changed the title WIP Elasticsearch setting Trigger ElasticsearchInit job when lexeme and elasticsearch is enabled Aug 10, 2021
@toban toban force-pushed the elasticsearch-setting branch 2 times, most recently from 7570715 to 0383f1c Compare August 11, 2021 07:40
@toban
Copy link
Contributor Author

toban commented Aug 11, 2021

The actual search for Lexemes still isn't working locally in the mediawiki repo. We are probably missing some configuration that needs to be added.

@toban
Copy link
Contributor Author

toban commented Aug 11, 2021

Should have started in the other end on this epic, seems elasticsearch does not need any special updating to handle lexeme.

wbstack/mediawiki#121

@toban toban changed the title Trigger ElasticsearchInit job when lexeme and elasticsearch is enabled WIP Trigger ElasticsearchInit job when lexeme and elasticsearch is enabled Aug 12, 2021
@toban
Copy link
Contributor Author

toban commented Aug 12, 2021

this is being re-written not to use the observer

app/Providers/EventServiceProvider.php Outdated Show resolved Hide resolved
tests/Jobs/ElasticSearchIndexInitTest.php Show resolved Hide resolved
tests/Routes/Wiki/CreateTest.php Outdated Show resolved Hide resolved
@toban toban force-pushed the elasticsearch-setting branch 2 times, most recently from caca26f to 43c71b5 Compare August 13, 2021 12:01
@toban toban changed the title WIP Trigger ElasticsearchInit job when lexeme and elasticsearch is enabled Enable Elasticsearch for new wikis Aug 13, 2021
@toban toban force-pushed the elasticsearch-setting branch 2 times, most recently from 65180d1 to d57042c Compare August 17, 2021 08:11
@toban toban changed the base branch from main to request-di August 17, 2021 08:12
@toban toban changed the title Enable Elasticsearch for new wikis [ELASTICSEARCH-FIRST] Enable Elasticsearch for new wikis (wants to get merged into request-di merge that first) Aug 17, 2021
@toban toban changed the base branch from request-di to add-integration-setup August 19, 2021 10:30
@toban toban changed the title [ELASTICSEARCH-FIRST] Enable Elasticsearch for new wikis (wants to get merged into request-di merge that first) [ELASTICSEARCH-FIRST] Enable Elasticsearch for new wikis (wants to get merged into add-integration-setup merge that first) Aug 19, 2021
This adds wwExtEnableElasticSearch to new wikis and dispatches a job to
initialize the index and enable the feature.

Lexeme and Wikibase terms end up in the same index so we do not need to
take this into consideration.
Base automatically changed from add-integration-setup to main August 24, 2021 13:37
@addshore addshore changed the title [ELASTICSEARCH-FIRST] Enable Elasticsearch for new wikis (wants to get merged into add-integration-setup merge that first) [ELASTICSEARCH-FIRST] Enable Elasticsearch for new wikis Aug 24, 2021
app/Http/Controllers/WikiController.php Show resolved Hide resolved
app/Jobs/ElasticSearchIndexInit.php Outdated Show resolved Hide resolved
app/Jobs/ElasticSearchIndexInit.php Outdated Show resolved Hide resolved
tests/Jobs/ElasticSearchIndexInitTest.php Outdated Show resolved Hide resolved
- Adds some more tests to the failure conditions, each one should result
in the setting being disabled.

- refactors the cirrus search base name to be the wikiDB instead of domain.

- bumps the timeout to 60 seconds
Copy link
Collaborator

@addshore addshore left a comment

Choose a reason for hiding this comment

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

Looking good

@addshore addshore merged commit b3cd05b into main Sep 2, 2021
@addshore addshore deleted the elasticsearch-setting branch September 2, 2021 08:37
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.

3 participants