-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add search endpoint logic. #141
base: main
Are you sure you want to change the base?
Conversation
@@ -61,7 +61,7 @@ dev=[ | |||
"httpx", | |||
] | |||
prod=[ | |||
"birdxplorer_common @ git+https://github.com/codeforjapan/BirdXplorer.git@main#subdirectory=common", | |||
"birdxplorer_common @ git+https://github.com/codeforjapan/BirdXplorer.git@feature/138#subdirectory=common", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ここはもとに戻してからマージですね。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
このコメントアウトは意図通りですか?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
search_notes_with_posts
と count_search_results
のフィルタを適用する部分は private 関数に切り出してまとめてもいいかもしれません。(他のところにもありますので、一気にまとめたくなるかもしれませんが、一旦これだけやる想定です)
NoteとPostを統合的に検索する
/api/v1/data/search
を実装。変更点
BirdXplorer/api/birdxplorer_api/routers/data.py
Line 418 in e4fce05
BirdXplorer/common/birdxplorer_common/storage.py
Line 510 in e4fce05
BirdXplorer/common/birdxplorer_common/storage.py
Line 604 in e4fce05
テストコードは
./tests/test_search.py
に記述メモ