Skip to content

Commit 0fb9c29

Browse files
committed
Merge remote-tracking branch 'origin/main' into refactor/replace-restful-react
2 parents bf9a9b1 + 23af9db commit 0fb9c29

34 files changed

+1897
-1353
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
env:
1515
working-directory: ./backend
16+
poetry-version: "1.3.2"
1617
strategy:
1718
fail-fast: false
1819
matrix:
@@ -28,9 +29,10 @@ jobs:
2829
run: sudo apt-get -y install python3-dev graphviz libgraphviz-dev pkg-config python3-wheel
2930

3031
- name: Set up Poetry
31-
uses: bakdata/ci-templates/actions/python-setup-poetry@v1.5.1
32+
uses: bakdata/ci-templates/actions/python-setup-poetry@v1.5.3
3233
with:
3334
python-version: ${{ matrix.python-version }}
35+
poetry-version: ${{ env.poetry-version }}
3436
working-directory: ${{ env.working-directory }}
3537

3638
- name: Install dependencies

.github/workflows/publish.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
env:
1818
BACKEND_DIR: ./backend
1919
python-version: "3.10"
20+
poetry-version: "1.3.2"
2021
steps:
2122
- uses: actions/checkout@v3
2223
with:
@@ -26,9 +27,10 @@ jobs:
2627
run: sudo apt-get -y install python3-dev graphviz libgraphviz-dev pkg-config python3-wheel
2728

2829
- name: Release to PyPI
29-
uses: bakdata/ci-templates/actions/python-poetry-release@v1.5.1
30+
uses: bakdata/ci-templates/actions/python-poetry-release@v1.5.3
3031
with:
3132
python-version: ${{ env.python-version }}
33+
poetry-version: ${{ env.poetry-version }}
3234
working-directory: ${{ env.BACKEND_DIR }}
3335
pypi-token: ${{ secrets.pypi-token }}
3436
publish-to-test: "false"

.github/workflows/release.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,14 @@ on:
44
workflow_dispatch:
55
inputs:
66
release-type:
7-
description: "Scope of the release; See: https://python-poetry.org/docs/cli/#version"
8-
default: "patch"
9-
required: false
7+
description: "Scope of the release; see https://python-poetry.org/docs/cli/#version"
8+
type: choice
9+
required: true
10+
default: patch
11+
options:
12+
- patch
13+
- minor
14+
- major
1015

1116
jobs:
1217
bump-version:

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ repos:
1515
language: system
1616
pass_filenames: false
1717
- repo: https://github.com/pycqa/isort
18-
rev: 5.10.1
18+
rev: 5.12.0
1919
hooks:
2020
- id: isort
2121
args: ["--settings", "backend/setup.cfg"]

backend/README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Streams Explorer
22

3-
> Explore Data Pipelines in Apache Kafka.
3+
> Explore Apache Kafka data pipelines in Kubernetes.
44
55
![streams-explorer](https://github.com/bakdata/streams-explorer/blob/main/screens/overview.png?raw=true)
66

@@ -49,6 +49,9 @@ Visit our introduction [blogpost](https://medium.com/bakdata/exploring-data-pipe
4949

5050
## Installation
5151

52+
> **Prerequisites**
53+
> Access to a Kubernetes cluster, where streaming apps and services are deployed.
54+
5255
### Docker Compose
5356

5457
1. Forward the ports to Prometheus. (Kafka Connect, Schema Registry, and other integrations are optional)
@@ -122,7 +125,7 @@ The following configuration options are available:
122125

123126
#### General
124127

125-
- `graph.update_interval` Render the graph every x seconds (int, **required**, default: `300`)
128+
- `graph.update_interval` Render the graph every x seconds (int, **required**, default: `30`)
126129
- `graph.layout_arguments` Arguments passed to graphviz layout (string, **required**, default: `-Grankdir=LR -Gnodesep=0.8 -Gpad=10`)
127130
- `graph.pipeline_distance` Increase/decrease vertical space between pipeline graphs by X pixels (int, **required**, default: `500`)
128131
- `graph.resolve.input_pattern_topics.all` If true topics that match (extra) input pattern(s) are connected to the streaming app in the graph containing all pipelines (bool, **required**, default: `false`)

backend/poetry.lock

Lines changed: 1247 additions & 1247 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

backend/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "streams-explorer"
3-
version = "2.1.1"
3+
version = "2.2.5"
44
description = "Explore Data Pipelines in Apache Kafka."
55
readme = "README.md"
66
authors = ["bakdata"]
@@ -43,7 +43,7 @@ kubernetes-asyncio = "^23.6.0"
4343
mypy = "^0.981"
4444
flake8 = "^4.0.1"
4545
black = "^22.6.0"
46-
isort = "^5.10.1"
46+
isort = "^5.12.0"
4747
pytest = "^7.2.0"
4848
pre-commit = "^2.15.0"
4949
pytest-asyncio = "^0.20.1"

backend/settings.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
graph:
22
# render graph every x seconds
3-
update_interval: 300
3+
update_interval: 30
44
layout_arguments: "-Grankdir=LR -Gnodesep=0.8 -Gpad=10"
55
pipeline_distance: 500
66
resolve:

backend/setup.cfg

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
[flake8]
2-
ignore =
3-
# E501: line too long
4-
E501,
5-
# W503: line break before binary operator
6-
W503,
7-
max-complexity = 10
82
exclude =
93
.git,
104
__pycache__
5+
max-complexity = 10
6+
# black docs regarding flake8: https://black.readthedocs.io/en/stable/guides/using_black_with_other_tools.html#flake8
7+
# black enforces an equal amount of whitespace around slice operators. It is not PEP8 compliant.
8+
# black and flake8 also disagree on line length
9+
extend-ignore =
10+
# E203: Whitespace before ':'
11+
E203,
12+
# E501: Line too long
13+
E501,
1114

1215
[isort]
1316
profile = black

backend/streams_explorer/api/routes/graph.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ async def websocket_endpoint(
4444
await websocket.receive_text()
4545

4646
except WebSocketDisconnect:
47+
# client disconnected: browser window closed or manual page refresh
48+
# continue to finally clause and remove client from client manager
4749
return
4850
finally:
4951
await streams_explorer.client_manager.disconnect(websocket)

0 commit comments

Comments
 (0)