Skip to content

rhmas kafka list does not display anything when there is no Kafka clusters  #14

@machi1990

Description

@machi1990

We should at least display a message saying that the current user has no kafka clusters.

To reproduce -

change the results in https://github.com/bf2fc6cc711aee1a0c2a/cli/blob/dd3692b9d2e993fefd90db1afcc097e45f6ce306/mas-mock/src/handlers.js#L57 to return an empty list.

Start the mock-server

cd mas-mock
yarn 
yarn start

build the cli and then ./rhmas kafka list.

see attached image
Screenshot from 2020-11-05 16-21-43

The first command corresponds to what we have when there is something returned from the list.

The second command returns blank since the list is empty (this is a bug).
/cc @craicoverflow @wtrocki

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions