Skip to content

Update user documents in elasticsearch when certain fields change

What does this MR do and why?

Only updates user documents in Elasticsearch when certain fields on the user model change.

This is to prevent unnecessary indexing, as identified here.

How

Have a list of fields on the user model and when those fields change, update elasticsearch.

NOTE: this does mean that a developer has to remember to add any fields that need tracking to this list, which is a manual process.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #386309 (closed)

Edited by Madelein van Niekerk

Merge request reports