Skip to content
Snippets Groups Projects
Commit 770090e0 authored by Daniel Bimschas's avatar Daniel Bimschas
Browse files

HOLI-10718: temporarily add volunteering_id until column was dropped

parent d39987f6
No related branches found
No related tags found
Loading
...@@ -12,6 +12,7 @@ def process_user_name_updated_event(client: TypesenseClient, event: UserNameUpda ...@@ -12,6 +12,7 @@ def process_user_name_updated_event(client: TypesenseClient, event: UserNameUpda
document = { document = {
'id': f'profile_{event.user.id}', 'id': f'profile_{event.user.id}',
'type': 'profile', 'type': 'profile',
'volunteering_id': event.user.id, # TODO remove after dropping column from Typesense
'title_de': event.user.name, 'title_de': event.user.name,
'title_en': event.user.name, 'title_en': event.user.name,
'description_de': None, # TODO add on sending side 'description_de': None, # TODO add on sending side
......
...@@ -44,6 +44,7 @@ def test_user_name_updated(mock_client): ...@@ -44,6 +44,7 @@ def test_user_name_updated(mock_client):
mock_client.upsert.assert_called_with({ mock_client.upsert.assert_called_with({
'id': f'profile_{user_payload["id"]}', 'id': f'profile_{user_payload["id"]}',
'type': 'profile', 'type': 'profile',
'volunteering_id': user_payload["id"], # TODO remove after dropping column from Typesense
'title_de': user_payload['name'], 'title_de': user_payload['name'],
'title_en': user_payload['name'], 'title_en': user_payload['name'],
'description_de': None, # TODO add on sending side 'description_de': None, # TODO add on sending side
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment