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

Fixes [257] unnecessary repetitive requests using the search bar #258

Conversation

mario-nt
Copy link
Contributor

@mario-nt mario-nt commented Sep 8, 2023

Fixes #257

Assigning the search query value to the variable used to fetch the searched torrents is now done through the onActivated hook, avoiding triggering the watchers, and thus, not making another unnecessary fetch request to the back-end, getting the torrents only once.

@josecelano
Copy link
Member

Hi @mario-nt I think you have to rebase this PR to fix the problem with the missing Tracker service after starting the container with docker compose. Tha should fix the tests.

@mario-nt
Copy link
Contributor Author

Hi @josecelano, yes, I have to do the rebase with the develop branch before running the tests, I'll do it and let you know.

Assigning the search query value to the variable used to fetch the searched torrents is now done through
the onActivated hook, avoiding triggering the watchers, and thus, not making another unnecessary fetch request
to the back-end, getting the torrents only once.
@mario-nt mario-nt force-pushed the issue-257-unnecessary-repetitive-requests-using-the-search-bar branch from dcb01d5 to 8cc222e Compare September 14, 2023 15:27
@mario-nt
Copy link
Contributor Author

@josecelano Rebase and tests OK

@josecelano
Copy link
Member

ACK 8cc222e

@josecelano josecelano merged commit 1b323dd into torrust:develop Sep 14, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Unnecessary repetitive requests using the search bar
2 participants