Skip to content

Commit 4aaa9ec

Browse files
authored
Merge branch 'main' into k-diger/#675
2 parents 0b1498b + 4bb3632 commit 4aaa9ec

File tree

5 files changed

+12
-21
lines changed

5 files changed

+12
-21
lines changed

.github/workflows/frontend_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323

2424
- uses: pnpm/[email protected]
2525
with:
26-
version: 9.11.0
26+
version: 9.15.0
2727

2828
- name: Install node
2929
uses: actions/[email protected]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Versatile, fast and lightweight web UI for managing Apache Kafka® clusters.
1515

1616
<p align="center">
1717
<a href="https://ui.docs.kafbat.io/">Documentation</a> •
18-
<a href="https://ui.docs.kafbat.io/configuration/quick-start">Quick Start</a> •
18+
<a href="https://ui.docs.kafbat.io/quick-start/demo-run">Quick Start</a> •
1919
<a href="https://discord.gg/4DWzD7pGE5">Community</a>
2020
<br/>
2121
<a href="https://aws.amazon.com/marketplace/pp/{replaceMe}">AWS Marketplace</a> •

api/src/main/java/io/kafbat/ui/service/KafkaConnectService.java

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -207,22 +207,13 @@ public Mono<Void> deleteConnector(
207207
public Mono<Void> updateConnectorState(KafkaCluster cluster, String connectName,
208208
String connectorName, ConnectorActionDTO action) {
209209
return api(cluster, connectName)
210-
.mono(client -> {
211-
switch (action) {
212-
case RESTART:
213-
return client.restartConnector(connectorName, false, false);
214-
case RESTART_ALL_TASKS:
215-
return restartTasks(cluster, connectName, connectorName, task -> true);
216-
case RESTART_FAILED_TASKS:
217-
return restartTasks(cluster, connectName, connectorName,
218-
t -> t.getStatus().getState() == ConnectorTaskStatusDTO.FAILED);
219-
case PAUSE:
220-
return client.pauseConnector(connectorName);
221-
case RESUME:
222-
return client.resumeConnector(connectorName);
223-
default:
224-
throw new IllegalStateException("Unexpected value: " + action);
225-
}
210+
.mono(client -> switch (action) {
211+
case RESTART -> client.restartConnector(connectorName, false, false);
212+
case RESTART_ALL_TASKS -> restartTasks(cluster, connectName, connectorName, task -> true);
213+
case RESTART_FAILED_TASKS -> restartTasks(cluster, connectName, connectorName,
214+
t -> t.getStatus().getState() == ConnectorTaskStatusDTO.FAILED);
215+
case PAUSE -> client.pauseConnector(connectorName);
216+
case RESUME -> client.resumeConnector(connectorName);
226217
});
227218
}
228219

frontend/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@
103103
"whatwg-fetch": "3.6.20"
104104
},
105105
"engines": {
106-
"node": "v18.17.1",
107-
"pnpm": "v9.11.0"
106+
"node": "18.17.1",
107+
"pnpm": "9.15.0"
108108
},
109109
"pnpm": {
110110
"overrides": {

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060

6161
<!-- Frontend dependency versions -->
6262
<node.version>v18.17.1</node.version>
63-
<pnpm.version>v9.11.0</pnpm.version>
63+
<pnpm.version>v9.15.0</pnpm.version>
6464

6565
<!-- Plugin versions -->
6666
<fabric8-maven-plugin.version>0.45.1</fabric8-maven-plugin.version>

0 commit comments

Comments
 (0)