crate-admin icon indicating copy to clipboard operation
crate-admin copied to clipboard

Improve shards view

Open amotl opened this issue 3 years ago • 2 comments

Hi there.

Currently, when navigating to the the "Shards" view, Admin UI should display a message like There are no shards. on an empty database where no tables or shards have been created yet.

While Admin UI expects a zero-length result to display this message, CrateDB returns a result with one record. https://github.com/crate/crate/issues/11089 is the respective issue on its issue tracker.

With kind regards, Andreas.

amotl avatar Mar 05 '21 18:03 amotl

The suggestion by @mfussenegger was to use an INNER JOIN here, see https://github.com/crate/crate/issues/11089#issuecomment-789909334.

amotl avatar Jun 03 '22 09:06 amotl

I've changed this from bug to feature as the current shard view is not broken with empty tables. Showing an explicit message that no shards exists is indeed an improvement but current situation is not buggy.

seut avatar Aug 29 '22 13:08 seut