-
Notifications
You must be signed in to change notification settings - Fork 971
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Change databuilder search data extractors to publish
name
in u…
…ser document. (#2274) * Change databuilder search data extractors to publish `name` in user document. Signed-off-by: Jackson Goerner <[email protected]> * Fix unit tests for databuilder. Signed-off-by: Jackson Goerner <[email protected]> * Have another shot at fixing the user data tests. Signed-off-by: Jackson Goerner <[email protected]> * Bump databuilder patch version. Signed-off-by: Jackson Goerner <[email protected]> --------- Signed-off-by: Jackson Goerner <[email protected]>
- Loading branch information
Showing
8 changed files
with
13 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -137,7 +137,8 @@ def test_user_search(self, | |
manager = User(rk='test_manager_key', email='[email protected]') | ||
user.manager = manager | ||
|
||
expected_dict = dict(email='[email protected]', | ||
expected_dict = dict(name='test_full_name', | ||
email='[email protected]', | ||
first_name='test_first_name', | ||
last_name='test_last_name', | ||
full_name='test_full_name', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,8 @@ def test_to_json(self) -> None: | |
""" | ||
Test string generated from to_json method | ||
""" | ||
test_obj = UserESDocument(email='[email protected]', | ||
test_obj = UserESDocument(name='test_firstname test_lastname', | ||
email='[email protected]', | ||
first_name='test_firstname', | ||
last_name='test_lastname', | ||
full_name='full_name', | ||
|
@@ -28,7 +29,8 @@ def test_to_json(self) -> None: | |
total_own=3, | ||
total_follow=1) | ||
|
||
expected_document_dict = {"first_name": "test_firstname", | ||
expected_document_dict = {"name": "test_firstname test_lastname", | ||
"first_name": "test_firstname", | ||
"last_name": "test_lastname", | ||
"full_name": "full_name", | ||
"team_name": "team", | ||
|