Skip to content

Commit

Permalink
Merge main-apache and exclude white-listed changes from the merge
Browse files Browse the repository at this point in the history
  • Loading branch information
fantonangeli committed Jan 20, 2025
2 parents 8c22f56 + f7beeed commit 0bc67c2
Show file tree
Hide file tree
Showing 44 changed files with 402 additions and 558 deletions.
46 changes: 0 additions & 46 deletions examples/commit-message-validation-service/Makefile

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@kie-tools/root-env": "workspace:*",
"@kie-tools/tsconfig": "workspace:*",
"@types/vscode": "1.67.0",
"@vscode/vsce": "^2.22.0",
"@vscode/vsce": "^3.2.1",
"rimraf": "^3.0.2",
"typescript": "^5.5.3",
"webpack": "^5.94.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@kie-tools/root-env": "workspace:*",
"@kie-tools/tsconfig": "workspace:*",
"@types/vscode": "1.67.0",
"@vscode/vsce": "^2.22.0",
"@vscode/vsce": "^3.2.1",
"rimraf": "^3.0.2",
"typescript": "^5.5.3",
"webpack": "^5.94.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/bpmn-vscode-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"@kie-tools/vscode-java-code-completion-extension-plugin": "workspace:*",
"@types/vscode": "1.67.0",
"@vscode/test-web": "^0.0.30",
"@vscode/vsce": "^2.22.0",
"@vscode/vsce": "^3.2.1",
"copy-webpack-plugin": "^11.0.0",
"process": "^0.11.10",
"rimraf": "^3.0.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/cors-proxy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"dependencies": {
"cors": "^2.8.5",
"express": "^4.21.1",
"node-fetch": "^3.3.1"
"node-fetch": "^3.3.2"
},
"devDependencies": {
"@babel/core": "^7.16.0",
Expand Down
19 changes: 7 additions & 12 deletions packages/dashbuilder/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -100,22 +100,17 @@

<!-- Plugins -->
<version.jar.plugin>3.1.2</version.jar.plugin>
<version.org.apache.maven.plugins.dependency>3.3.0</version.org.apache.maven.plugins.dependency>
<version.surefire.plugin>2.22.2</version.surefire.plugin>
<version.surefire.plugin>3.5.0</version.surefire.plugin>
<version.failsafe.plugin>${version.surefire.plugin}</version.failsafe.plugin>
<version.buildhelper.plugin>3.0.0</version.buildhelper.plugin>
<version.surefire.plugin>3.2.5</version.surefire.plugin>
<version.enforcer.plugin>3.0.0-M3</version.enforcer.plugin>
<version.clean.plugin>3.1.0</version.clean.plugin>
<version.compiler.plugin>3.12.1</version.compiler.plugin>
<version.resources.plugin>3.2.0</version.resources.plugin>
<version.war.plugin>3.2.3</version.war.plugin>
<version.checkstyle.plugin>3.1.1</version.checkstyle.plugin>
<version.install.plugin>2.5.2</version.install.plugin>
<version.site.plugin>3.8.2</version.site.plugin>
<version.enforcer.plugin>3.5.0</version.enforcer.plugin>
<version.clean.plugin>3.4.0</version.clean.plugin>
<version.compiler.plugin>3.13.0</version.compiler.plugin>
<version.resources.plugin>3.3.1</version.resources.plugin>
<version.war.plugin>3.4.0</version.war.plugin>
<version.checkstyle.plugin>3.4.0</version.checkstyle.plugin>
<version.antrun.plugin>1.8</version.antrun.plugin>
<version.exec-maven-plugin>3.0.0</version.exec-maven-plugin>
<version.org.maven.dependency.plugin>3.1.2</version.org.maven.dependency.plugin>
<!-- Properties from DROOLS-WB parent POM -->
<!-- TODO: Enable these flags after fixing all checkstyle issues -->
<checkstyle.failOnViolation>true</checkstyle.failOnViolation>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<parent>
<groupId>org.apache</groupId>
<artifactId>apache</artifactId>
<version>32</version>
<version>33</version>
</parent>

<modelVersion>4.0.0</modelVersion>
Expand All @@ -42,19 +42,13 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

<!-- Maven versions -->
<version.maven.artifact.plugin>3.4.1</version.maven.artifact.plugin>
<!-- Plugins version -->
<version.codehaus.flatten.plugin>1.6.0</version.codehaus.flatten.plugin>
<version.maven.compiler.plugin>3.13.0</version.maven.compiler.plugin>
<version.maven.resources.plugin>3.2.0</version.maven.resources.plugin>
<version.maven.failsafe.plugin>3.0.0-M7</version.maven.failsafe.plugin>
<version.maven.surefire.plugin>3.5.0</version.maven.surefire.plugin>
<version.maven.deploy.plugin>3.1.2</version.maven.deploy.plugin>
<version.maven.site.plugin>3.12.1</version.maven.site.plugin>
<version.maven.dependency.plugin>3.6.1</version.maven.dependency.plugin>
<version.maven.jar.plugin>3.4.1</version.maven.jar.plugin>
<version.maven.jar.plugin>3.4.2</version.maven.jar.plugin>
<version.maven.remote.resources.plugin>3.2.0</version.maven.remote.resources.plugin>
<version.maven.clean.plugin>3.4.0</version.maven.clean.plugin>
<version.codehaus.flatten.plugin>1.6.0</version.codehaus.flatten.plugin>
<version.maven.site.plugin>3.21.0</version.maven.site.plugin>
<version.maven.surefire>3.5.0</version.maven.surefire>

<!-- Config -->
<maven.compiler.parameters>true</maven.compiler.parameters>
Expand Down
16 changes: 6 additions & 10 deletions packages/dev-deployment-kogito-quarkus-blank-app/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,15 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

<!-- Maven versions -->
<version.maven.artifact.plugin>3.4.1</version.maven.artifact.plugin>
<!-- Plugins version -->
<version.codehaus.flatten.plugin>1.6.0</version.codehaus.flatten.plugin>
<version.maven.clean.plugin>3.4.0</version.maven.clean.plugin>
<version.maven.compiler.plugin>3.13.0</version.maven.compiler.plugin>
<version.maven.failsafe.plugin>${version.maven.surefire.plugin}</version.maven.failsafe.plugin>
<version.maven.jar.plugin>3.4.2</version.maven.jar.plugin>
<version.maven.resources.plugin>3.3.1</version.maven.resources.plugin>
<version.maven.failsafe.plugin>3.0.0-M7</version.maven.failsafe.plugin>
<version.maven.surefire.plugin>3.5.0</version.maven.surefire.plugin>
<version.maven.install.plugin>3.1.3</version.maven.install.plugin>
<version.maven.deploy.plugin>3.1.2</version.maven.deploy.plugin>
<version.maven.site.plugin>3.21.0</version.maven.site.plugin>
<version.maven.dependency.plugin>3.6.1</version.maven.dependency.plugin>
<version.maven.jar.plugin>3.4.1</version.maven.jar.plugin>
<version.maven.clean.plugin>3.4.0</version.maven.clean.plugin>
<version.codehaus.flatten.plugin>1.6.0</version.codehaus.flatten.plugin>
<version.maven.surefire.plugin>3.5.0</version.maven.surefire.plugin>
<!-- Temporary declaring xstream dependency, a version (1.4.20) is transitively imported by Quarkus 3.8 affected by CVE
When upgrading Quarkus (> 3.15.x) to a new version, please evaluate if this exclusion can be removed -->
<version.com.thoughtworks.xstream>1.4.21</version.com.thoughtworks.xstream>
Expand Down
6 changes: 6 additions & 0 deletions packages/dmn-editor/src/includedModels/IncludedModels.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,9 @@
.kie-dmn-editor--selected-model-to-include-error {
color: var(--pf-global--danger-color--100);
}
.kie-dmn-editor--model-card-kebabtoggle-wrapper {
color: grey;
}
.kie-dmn-editor--model-card-kebabtoggle-wrapper:hover {
color: black;
}
6 changes: 3 additions & 3 deletions packages/dmn-editor/src/includedModels/IncludedModels.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -611,15 +611,15 @@ function IncludedModelCard({
position={PopoverPosition.bottom}
shouldOpen={() => setRemovePopoverOpen(true)}
>
<Button
variant={"plain"}
<div
className="kie-dmn-editor--model-card-kebabtoggle-wrapper"
onClick={(ev) => {
ev.stopPropagation();
ev.preventDefault();
}}
>
<KebabToggle />
</Button>
</div>
</Popover>
</CardActions>
)}
Expand Down
2 changes: 1 addition & 1 deletion packages/dmn-vscode-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"@kie-tools/vscode-java-code-completion-extension-plugin": "workspace:*",
"@types/vscode": "1.67.0",
"@vscode/test-web": "^0.0.30",
"@vscode/vsce": "^2.22.0",
"@vscode/vsce": "^3.2.1",
"buffer": "^6.0.3",
"copy-webpack-plugin": "^11.0.0",
"process": "^0.11.10",
Expand Down
4 changes: 2 additions & 2 deletions packages/extended-services-vscode-extension/env/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
* under the License.
*/

const { varsWithName, composeEnv } = require("@kie-tools-scripts/build-env");
const { composeEnv, varsWithName } = require("@kie-tools-scripts/build-env");

module.exports = composeEnv([require("@kie-tools/root-env/env")], {
module.exports = composeEnv([require("@kie-tools/root-env/env"), require("@kie-tools/extended-services-java/env")], {
vars: varsWithName({}),
get env() {
return {};
Expand Down
13 changes: 7 additions & 6 deletions packages/extended-services-vscode-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@
"@kie-tools/tsconfig": "workspace:*",
"@types/vscode": "1.67.0",
"@vscode/test-web": "^0.0.30",
"@vscode/vsce": "^2.22.0",
"@vscode/vsce": "^3.2.1",
"copy-webpack-plugin": "^11.0.0",
"node-fetch": "^3.3.1",
"node-fetch": "^3.3.2",
"rimraf": "^3.0.2",
"webpack": "^5.94.0",
"webpack-cli": "^4.10.0",
Expand Down Expand Up @@ -73,22 +73,23 @@
],
"configuration": {
"properties": {
"extendedServices.connectionHeartbeatIntervalinSecs": {
"default": 1,
"extendedServices.connectionHeartbeatIntervalInSecs": {
"default": 10,
"description": "Specifies the interval (in seconds) between each connection check.",
"format": "time",
"minimum": 10,
"order": 2,
"type": "integer"
},
"extendedServices.enableAutorun": {
"default": true,
"description": "Automatically run a local instance of the service.",
"description": "Automatically runs a local instance of the Extended Service.",
"order": 0,
"type": "boolean"
},
"extendedServices.extendedServicesURL": {
"default": "http://localhost:21345",
"description": "Specifies the Exnteded Services URL.",
"description": "Specifies the Extended Services URL.",
"format": "uri",
"order": 1,
"type": "string"
Expand Down
5 changes: 3 additions & 2 deletions packages/extended-services-vscode-extension/src/Connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,14 @@ export class Connection {
private timeout: NodeJS.Timeout | null = null;
private connected: boolean = false;

public async start(extendedServicesURL: URL, connectionHeartbeatIntervalinSecs: number): Promise<void> {
public async start(extendedServicesURL: URL, connectionHeartbeatIntervalInSecs: number): Promise<void> {
this.timeout = setInterval(async () => {
this.performHeartbeatCheck(extendedServicesURL);
}, connectionHeartbeatIntervalinSecs * 1000);
}, connectionHeartbeatIntervalInSecs * 1000);
}

public stop(): void {
console.debug("[Extended Services Extension] Disconnecting from Extended Service");
if (this.timeout) {
this.fireDisconnectedEvent();
clearInterval(this.timeout);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export class LocalExtendedServices {
}

public stop(): void {
console.debug("[Extended Services Extension] Stopping local instance of Extended Service");
if (!this.serviceProcess) {
return;
}
Expand Down
14 changes: 8 additions & 6 deletions packages/extended-services-vscode-extension/src/Validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,26 +49,28 @@ function createDMNDiagnostics(validationResponses: validationResponse.DMNValidat
});
}

export async function validateBPMN(serviceURL: URL, kieFile: kieFile.KieFile): Promise<vscode.Diagnostic[]> {
export async function validateBPMN(serviceURL: URL, bpmnFile: kieFile.KieFile): Promise<vscode.Diagnostic[]> {
try {
const validationResponses: validationResponse.BPMNValidationResponse[] = await validationRequests.validateBPMN(
serviceURL,
kieFile
bpmnFile
);
return createBPMNDiagnostics(validationResponses);
} catch (error) {
throw new Error("VALIDATE BPMN ERROR - " + error.message);
console.error(`An error occured while trying to validate BPMN file: ${bpmnFile} with error: ${error.message}`);
throw new Error(`An error occured while trying to validate BPMN file: ${bpmnFile} with error: ${error.message}`);
}
}

export async function validateDMN(serviceURL: URL, kieFile: kieFile.KieFile): Promise<vscode.Diagnostic[]> {
export async function validateDMN(serviceURL: URL, dmnFile: kieFile.KieFile): Promise<vscode.Diagnostic[]> {
try {
const validationResponses: validationResponse.DMNValidationResponse[] = await validationRequests.validateDMN(
serviceURL,
kieFile
dmnFile
);
return createDMNDiagnostics(validationResponses);
} catch (error) {
throw new Error("VALIDATE DMN ERROR - " + error.message);
console.error(`An error occured while trying to validate DMN file: ${dmnFile} with error: ${error.message}`);
throw new Error(`An error occured while trying to validate DMN file: ${dmnFile} with error: ${error.message}`);
}
}
Loading

0 comments on commit 0bc67c2

Please sign in to comment.