Skip to content

Commit ce901bd

Browse files
committed
Merge remote-tracking branch 'origin/main' into fork/MDzaja/feature/issue#346
# Conflicts: # api/src/main/java/io/kafbat/ui/serdes/ProducerRecordCreator.java # serde-api/pom.xml
2 parents b177272 + d26e026 commit ce901bd

File tree

553 files changed

+18288
-4898
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

553 files changed

+18288
-4898
lines changed

.dev/dev_arm64.yaml renamed to .dev/dev.yaml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
# This is a compose file designed for arm64/Apple Silicon systems
2-
# To adapt this to x86 please find and replace ".arm64" with empty
3-
4-
# ARM64 supported images for kafka can be found here
5-
# https://hub.docker.com/r/confluentinc/cp-kafka/tags?page=1&name=arm64
6-
---
71
version: '3.8'
82
name: "kafbat-ui-dev"
93

@@ -32,7 +26,7 @@ services:
3226
KAFKA_CLUSTERS_0_AUDIT_CONSOLEAUDITENABLED: 'true'
3327

3428
kafka0:
35-
image: confluentinc/cp-kafka:7.2.1.arm64
29+
image: confluentinc/cp-kafka:7.8.0
3630
hostname: kafka0
3731
container_name: kafka0
3832
ports:
@@ -56,12 +50,10 @@ services:
5650
KAFKA_JMX_PORT: 9997
5751
# KAFKA_JMX_HOSTNAME: localhost # uncomment this line and comment the next one if running with kafka-ui as a jar
5852
KAFKA_JMX_OPTS: -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=kafka0 -Dcom.sun.management.jmxremote.rmi.port=9997
59-
volumes:
60-
- ../documentation/compose/scripts/update_run.sh:/tmp/update_run.sh
61-
command: "bash -c 'if [ ! -f /tmp/update_run.sh ]; then echo \"ERROR: Did you forget the update_run.sh file that came with this docker-compose.yml file?\" && exit 1 ; else /tmp/update_run.sh && /etc/confluent/docker/run ; fi'"
53+
CLUSTER_ID: 'MkU3OEVBNTcwNTJENDM2Qk'
6254

6355
schema-registry0:
64-
image: confluentinc/cp-schema-registry:7.2.1.arm64
56+
image: confluentinc/cp-schema-registry:7.8.0
6557
ports:
6658
- 8085:8085
6759
depends_on:
@@ -77,7 +69,7 @@ services:
7769
SCHEMA_REGISTRY_KAFKASTORE_TOPIC: _schemas
7870

7971
kafka-connect0:
80-
image: confluentinc/cp-kafka-connect:7.2.1.arm64
72+
image: confluentinc/cp-kafka-connect:7.8.0
8173
ports:
8274
- 8083:8083
8375
depends_on:
@@ -102,7 +94,7 @@ services:
10294
CONNECT_PLUGIN_PATH: "/usr/share/java,/usr/share/confluent-hub-components,/usr/local/share/kafka/plugins,/usr/share/filestream-connectors"
10395

10496
ksqldb0:
105-
image: confluentinc/ksqldb-server:0.18.0
97+
image: confluentinc/cp-ksqldb-server:7.8.0
10698
depends_on:
10799
- kafka0
108100
- kafka-connect0
@@ -120,7 +112,7 @@ services:
120112
KSQL_CACHE_MAX_BYTES_BUFFERING: 0
121113

122114
kafka-init-topics:
123-
image: confluentinc/cp-kafka:7.2.1.arm64
115+
image: confluentinc/cp-kafka:7.8.0
124116
volumes:
125117
- ../documentation/compose/data/message.json:/data/message.json
126118
depends_on:

.devcontainer/devcontainer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"features": {
77
"ghcr.io/devcontainers/features/java:1": {
88
"version": "none",
9-
"installMaven": "true",
10-
"installGradle": "false"
9+
"installMaven": "false",
10+
"installGradle": "true"
1111
},
1212
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
1313
},

