kuzzleio / kuzzle-admin-console

A SPA to administrate your Kuzzle: index and collection management, document creation, realtime subscription and permissions management
http://console.kuzzle.io
Apache License 2.0
61 stars 25 forks source link

"Collection is Empty/No result" messages while fetching documents #915

Closed scottinet closed 1 year ago

scottinet commented 3 years ago

Expected Behavior

A different message printed when fetching documents from Kuzzle

Current Behavior

When clicking on a collection containing a fairly large number of documents, a "Collection is empty" message is printed. After waiting a few seconds, the results show up normally.

Same when searching for documents: once the "search" button is used, the following message is shown while the admin console executes the query: "There is no result matching your query. Please try with another filter." After waiting for a few seconds, the search results are printed.

Those messages are very misleading: at first I thought I made a mistake in my search query, and by the time the search results were printed, I was already editing the query form, without noticing that the admin console did fetch me documents.

It took me a few retries to understand what was going on.

Possible Solution

Print a different message while fetching documents in Kuzzle.

Steps to Reproduce

"Collection is empty": simply click on a collection in the left navigation bar. I suspect that the collection needs to have a fairly large number of documents for the message to be noticeable.

"No result": same, but with a search query, on a large collection.