Skip to content

Auto create app if not exist#88

Merged
kodless merged 2 commits intomasterfrom
auto-create-app-if-not-exist
Oct 2, 2024
Merged

Auto create app if not exist#88
kodless merged 2 commits intomasterfrom
auto-create-app-if-not-exist

Conversation

@kodless
Copy link
Owner

@kodless kodless commented Oct 2, 2024

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

Feature

What is the current behavior? (You can also link to an open issue here)

After starting leek, developers need to open Leek UI in browser and manually create the app to match the one in agent subscriptions. until then the agent will keep showing this warning:

leek-app-1        | WARNING:leek.agent.consumer:(main) b'{"error": {"code": "404001", "message": "Application does not exist", "reason": "Index not yet created, use Leek UI to create a new application"}}\n'

What is the new behavior (if this is a feature change)?

Leek agent will auto-create the application if environment variable LEEK_CREATE_APP_IF_NOT_EXIST is set to true.

Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)

No

@kodless kodless self-assigned this Oct 2, 2024
@kodless kodless merged commit d23ee28 into master Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant