Skip to content

Enable elasticsearch per project or group

Mario de la Ossa requested to merge 1607-elastic_feature_flag_per_group into master

What does this MR do?

Allows Elasticsearch indexing and searching to be enabled on a per-project or per-group manner.

  • ElasticsearchIndexedNamespaces
  • ElasticsearchIndexedProjects

These classes are used by ApplicationSetting to enable/disable projects and namespaces (groups) that should be indexed by elasticsearch.

We also have the application setting, elasticsearch_limit_indexing, that enables/disables the new functionality

In order to be able to selectively choose projects/namespaces to use with elasticsearch, elasticsearch_limit_indexing MUST be enabled under the admin integrations options.

Instead of checking for elasticsearch usage in the sidekiq workers, I've opted for checking where the workers get called instead, since we already have a project object in most cases and can check cheaply

What are the relevant issue numbers?

#1607 (closed)

Does this MR meet the acceptance criteria?

Closes #1607 (closed)

Edited by Mario de la Ossa

Merge request reports