-
Notifications
You must be signed in to change notification settings - Fork 5
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
Show trust discrepancies by default #763
base: master
Are you sure you want to change the base?
Conversation
@jw3 Is there a way to request only untrusted files from the backend? |
There is not, right now. Is filtering the system trust slow, or do you have some other use case? |
I'm having issues filtering the system trust in the GUI layer while getting a performance increase. It looks like I'm going to have to chop up the |
Did you try doing some filtering before a trust entry is put on the queue in the |
Thanks @dorschs57 I was working in the wrong spot. That does go quicker, now just have to adjust the loading logic to recognize the different number of items |
@egbicker This does not seem to be functioning for me, can you take a look and confirm it is still gtg |
@jw3 What isn't working for you? It seems to be working on my end |
@egbicker resolve the conflicts here when you have time and I'll review this again. |
@jw3 Merges are done, tests worked locally. Looks like something happened to the Ubuntu 20.04 repo between when you commented and now. |
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.
This still doesn't seem to be working for me. On my rhel8 system, the system trust shows progress to about 15% then jumps right to done with about 14k untrusted files showing. The Toggle button never becomes active in the toolbar either. Is there something else I'm missing?
"toggle": [ | ||
UIAction( | ||
name="Toggle", | ||
tooltip="Toggle Displaying Trusted Entries", |
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.
This needs added to the strings.py
file.
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.
After your last commit this string still needs moved to the strings.py
file.
@dorschs57 I don't know why the toggle button isn't working, I'm seeing it respond as expected on FC34 and FC38. I did just toss up a fix for the loading jumping from low % to done. |
Your update made it a little better for me. However it still only gets to about 50% and then jumps to completed for me. I'm still seeing the issue too where the
If I then navigate to another view like Rules and back to the Trust view the button will enable properly after loading is complete. |
Ill give this a run next week and see what I see. |
Something about adding |
Screencast.from.2023-06-26.16-14-38.webm@jw3 Here's what my fc38 rpm loading looks like on a VM with ~8gb of RAM. I wonder if the skip you're seeing is the thread that's doing the file loading going faster than the thread responsible for redrawing the UI? Lines 229-232 in Does the loading of the full trust file database have a skip in the middle as well? |
@@ -200,7 +225,11 @@ def process_trust(trust, event): | |||
for data in trust: | |||
if event.is_set(): | |||
return | |||
self.__queue.put(self._row_data(data)) | |||
|
|||
if self.show_trusted or not data.status.lower() == "t": |
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.
This is where the trusted files get skipped from being displayed and the total gets decremented
Show trust discrepancies by default in the STDB or a message if store is empty
Closes #520