kuzzle-admin-console icon indicating copy to clipboard operation
kuzzle-admin-console copied to clipboard

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

Open scottinet opened this issue 4 years ago • 0 comments

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.

scottinet avatar Mar 24 '21 16:03 scottinet