Skip to content

Dashboard Streaming Status always shows 'Connected' even when Kafka is disabled #89

@rbardaji

Description

@rbardaji

Bug Description

The Dashboard's Streaming Status card always displays "Connected" (green) regardless of the KAFKA_CONNECTION environment variable value.

When KAFKA_CONNECTION=False in the .env file, the Streaming Status should show "Disabled" instead of "Connected".

Root Cause

The frontend code in Dashboard.js only checks whether the /status/kafka-details API response exists, but never inspects the kafka_connection field in the response payload. Since the endpoint always returns configuration data (even when Kafka is disabled), the UI always renders the "Connected" state.

Additionally, the UI references kafkaDetails.host and kafkaDetails.port, but the API returns kafka_host and kafka_port, causing "undefined:undefined" to be displayed below the status.

Expected Behavior

  • When KAFKA_CONNECTION=False: show "Disabled" with an appropriate icon and style
  • When KAFKA_CONNECTION=True: show "Connected" with the correct host:port
  • While loading: show "Checking..."

Environment

  • Version: 0.10.4
  • KAFKA_CONNECTION=False in .env

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