-
Notifications
You must be signed in to change notification settings - Fork 190
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
KOGITO-10042: Migrate Dev UI Java module from kogito-apps to kie-tools #2167
KOGITO-10042: Migrate Dev UI Java module from kogito-apps to kie-tools #2167
Conversation
…nd `999-20240225-SNAPSHOT`
Tested locally and it is working, great job @fantonangeli ! Just to confirm, we probably need @tiagobento or @rodrigonull input here (sorry if you talked about this already), what |
I guess @pefernan could help answer that... |
It should be Make sure you also use it in the extension capability! take a look at my PR's. |
…uarkus Dev UI extensions
Hi @paulovmr and @tiagobento , can we proceed with the reviews of this PR? |
Hi @fantonangeli , I sent one PR to your branch earlier, I think after that is merged, this LGTM |
kie-issues#1009: Remove check for data index availability on legacy Quarkus Dev UI extensions
Thanks a lot @paulovmr, your PR is merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fantonangeli @paulovmr Added a few comments that, considering we'll upgrade to Quarkus 3.8
, I'd fix before merging.
public class DevConsoleProcessor { | ||
|
||
private static final String STATIC_RESOURCES_PATH = "dev-static/"; | ||
private static final String BASE_RELATIVE_URL = "/q/dev-v1/org.apache.kie.sonataflow.sonataflow-quarkus-devui-extension"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
private static final String BASE_RELATIVE_URL = "/q/dev-v1/org.apache.kie.sonataflow.sonataflow-quarkus-devui-extension"; | |
private static final String BASE_RELATIVE_URL = "/q/dev-ui/org.apache.kie.sonataflow.sonataflow-quarkus-devui-extension"; |
private static final String BASE_RELATIVE_URL = "/q/dev-v1/org.apache.kie.sonataflow.sonataflow-quarkus-devui-extension"; | ||
|
||
@BuildStep(onlyIf = IsDevelopment.class) | ||
public CardPageBuildItem pages(NonApplicationRootPathBuildItem nonApplicationRootPathBuildItem, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You may need to add the List<SystemPropertyBuildItem>
as done here in order to get the data-index.url
if it's not available in the configurationBuildItem
|
||
@BuildStep(onlyIf = IsDevelopment.class) | ||
@Record(ExecutionTime.RUNTIME_INIT) | ||
public void deployStaticResources(final DevConsoleRecorder recorder, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This DevConsoleRecorder
will be removed in 3.8 LTS
you may need to create one as apache/incubator-kie-kogito-apps@e7680b4#diff-ac1ccd3eb1c4080808ebca25bf08032999d51511479f4219801b1e46a1562293R32
under the License. | ||
|
||
--> | ||
<a href="{urlbase}/workflowInstances" class="badge badge-light"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quarkus 3.8
completelly removes the DevUI v1, this isn't needed anymore
under the License. | ||
|
||
--> | ||
{#include main fluid=true} {#style} .main-container { margin: 0; padding: 0; } #envelope-app { width: 100vw; height: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quarkus 3.8 completelly removes the DevUI v1, this isn't needed anymore
--> | ||
{#include main fluid=true} {#style} .main-container { margin: 0; padding: 0; } #envelope-app { width: 100vw; height: | ||
calc(100vh - 98px); } {/style} {#title}Runtime UI{/title} {#body} | ||
<div id="envelope-app"></div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quarkus 3.8 completelly removes the DevUI v1, this isn't needed anymore
Hi @pefernan , I'm working on those Quarkus 3.8 changes for a different PR that will go in after this is merged. |
@paulovmr in this case just forget my comments :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please rename the package (just the directory name and name in package.json, not the pom.xml) from sonataflow-quarkus-devui-extension-parent
to sonataflow-quarkus-devui-extension
?
@paulovmr renamed, thank you |
…tools (apache#2167) Co-authored-by: Yeser Amer <[email protected]> Co-authored-by: Thiago Lugli <[email protected]> Co-authored-by: Paulo Martins <[email protected]>
Jira: https://issues.redhat.com/browse/KOGITO-10042
Description:
The kogito-quarkus-serverless-workflow-devui-parent module should be migrated to apache/incubator-kie-tools while being renamed to sonataflow-serverless-workflow-devui. Its children modules can have the parent module name removed from its prefix, resulting in the deployment and runtime modules.
Important:
kie-tools
to Java 17, Maven 3.9.6, and Quarkus 3 #2182 to compile with Java 17, Maven 3.9.6, and Quarkus 3How to test:
pnpm -F @kie-tools/sonataflow-quarkus-devui-extension-parent... build:dev
main
branchpom.xml
, replace the following dependency:with:
and add:
Preview:
KOGITO-10042-devui.webm
KOGITO-10042-devui-v1.webm