kamu-data / kamu-web-ui

Web interface for Kamu
6 stars 1 forks source link

Variables and secrets: friendlier display, in case of non-activated API #448

Open s373r opened 3 weeks ago

s373r commented 3 weeks ago

Describe the bug

On the backend side, the environment variables API may be inactivated.

Current Behavior

In this case, we will show a toast with an error and allow the tab to be displayed to change env vars:

image(1)

Expected Behavior

As a suggestion: in case the API is unavailable, turn off (disable) the "Variables and secrets" menu:

image_2024-09-30_14-02-45

zaychenko-sergei commented 3 weeks ago

Part of larger #397

s373r commented 3 weeks ago

@zaychenko-sergei , seems to be more of a problem on the kamu-cli side, if we run it as an API server.

In the case of running kamu ui, we provide /assets/runtime-config.json, while in the case of kamu system api-server, we do not