.github/CODEOWNERS

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22

33

44
# BACKEND
5-
/pom.xml @kafbat/backend
5+
gradle/libs.versions.toml @kafbat/backend
6+
/build.gradle @kafbat/backend
7+
/gradle.properties @kafbat/backend
8+
/settings.gradle @kafbat/backend
9+
/gradle/ @kafbat/backend
610
/contract/ @kafbat/backend
711
/api/ @kafbat/backend
812
/serde-api/ @kafbat/backend

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
github: [kafbat]
2+
open_collective: kafka-ui

.github/dependabot.yml

Lines changed: 37 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,71 @@
11
version: 2
22
updates:
33

4-
- package-ecosystem: maven
4+
- package-ecosystem: gradle
55
directory: "/"
66
schedule:
77
interval: weekly
88
time: "10:00"
99
timezone: Europe/London
10-
reviewers:
11-
- "kafbat/backend"
1210
open-pull-requests-limit: 10
1311
labels:
1412
- "type/dependencies"
1513
- "scope/backend"
14+
groups:
15+
spring-boot-dependencies:
16+
patterns:
17+
- "org.springframework.boot:*"
18+
- "io.spring.dependency-management"
19+
# We will handle major upgrades manually
20+
update-types:
21+
- "patch"
22+
- "minor"
23+
other-dependencies:
24+
patterns:
25+
- "*"
26+
update-types:
27+
- "patch"
28+
- "minor"
29+
30+
- package-ecosystem: docker
31+
directory: "/api"
32+
schedule:
33+
interval: weekly
34+
time: "10:00"
35+
timezone: Europe/London
36+
open-pull-requests-limit: 10
37+
ignore:
38+
- dependency-name: "azul/zulu-openjdk-alpine"
39+
update-types: ["version-update:semver-major"]
40+
labels:
41+
- "type/dependencies"
42+
- "scope/backend"
1643

1744
- package-ecosystem: npm
1845
directory: "/frontend"
1946
schedule:
2047
interval: weekly
2148
time: "10:00"
2249
timezone: Europe/London
23-
reviewers:
24-
- "kafbat/frontend"
2550
open-pull-requests-limit: 10
2651
versioning-strategy: increase-if-necessary
2752
labels:
2853
- "type/dependencies"
2954
- "scope/frontend"
55+
groups:
56+
pnpm-dependencies:
57+
patterns:
58+
- "*"
59+
update-types:
60+
- "patch"
61+
- "minor"
3062

3163
- package-ecosystem: "github-actions"
3264
directory: "/"
3365
schedule:
3466
interval: weekly
3567
time: "10:00"
3668
timezone: Europe/London
37-
reviewers:
38-
- "kafbat/devops"
3969
open-pull-requests-limit: 10
4070
labels:
4171
- "type/dependencies"

.github/workflows/aws_ami_publish.yml

Lines changed: 0 additions & 77 deletions
This file was deleted.

.github/workflows/backend_main.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ on:
44
push:
55
branches: [ "main" ]
66
paths:
7-
- "pom.xml"
7+
- "build.gradle"
8+
- "gradle.properties"
9+
- "settings.gradle"
10+
- "gradle/libs.versions.toml"
11+
812
- "contract/**"
913
- "api/**"
1014
- "serde-api/**"
@@ -19,7 +23,7 @@ concurrency:
1923
cancel-in-progress: true
2024

2125
jobs:
22-
build:
26+
build-and-test:
2327
uses: ./.github/workflows/backend_tests.yml
2428
with:
2529
event_name: ${{ github.event_name }}

.github/workflows/backend_pr.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ on:
55
pull_request_target:
66
types: [ "opened", "reopened", "synchronize" ]
77
paths:
8-
- "pom.xml"
8+
- "build.gradle"
9+
- "gradle.properties"
10+
- "settings.gradle"
11+
- "gradle/libs.versions.toml"
12+
913
- "contract/**"
1014
- "api/**"
1115
- "serde-api/**"
@@ -20,7 +24,7 @@ concurrency:
2024
cancel-in-progress: true
2125

