Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid wipeout of content on restart with opened editors #146

Merged
merged 1 commit into from
Feb 23, 2023

Conversation

apupier
Copy link
Member

@apupier apupier commented Feb 23, 2023

The problem is that if the catalogs are not warmed up on first requests from kaoto UI, the content is wiped out because Kaoto backend seems to not waiting for the Catalog to be warmed up before returning an answer and consequently it is providing an empty results as it knows nothing of the content.

Not found an easy way to provide a non-regression test as it requires a restart of VS Code (but maybe we can find some alternatives, reload of workspaces/resources? the thing is that it requires the extension to be deactivated and reactivated so that the kaoto backend shut down) reported #147 - In fact, by side effect, in case of regression it fails because it will cause curren tUi tests to fail with a timeout. It will be the case if they stay with a timeout which is lower than the tiemout used waiting for the warmed up of the Kaoto backend

fixes #144

The problem is that if the catalogs are not warmed up on first requests
from kaoto UI, the content is wiped out because Kaoto backend seems to
not waiting for the Catalog to be warmed up before returning an answer
and consequently it is providing an empty results as it knows nothing of
the content.

Not found an easy way to provide a non-regression test as it requires a
restart of VS Code (but maybe we can find some alternatives, reload of
workspaces/resources? the thing is that it requires the extension to be
deactivated and reactivated so that the kaoto backend shut down)

fixes KaotoIO#44

Signed-off-by: Aurélien Pupier <apupier@redhat.com>
@apupier apupier marked this pull request as ready for review February 23, 2023 15:25
@apupier apupier merged commit a9ca32d into KaotoIO:main Feb 23, 2023
@apupier apupier deleted the 44-fixWipeOutOnRestart branch February 23, 2023 15:25
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.

When Kaoto editor is reopened automatically on start, camel routes are wiped out
1 participant