-
Notifications
You must be signed in to change notification settings - Fork 8
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
Fix filtering #16
Fix filtering #16
Conversation
A relay can in theory have 100k+ accounts, out of which only a few hundreds are blocked or explicitly allowed. @talvasconcelos Would the approach in this PR fetch all 100k+ all the time? |
yes, and I see your point. i need to rethink this.
the get wasn't retrieving anything from the DB, though.
…On Fri, Jul 14, 2023, 11:58 AM Vlad Stan ***@***.***> wrote:
A relay can in theory have 100k+ accounts, out of which only a few
hundreds are blocked or explicitly allowed.
@talvasconcelos <https://github.com/talvasconcelos> Would the approach in
this PR fetch all 100k+ all the time?
—
Reply to this email directly, view it on GitHub
<#16 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AC4F74TXGZUYCVJ4IYEKHHTXQEQ6NANCNFSM6AAAAAA2KEGXOY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@motorina0 filtering is working on testing. Can you please make a final review ? |
more copy clean debugging... prints! lol clean console logs fix get users Only get users that explicitly have been allowed or blocked UI UI-2 prevent getting all accounts (false, false is default) remove client side filtering remove prints
73ababe
to
c1ab5ef
Compare
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.
LGTM
Thank you! @talvasconcelos @motorina0 |
Instead of asking the DB for the accounts, we now call it once and filter client side! Filtering now works as expected.
@motorina0 , when toggling, in the account row, shouldn't the toggles be allowed OR blocked? and never the two at the same time? or is it that a user can be blocked for some time, if the OP whiches? If the later, PR is ready, if not I'll fix it also.
Closes #8