2226
jobs:
23-
build:
27+
build-and-test:
2428
uses: ./.github/workflows/backend_tests.yml
2529
with:
2630
event_name: ${{ github.event_name }}
Lines changed: 8 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Backend: build and test"
1+
name: "Backend: tests & sonar"
22

33
on:
44
workflow_call:
@@ -14,56 +14,24 @@ permissions:
1414
pull-requests: write
1515

1616
jobs:
17-
build-and-test:
17+
tests:
1818
runs-on: ubuntu-latest
1919
steps:
2020

2121
- name: Checkout
22-
uses: actions/checkout@v4
22+
uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2 # infered from @v4
2323
with:
2424
token: ${{ github.token }}
2525
fetch-depth: 0
2626
ref: ${{ github.event.pull_request.head.sha }}
2727

2828
- name: Set up JDK
29-
uses: actions/setup-java@v4
29+
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # infered from @v4
3030
with:
31-
java-version: '17'
31+
java-version: '21'
3232
distribution: 'zulu'
33-
cache: 'maven'
33+
cache: 'gradle'
3434

35-
- name: Cache SonarCloud packages
36-
uses: actions/cache@v4
37-
with:
38-
path: ~/.sonar/cache
39-
key: ${{ runner.os }}-sonar
40-
restore-keys: ${{ runner.os }}-sonar
41-
42-
- name: "Pull request: Maven tests & sonar"
43-
if: ${{ inputs.event_name == 'pull_request' || inputs.event_name == 'pull_request_target' }}
44-
env:
45-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN_BACKEND }}
47-
HEAD_REF: ${{ github.head_ref }}
48-
BASE_REF: ${{ github.base_ref }}
49-
SKIP_SONAR: "true" # TODO remove when public
50-
run: |
51-
./mvnw -B -ntp versions:set -DnewVersion=${{ github.event.pull_request.head.sha }}
52-
./mvnw -B -V -ntp verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar \
53-
-Dsonar.skip=${SKIP_SONAR} \
54-
-Dsonar.projectKey=io.kafbat:kafbat-ui_backend \
55-
-Dsonar.pullrequest.key=${{ github.event.pull_request.number }} \
56-
-Dsonar.pullrequest.branch=$HEAD_REF \
57-
-Dsonar.pullrequest.base=$BASE_REF
58-
59-
- name: "Main: Maven tests & sonar"
60-
if: ${{ inputs.event_name == 'push' }}
61-
env:
62-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
63-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN_BACKEND }}
64-
SKIP_SONAR: "true" # TODO remove when public
35+
- name: "Tests"
6536
run: |
66-
./mvnw -B -ntp versions:set -DnewVersion=$GITHUB_SHA
67-
./mvnw -B -V -ntp verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar \
68-
-Dsonar.skip=${SKIP_SONAR} \
69-
-Dsonar.projectKey=io.kafbat:kafbat-ui_backend
37+
./gradlew :api:test

.github/workflows/block_merge.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,16 @@ jobs:
66
block_merge:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: mheap/github-action-required-labels@v5
9+
- uses: mheap/github-action-required-labels@388fd6af37b34cdfe5a23b37060e763217e58b03 # infered from @v5
1010
with:
1111
mode: exactly
1212
count: 0
13-
labels: "status/blocked, status/needs-attention, status/on-hold, status/pending, status/triage, status/pending-backend, status/pending-frontend, status/pending-QA"
13+
labels: >
14+
status/blocked,
15+
status/needs-attention,
16+
status/on-hold,
17+
status/pending,
18+
status/triage,
19+
status/pending-backend,
20+
status/pending-frontend,
21+
status/pending-QA

0 commit comments

Comments
 (0)