Closed xoriole closed 9 months ago
Wow, that is a very basic feature! Is it helpful to make a test of this to reproduce? Either with mocked remote peer or something else.
I can reproduce the issue in a test and have a fix in this PR: https://github.com/Tribler/tribler/pull/7896.
Running the current main from source with an empty state directory does not show any search results.
In the beginning, there are no peers so it is expected that there are no results. However, even after the peers are discovered, no results from the remote peers are available.
The recent refactoring of PopularityCommunity and RemoteQueryCommunity to ContentDiscoveryCommunity kept the same community ID, so the peers should be discoverable and the results should be available. But, it is not the case which seems like a bug.
To reproduce, the local search needs to be disabled manually from the code (one way is to return empty [] results from
/search/local
present in database_endpoints.py).The issue seems platform-independent but tested on Ubuntu.