这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@jstucke
Copy link
Collaborator

@jstucke jstucke commented Sep 24, 2024

No description provided.

@jstucke jstucke self-assigned this Sep 24, 2024
@jstucke jstucke force-pushed the binary-search-show-match-2 branch 2 times, most recently from d2baa3c to 5e71dc6 Compare September 24, 2024 15:02
@dorpvom
Copy link
Member

dorpvom commented Oct 8, 2024

binary_search_screenshot

Can we have it so, that these "overfull hboxes" don't exist?

Copy link
Member

@dorpvom dorpvom left a 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]]]:
Copy link
Member

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).

Copy link
Collaborator Author

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

jstucke added a commit that referenced this pull request Oct 8, 2024
* removed unused method _query_has_only_one_result from database routes

* removed unused artifact from GraphQL search from base.html
@jstucke jstucke requested a review from dorpvom October 8, 2024 15:17
@jstucke jstucke force-pushed the binary-search-show-match-2 branch from 72bbb59 to 9296f2f Compare October 25, 2024 08:06
@dorpvom dorpvom merged commit 6c320ca into master Oct 25, 2024
9 checks passed
@dorpvom dorpvom deleted the binary-search-show-match-2 branch October 25, 2024 08:36
jstucke added a commit that referenced this pull request Oct 28, 2024
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants