Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
d79dea0
perf(rpc): signed-in visitors share cached answers (#228)
Garaz08 Oct 31, 2026
7b275e8
Merge pull request #233 from BazarPro/perf/signed-in-query-cache
Garaz08 Oct 31, 2026
5b65123
feat(seo): real 404s, lighter public pages, event data for Google
Garaz08 Oct 31, 2026
faa544a
feat(events): address of the venue for visitors and search engines
Garaz08 Oct 31, 2026
4ae3e45
feat(auth): shorter sign-up, Google and GitHub on login and register
Garaz08 Oct 31, 2026
65f16ce
feat(events): try the creation wizard before signing up
Garaz08 Oct 31, 2026
77974c7
style: format LandingEventsSection
Garaz08 Oct 31, 2026
c25e12e
feat(auth): one password rule everywhere: 10 characters, no repeat field
Garaz08 Oct 31, 2026
443461d
feat(events): country of the address: Germany, Austria, Switzerland, ...
Garaz08 Oct 31, 2026
01f4677
feat(events): creation wizard with previews, settings first, details …
Garaz08 Oct 31, 2026
ac2be62
style: format organizer texts
Garaz08 Oct 31, 2026
d3f3ce9
feat(events): redrawn items, one per example, wizard scrolls to the top
Garaz08 Nov 1, 2026
79b5522
feat(landing): templates section, hero and phones that fit on phones
Garaz08 Nov 1, 2026
8e161f4
feat(illustrations): kids items, Chelsea boots and bike helmet redrawn
Garaz08 Nov 1, 2026
dcc8a99
feat(illustrations): better T-shirt, boots and jacket, U-lock for the…
Garaz08 Nov 1, 2026
3727616
feat(events): discount start after the dates, pictures and templates …
Garaz08 Nov 1, 2026
727916f
feat(events): photos as cover templates, hero fits its column, no gue…
Garaz08 Nov 1, 2026
ef5016f
Merge pull request #234 from BazarPro/feat/seo-fixes
Garaz08 Nov 2, 2026
82bc487
fix(landing): past events toggle shows past events every time, tidy s…
Garaz08 Nov 3, 2026
2f9f4e1
chore: remove dead code
Garaz08 Nov 3, 2026
3656cfd
refactor: one ConfirmDialog for all confirmations
Garaz08 Nov 3, 2026
abebc89
refactor: shared PageHeader, EmptyState and SearchInput, one admin gu…
Garaz08 Nov 3, 2026
e16f561
fix: simpler flows, correct revenue, fewer repeated numbers and hints
Garaz08 Nov 3, 2026
584f6b1
refactor(seller): one bar for selected and filtered items; shorter di…
Garaz08 Nov 3, 2026
de4eb85
test(e2e): follow the changed wording
Garaz08 Nov 3, 2026
db763fc
style: format
Garaz08 Nov 3, 2026
bdb0fd9
Merge pull request #243 from BazarPro/refactor/ui-cleanup
Garaz08 Nov 4, 2026
44c203e
fix(categories): create the default categories on a new instance
Garaz08 Nov 4, 2026
d01b845
feat(admin): page to view and edit categories, with English names
Garaz08 Nov 4, 2026
a324786
fix(api): no error page after signing in again
Garaz08 Nov 4, 2026
634f02e
fix(ui): a select in a form keeps its value while its options load
Garaz08 Nov 4, 2026
476d8b5
Merge pull request #245 from BazarPro/fix/seed-default-categories
Garaz08 Nov 4, 2026
eeb9f2e
Merge pull request #246 from BazarPro/fix/sign-in-stale-errors
Garaz08 Nov 4, 2026
e9b1683
fix(analytics): no Plausible values baked into the published image
Garaz08 Nov 4, 2026
aeef572
Merge pull request #248 from BazarPro/fix/plausible-baked-fallback
Garaz08 Nov 4, 2026
d3fa2f2
chore(selfhost): template on v2.3.0
Garaz08 Nov 4, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env.selfhost.example
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ POSTGRES_PASSWORD=
ACME_EMAIL=admin@example.org

# Release von BazarPro, siehe https://github.com/BazarPro/core/releases
BAZARPRO_VERSION=v2.2.0
BAZARPRO_VERSION=v2.3.0

# single: ein Verein mit eigenen Basaren (Standard)
# platform: mehrere Veranstalter wie auf bazarpro.de, mit Werbeseiten
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,6 @@ jobs:
build-args: |
BACKEND_URL=https://${{ secrets.DOMAIN_NAME }}
DOMAIN_NAME=${{ secrets.DOMAIN_NAME }}
VITE_PLAUSIBLE_API_HOST=${{ vars.VITE_PLAUSIBLE_API_HOST || secrets.VITE_PLAUSIBLE_API_HOST }}
VITE_SITE_URL=${{ steps.meta.outputs.site_url }}
VITE_APP_VERSION=${{ steps.meta.outputs.version }}
# Backend for production, review apps and self-hosters (docker-compose.selfhost.yml)
Expand Down Expand Up @@ -353,6 +352,7 @@ jobs:
CLOUDFLARE_DNS_API_TOKEN: ${{ secrets.CLOUDFLARE_DNS_API_TOKEN }}
DOMAIN_NAME: ${{ vars.DOMAIN_NAME || secrets.DOMAIN_NAME }}
POSTGRES_PASSWORD: ${{ secrets.POSTGRES_PASSWORD }}
PLAUSIBLE_API_HOST: ${{ vars.VITE_PLAUSIBLE_API_HOST || secrets.VITE_PLAUSIBLE_API_HOST }}
ADMIN_EMAIL: ${{ vars.ADMIN_EMAIL || secrets.ADMIN_EMAIL }}
AUTH_SMTP_HOST: ${{ vars.AUTH_SMTP_HOST || secrets.AUTH_SMTP_HOST }}
AUTH_SMTP_PORT: ${{ vars.AUTH_SMTP_PORT || secrets.AUTH_SMTP_PORT }}
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,10 @@ COPY . .
# https://bazarpro.de (its /api); without it they are rendered without data
ARG BACKEND_URL
ARG DOMAIN_NAME
ARG VITE_PLAUSIBLE_API_HOST
ARG VITE_SITE_URL
ARG VITE_APP_VERSION
ENV BACKEND_URL=$BACKEND_URL
ENV DOMAIN_NAME=$DOMAIN_NAME
ENV VITE_PLAUSIBLE_API_HOST=$VITE_PLAUSIBLE_API_HOST
ENV VITE_SITE_URL=$VITE_SITE_URL
ENV VITE_APP_VERSION=$VITE_APP_VERSION

Expand All @@ -47,6 +45,8 @@ COPY server ./server
# Code the web server shares with the app (server/dockerfile.test.ts checks the list)
COPY src/lib/markdown.ts ./src/lib/markdown.ts
COPY src/shared/productLinks.ts ./src/shared/productLinks.ts
COPY src/shared/appRoutes.ts ./src/shared/appRoutes.ts
COPY src/shared/eventJsonLd.ts ./src/shared/eventJsonLd.ts
COPY --from=builder /app/dist ./dist

USER node
Expand Down
15 changes: 7 additions & 8 deletions ENV.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,15 @@ domain at `/api`: Traefik routes it in production, Vite proxies it in developmen

These variables must start with `VITE_` to be accessible in the browser.

| Variable | Required | Description |
| :------------------------ | :------- | :------------------------------------------------------------------------------------------------------- |
| `VITE_SITE_URL` | No | The public URL of the application (e.g., `https://bazarpro.de`). Used for SEO and absolute links. |
| `VITE_BAZARPRO_MODE` | No | `single` to try the self-hosting mode with `vite dev`. In production the server injects `BAZARPRO_MODE`. |
| `DOMAIN_NAME` | No | Base domain used for routing and Plausible analytics. Defaults to `localhost`. |
| `VITE_PLAUSIBLE_API_HOST` | No | API host for self-hosted Plausible Analytics instances. |
| `BACKEND_URL` | No | Where Vite (`dev`, `preview`, prerendering) forwards `/api` to. Defaults to `http://127.0.0.1:3000`. |
| Variable | Required | Description |
| :------------------- | :------- | :------------------------------------------------------------------------------------------------------- |
| `VITE_SITE_URL` | No | The public URL of the application (e.g., `https://bazarpro.de`). Used for SEO and absolute links. |
| `VITE_BAZARPRO_MODE` | No | `single` to try the self-hosting mode with `vite dev`. In production the server injects `BAZARPRO_MODE`. |
| `BACKEND_URL` | No | Where Vite (`dev`, `preview`, prerendering) forwards `/api` to. Defaults to `http://127.0.0.1:3000`. |

## Web Server (runtime)

The Node server (`server/index.ts`) passes these values to the browser at runtime (`window.__BAZARPRO_CONFIG__`), so one image works under any domain. They take precedence over the build-time `VITE_*` values above.
The Node server (`server/index.ts`) passes these values to the browser at runtime (`window.__BAZARPRO_CONFIG__`), so one image works under any domain.

| Variable | Description |
| :------------------- | :------------------------------------------------------------------------------------------------------------------------ |
Expand Down Expand Up @@ -55,6 +53,7 @@ Controls the deployment pipeline and server configuration.
| `ADMIN_EMAIL`, `AUTH_SMTP_*`, `AUTH_EMAIL_FROM` | **Yes** | Written to `backend.env` on the server. |
| `AUTH_GITHUB_*`, `AUTH_GOOGLE_*` | No | OAuth sign-in; callback `https://<DOMAIN_NAME>/api/auth/oauth/<provider>/callback`. |
| `CLOUDFLARE_DNS_API_TOKEN` | **Yes** | Cloudflare API token (Zone:DNS:Edit) for Traefik's ACME DNS challenge. |
| `VITE_PLAUSIBLE_API_HOST` | No | Plausible server of production; the deploy sets it as `PLAUSIBLE_API_HOST`. |

---

Expand Down
1 change: 1 addition & 0 deletions ansible/roles/docker_deploy/templates/env.j2
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ IMAGE_TAG={{ image_tag }}
DOMAIN_NAME={{ domain_name }}
CLOUDFLARE_DNS_API_TOKEN={{ cloudflare_dns_api_token }}
POSTGRES_PASSWORD={{ postgres_password }}
PLAUSIBLE_API_HOST={{ plausible_api_host }}
1 change: 1 addition & 0 deletions ansible/site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
domain_name: "{{ lookup('env', 'DOMAIN_NAME') | default('localhost', true) }}"
cloudflare_dns_api_token: "{{ lookup('env', 'CLOUDFLARE_DNS_API_TOKEN') | default('', true) }}"
postgres_password: "{{ lookup('env', 'POSTGRES_PASSWORD') }}"
plausible_api_host: "{{ lookup('env', 'PLAUSIBLE_API_HOST') }}"
# Settings of the backend (backend/README.md), from the CI secrets
backend_settings:
ADMIN_EMAIL: "{{ lookup('env', 'ADMIN_EMAIL') }}"
Expand Down
34 changes: 29 additions & 5 deletions backend/bench/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ k6-Szenarien gegen ein laufendes Backend, so wie die App es benutzt: Abfragen ü
Live-Updates über `/api/ws`. Wie `src/lib/api/client.ts` lädt eine geänderte Abfrage nach
bis zu 300 ms und höchstens einmal pro Sekunde neu; ändert sich das im Client, hier mit.

| Skript | Was passiert |
| ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `browse.js` | Lesekapazität: Besucher laden die öffentliche Eventseite ohne Pause (`VUS`, `DURATION`) |
| `bazaar.js` | Basartag: `CASHIERS` Kassen scannen, verkaufen und stornieren (damit der Artikel verkaufbar bleibt), dazu `VISITORS` Besucher, die die Eventseite `STAY` Sekunden mit Live-Updates offen haben (`DURATION`, `CASH_THINK`) |
| Skript | Was passiert |
| ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `browse.js` | Lesekapazität: Besucher laden die öffentliche Eventseite ohne Pause (`VUS`, `DURATION`) |
| `bazaar.js` | Basartag: `CASHIERS` Kassen scannen, verkaufen und stornieren (damit der Artikel verkaufbar bleibt), dazu `VISITORS` Besucher, die die Eventseite `STAY` Sekunden mit Live-Updates offen haben (`DURATION`, `CASH_THINK`), davon der Anteil `SIGNED_IN` (0–1) angemeldet |

**Nie gegen die Review-Apps oder Produktion:** Sie laufen auf demselben Server wie bazarpro.de.

Expand All @@ -24,7 +24,7 @@ cargo build --release --manifest-path backend/Cargo.toml
backend/target/release/bazarpro-backend import export.zip # echte Daten (npx convex export …) oder: seed
backend/target/release/bazarpro-backend & # lauscht auf :3000

node backend/bench/prepare.mjs # Kassen-Accounts, Artikel → backend/bench/.data.json
node backend/bench/prepare.mjs # Kassen- und Besucher-Accounts, Artikel → backend/bench/.data.json
BACKEND_PID=$(pgrep -f release/bazarpro-backend) backend/bench/run.sh bazaar.js tag500 -e VISITORS=500
```

Expand All @@ -36,6 +36,8 @@ kostet unter Last mehr als ein CPU-Kern.

`prepare.mjs` schaltet `is_e2e_auth_skip_email` ein und macht die Kassen-Accounts zu
Admins (dürfen an jeder Kasse verkaufen). Nur auf einer eigenen Datenbank benutzen.
Angemeldete Besucher (`SIGNED_IN`) nutzen `VISITOR_ACCOUNTS` (200) Accounts ohne Rolle
an der Veranstaltung, wie Käufer. Ihre Latenzen stehen getrennt als `*_signed_in`.

### Daten

Expand Down Expand Up @@ -96,3 +98,25 @@ zwei Läufe je Stand (Spannen):
| Eventseite Median / p95 | 43–290 / ~1 400 ms | 5 / 13–25 ms | 539 / 2 409 ms | 7 / 1 186 ms |
| Übertragen (2 Minuten) | 0,9–1,2 GB | 0,27 GB | 1,35 GB | 0,64 GB |
| Backend-CPU | 0,75–1,2 Kerne | 0,15–0,22 | 1,0 Kerne | 0,48 Kerne |

## Messung vom 31.10.2026: angemeldete Besucher (#228)

Demo-Daten (`seed`, Veranstaltung mit 75 Artikeln), Postgres 17 mit Standardkonfiguration,
`DATABASE_MAX_CONNECTIONS` 10, k6 auf demselben Rechner (12 Kerne, nicht exklusiv).
Basartag mit 20 Kassen, Besucher bleiben 30 s. Eventseite Median / p95, angemeldete
Besucher getrennt:

| Besucher, angemeldet | vorher anonym | vorher angemeldet | nachher anonym | nachher angemeldet |
| -------------------- | ------------- | ----------------- | -------------- | ------------------ |
| 500, 100 % | – | 13 / 61 ms | – | 9 / 26 ms |
| 1000, 0 % | 6 / 107 ms | – | 6 / 95 ms | – |
| 1000, 50 % | 10 / 408 ms | 33 / 1 706 ms | 6 / 121 ms | 10 / 183 ms |
| 1000, 100 % | – | – | – | 14 / 364 ms |

Vorher lief jede Abfrage eines angemeldeten Besuchers gegen Postgres. Bei 1000 Besuchern,
davon die Hälfte angemeldet, war nicht die CPU knapp (Backend 1,1, Postgres 0,5 Kerne),
sondern der Pool: Auch der Verkauf an der Kasse brauchte im Median 495 statt 28 ms.
Nachher bekommen Angemeldete ohne Rolle an der Veranstaltung die Antworten der Besucher
(`registry.share`), der Verkauf liegt bei 35 ms (Median) / 111 ms (p95). Was bleibt, ist pro
Anfrage die Session und die Rollenprüfung sowie `users.viewer`; bei 1000 Angemeldeten
Verkauf 63 / 153 ms.
25 changes: 19 additions & 6 deletions backend/bench/bazaar.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
// updates, the way the app's API client does it (queries over HTTP, the WebSocket only
// names changed topics, then the affected queries are refetched).
// CASHIERS (20), VISITORS (200), DURATION (60s), STAY (30, seconds per visit),
// CASH_THINK (1, seconds between scans)
// CASH_THINK (1, seconds between scans), SIGNED_IN (0, share of visits with an account
// from prepare.mjs; their latencies are reported separately as *_signed_in)
import http from 'k6/http';
import ws from 'k6/ws';
import { sleep } from 'k6';
Expand All @@ -15,10 +16,16 @@ const VISITORS = Number(__ENV.VISITORS || 200);
const DURATION = __ENV.DURATION || '60s';
const STAY = Number(__ENV.STAY || 30);
const CASH_THINK = Number(__ENV.CASH_THINK || 1);
const SIGNED_IN = Number(__ENV.SIGNED_IN || 0);
if (SIGNED_IN > 0 && !DATA.visitors?.length) {
throw new Error('SIGNED_IN braucht Besucher-Accounts: prepare.mjs erneut ausführen.');
}

const pageLoad = new Trend('page_load', true);
const pageLoadSignedIn = new Trend('page_load_signed_in', true);
const sale = new Trend('sale', true);
const refetch = new Trend('update_refetch', true);
const refetchSignedIn = new Trend('update_refetch_signed_in', true);
const updates = new Counter('updates_received');
const wsErrors = new Counter('ws_errors');

Expand Down Expand Up @@ -77,6 +84,12 @@ export function cashier() {
}

export function visitor() {
// Several tabs may share an account, like a buyer with the app on two devices
const cookie =
Math.random() < SIGNED_IN
? DATA.visitors[Math.floor(Math.random() * DATA.visitors.length)]
: undefined;
const auth = cookie ? { Cookie: cookie } : {};
const start = Date.now();
const entries = EVENT_PAGE.map(([name, args]) => ({
name,
Expand All @@ -87,8 +100,8 @@ export function visitor() {
}));
const load = (entry) => {
const res = http.post(`${BASE}/query/${entry.name}`, JSON.stringify(entry.args), {
headers: { 'content-type': 'application/json', 'accept-encoding': 'gzip' },
tags: { fn: entry.name },
headers: { 'content-type': 'application/json', 'accept-encoding': 'gzip', ...auth },
tags: { fn: entry.name, signedIn: String(!!cookie) },
});
try {
entry.topics = JSON.parse(res.body).topics || [];
Expand All @@ -97,9 +110,9 @@ export function visitor() {
}
};
for (const entry of entries) load(entry);
pageLoad.add(Date.now() - start);
(cookie ? pageLoadSignedIn : pageLoad).add(Date.now() - start);

const res = ws.connect(BASE.replace(/^http/, 'ws') + '/ws', {}, (socket) => {
const res = ws.connect(BASE.replace(/^http/, 'ws') + '/ws', { headers: auth }, (socket) => {
socket.on('open', () => {
const topics = [...new Set(entries.flatMap((e) => e.topics))];
socket.send(JSON.stringify({ type: 'subscribe', topics }));
Expand All @@ -124,7 +137,7 @@ export function visitor() {
load(entry);
}
updates.add(1);
refetch.add(Date.now() - now);
(cookie ? refetchSignedIn : refetch).add(Date.now() - now);
}, 20);
socket.on('error', () => wsErrors.add(1));
socket.setTimeout(() => socket.close(), STAY * 1000);
Expand Down
41 changes: 29 additions & 12 deletions backend/bench/prepare.mjs
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
#!/usr/bin/env node
// Prepares a running backend for the load tests and writes bench/.data.json:
// the event, its items and signed-in cashier sessions (platform admins, so they may sell).
// the event, its items, signed-in cashier sessions (platform admins, so they may sell) and
// sessions of plain accounts for signed-in visitors (bazaar.js SIGNED_IN).
//
// DATABASE_URL=… node backend/bench/prepare.mjs
//
// BASE (http://127.0.0.1:3000/api), EVENT (default: the event with the most items),
// CASHIERS (40), BACKEND_BIN (backend/target/release/bazarpro-backend).
// Turns on is_e2e_auth_skip_email: only for a database of its own, never production.
// CASHIERS (40), VISITOR_ACCOUNTS (200), BACKEND_BIN (backend/target/release/bazarpro-backend).
// Turns on is_e2e_auth_skip_email and registration: only for a database of its own, never
// production.
import { execFileSync } from 'node:child_process';
import { writeFileSync } from 'node:fs';
import { tmpdir } from 'node:os';
Expand All @@ -16,6 +18,7 @@ import { fileURLToPath } from 'node:url';
const here = dirname(fileURLToPath(import.meta.url));
const BASE = process.env.BASE ?? 'http://127.0.0.1:3000/api';
const CASHIERS = Number(process.env.CASHIERS ?? 40);
const VISITOR_ACCOUNTS = Number(process.env.VISITOR_ACCOUNTS ?? 200);
const BIN = process.env.BACKEND_BIN ?? join(here, '../target/release/bazarpro-backend');
const PASSWORD = 'Bench-Passw0rd!';

Expand Down Expand Up @@ -43,21 +46,22 @@ async function post(path, body, cookie) {
return { status: res.status, body: await res.json(), cookie: session?.split(';')[0] };
}

async function cashierSession(i) {
const email = `bench-kasse${i}@bench.local`;
async function session(email, name) {
const signIn = await post('/auth/password', { flow: 'signIn', email, password: PASSWORD });
if (signIn.cookie) return { email, cookie: signIn.cookie };
await post('/auth/password', { flow: 'signUp', email, password: PASSWORD, name: `Kasse ${i}` });
if (signIn.cookie) return signIn.cookie;
await post('/auth/password', { flow: 'signUp', email, password: PASSWORD, name });
const { code } = await (
await fetch(`${BASE}/auth/e2e-code?email=${encodeURIComponent(email)}`)
).json();
const verified = await post('/auth/password', { flow: 'email-verification', email, code });
if (!verified.cookie)
throw new Error(`Anmeldung von ${email} fehlgeschlagen: ${JSON.stringify(verified.body)}`);
return { email, cookie: verified.cookie };
return verified.cookie;
}

cli('run', 'featureFlags.set', JSON.stringify({ key: 'is_e2e_auth_skip_email', value: true }));
// The demo data (seed) turns registration off
cli('run', 'featureFlags.set', JSON.stringify({ key: 'is_registration_enabled', value: true }));

let event = process.env.EVENT;
const products = async (id) =>
Expand All @@ -75,15 +79,28 @@ const items = (await products(event)).map((p) => ({

const cashiers = [];
for (let i = 0; i < CASHIERS; i++) {
const { email, cookie } = await cashierSession(i);
const email = `bench-kasse${i}@bench.local`;
cashiers.push(await session(email, `Kasse ${i}`));
cli('admin', email);
cashiers.push(cookie);
}

writeFileSync(join(here, '.data.json'), JSON.stringify({ event, products: items, cashiers }));
// Buyers without a role at the event: what they see could be shared with other visitors
const visitors = [];
for (let i = 0; i < VISITOR_ACCOUNTS; i += 10) {
const batch = Array.from({ length: Math.min(10, VISITOR_ACCOUNTS - i) }, (_, j) =>
session(`bench-besucher${i + j}@bench.local`, `Besucher ${i + j}`)
);
visitors.push(...(await Promise.all(batch)));
}

writeFileSync(
join(here, '.data.json'),
JSON.stringify({ event, products: items, cashiers, visitors })
);
const available = (await products(event)).filter((p) => p.status === 'available').length;
console.log(
`Veranstaltung ${event}: ${items.length} Artikel (${available} verkaufbar), ${cashiers.length} Kassen.`
`Veranstaltung ${event}: ${items.length} Artikel (${available} verkaufbar), ` +
`${cashiers.length} Kassen, ${visitors.length} Besucher-Accounts.`
);
if (available < items.length)
console.log('Zum Verkaufen alle Artikel freigeben, siehe README (Abschnitt Daten).');
2 changes: 1 addition & 1 deletion backend/bench/summary.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ for (const file of process.argv.slice(2)) {
const rows = Object.entries(m).filter(
([key, v]) =>
'med' in v &&
(key.startsWith('http_req_duration') || ['page_load', 'sale', 'update_refetch'].includes(key))
['http_req_duration', 'page_load', 'sale', 'update_refetch'].some((name) => key.startsWith(name))
);
for (const [key, v] of rows.sort()) {
const label = key.replace('http_req_duration', 'http').padEnd(48);
Expand Down
3 changes: 3 additions & 0 deletions backend/migrations/0015_event_address.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-- Address of the venue next to the free-text location (its name, e.g. "Turnhalle Nord"):
-- search engines show an event in their event results only with a postal address.
ALTER TABLE events ADD COLUMN street text, ADD COLUMN postal_code text, ADD COLUMN city text;
2 changes: 2 additions & 0 deletions backend/migrations/0016_event_country.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-- Country of the venue's address (ISO 3166-1 alpha-2, e.g. DE, AT, CH); empty is Germany.
ALTER TABLE events ADD COLUMN country text;
Loading
Loading