def inject_provisional_community(sender, json=None, record=None, index=None,<EOL>**kwargs):
if index and not index.startswith(<EOL>current_app.config['<STR_LIT>']):<EOL><INDENT>return<EOL><DEDENT>json['<STR_LIT>'] = list(sorted([<EOL>r.id_community for r in InclusionRequest.get_by_record(record.id)<EOL>]))<EOL>
Inject 'provisional_communities' key to ES index.