Skip to content
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

Merged
merged 1 commit into from
Jul 26, 2023
Merged

Fix filtering #16

merged 1 commit into from
Jul 26, 2023

Conversation

talvasconcelos
Copy link
Collaborator

@talvasconcelos talvasconcelos commented Jul 14, 2023

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

@talvasconcelos talvasconcelos marked this pull request as ready for review July 14, 2023 10:32
@talvasconcelos talvasconcelos requested a review from motorina0 July 14, 2023 10:32
@motorina0
Copy link
Collaborator

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?

@talvasconcelos
Copy link
Collaborator Author

talvasconcelos commented Jul 14, 2023 via email

@talvasconcelos
Copy link
Collaborator Author

@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
@talvasconcelos talvasconcelos force-pushed the fix_filtering_pubkeys branch from 73ababe to c1ab5ef Compare July 17, 2023 09:49
Copy link
Collaborator

@motorina0 motorina0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@motorina0 motorina0 merged commit 3c45acc into main Jul 26, 2023
@bitkarrot
Copy link
Contributor

Thank you! @talvasconcelos @motorina0

@dni dni deleted the fix_filtering_pubkeys branch June 26, 2024 08:28
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.

accounts form bug
3 participants