mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-25 17:16:00 +03:00
[GH-ISSUE #1316] Text Search and Filters don't work at the same time in the web UI #3826
Labels
No labels
expected: maybe someday
expected: next release
expected: release after next
expected: unlikely unless contributed
good first ticket
help wanted
pull-request
scope: all users
scope: windows users
size: easy
size: hard
size: medium
size: medium
status: backlog
status: blocked
status: done
status: idea-phase
status: needs followup
status: wip
status: wontfix
touches: API/CLI/Spec
touches: configuration
touches: data/schema/architecture
touches: dependencies/packaging
touches: docs
touches: js
touches: views/replayers/html/css
why: correctness
why: functionality
why: performance
why: security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ArchiveBox#3826
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sbutcher on GitHub (Jan 11, 2024).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/1316
Describe the bug
In the UI, providing a search term, then applying a filter (e.g. changed today, or a tag) does not make any difference to the results. I would expect to see the filter applied to the results on screen.
Steps to reproduce
Running archivebox dev version
Open the web UI and enter a search term that gives results e.g. football
Then click the "Today" option in the "By date added" in the filter column
Screenshots or log output
clicking the "Today" in the filter view makes no change to the results, where the expected result is to show a subset of the results, combining all results with teh word football that were added today. The same issue applies to any filters while there is a search term specified. If you clear the search term and show all results, then the filters work correctly
ArchiveBox version
@pirate commented on GitHub (Jan 12, 2024):
Strange... this used to work. Thanks for reporting!
I'll take a look.
@neel-suthar commented on GitHub (Jan 21, 2024):
@pirate I found the issue. It's a small fix. Look at the following code.
In the try clause, we combine the filter results with the search results using the "or" (|) operation on two result sets. This can lead to an issue where snapshots that match either the filter or the search term will appear in the combined result.
I did try it out and can confirm that the change fixed the bug mentioned above. Correct me if I am wrong. Thanks.
@neel-suthar commented on GitHub (Jan 21, 2024):
@pirate One more thing, I see lots of print statements in the code. Arent we using some kind of logger?
@pirate commented on GitHub (Jan 23, 2024):
We're not using a logger yet, I've thought about it in the past but haven't found a logging library that I really like yet.
The main reason I didn't use a library is that I need is fine-grained control over stdout/stderr for the (ncurses-style) live-updating
archivebox.logging_util.TimedProgressprogress bars we use whenSHOW_PROGRESS=True.If we do use a library I want it to be able to provide ncurses subpanes to display scrolling subcommand output in realtime without filling the entire screen with subcommand stdout/stderr, like: https://github.com/bpython/curtsies