-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reorganized recursion and duplicate entry storage
Signed-off-by: Lalith Kota <[email protected]>
- Loading branch information
1 parent
d0d97dd
commit 8d3e2a5
Showing
6 changed files
with
67 additions
and
59 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
15 changes: 9 additions & 6 deletions
15
openg2p-deduplicator/src/openg2p_deduplicator/schemas/get_duplicates_response.py
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 |
---|---|---|
@@ -1,15 +1,18 @@ | ||
from pydantic import BaseModel | ||
|
||
|
||
class DuplicateEntry(BaseModel): | ||
id: str | ||
class StoredDuplicateEntry(BaseModel): | ||
original_id: str | ||
duplicate_id: str | ||
match_score: float | ||
last_dedupe_request_id: str | ||
|
||
|
||
class StoredDuplicates(BaseModel): | ||
duplicates: list[DuplicateEntry] | ||
class HttpDuplicateEntry(BaseModel): | ||
id: str | ||
match_score: float | ||
last_dedupe_request_id: str | ||
|
||
|
||
class GetDuplicatesHttpResponse(StoredDuplicates): | ||
pass | ||
class GetDuplicatesHttpResponse(BaseModel): | ||
duplicates: list[HttpDuplicateEntry] |
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