-
Notifications
You must be signed in to change notification settings - Fork 238
Binary search: show matching string #1270
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
Conversation
d2baa3c to
5e71dc6
Compare
dorpvom
left a comment
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.
Please consider annotated requests
|
|
||
| @staticmethod | ||
| def _parse_raw_result(raw_result: str) -> dict[str, list[str]]: | ||
| def _parse_raw_result(raw_result: str, match_limit: int = 10) -> dict[str, dict[str, list[dict]]]: |
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.
As far as I can see, the match_limit has of yet no way of being configured. Correct? Is that intentional? Otherwise it would probably fit under the general [backend] domain in the config (e.g. binary_search_limit).
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.
Introduced a config variable for that
* removed unused method _query_has_only_one_result from database routes * removed unused artifact from GraphQL search from base.html
* removed unused method _query_has_only_one_result from database routes * removed unused artifact from GraphQL search from base.html
72bbb59 to
9296f2f
Compare
* db: add column to binary search cache for matched string data * feat: show matching strings in binary search * chore: replaced firmware_detail_tabular_field filter with macro * fix: fixed text overflow in search results * fix: fixed wording on DB browse/search results pagination * feat: made stored yara search strings count configurable * requested review changes #1270 * removed unused method _query_has_only_one_result from database routes * removed unused artifact from GraphQL search from base.html
No description provided.