-
Notifications
You must be signed in to change notification settings - Fork 49
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
Cannot sort discoveries by "category" nor "snippet" #142
Comments
Can you give more context, please? |
Hi @marcorosa, I updated the description |
Ok, but can you be more specific, please? 😄
So, where is this issue coming from? what methods are you using? are you trying to do this sort with the python library or directly in-browser with javascript? are you trying to sort all the discoveries or a repo or just the paginated ones? |
Thank you for your comment @marcorosa
The issue is coming from the credential-digger/ui/server.py Line 393 in c4b000d
The bug occurs when we try to sort the discoveries on the browser (javascript). The bug can be reproduced manually without writing a script, by sorting the discoveries via the UI using these built-in buttons:
I tried both 'all discoveries' and only the paginated ones, but none of them has worked. FixProblemSorting discoveries (manually, from the UI, using the built-in sorting buttons), results in this error:
FixThe problem comes from line: credential-digger/ui/server.py Line 393 in c4b000d
We replaced States[i[order_by]].value by order_by and it works just fine as for our first experiments, we will test it further more.
|
Ordering discoveries by category still breaks the UI
|
It enters an infinite loop.
Tested client: sqlite
Reproduce the bug: While on discoveries view page (http://0.0.0.0:5000/discoveries?url=https://github.com/user/repo), any attempt to sort discoveries via "category" or "snippet" fails on the server side resulting in an infinite loop on the UI (no matter the number of discoveries).
The text was updated successfully, but these errors were encountered: