Commit e672b48
chore: delete demo mode (#20393)
* chore: delete demo mode
Removes the --demo server flag and everything it pulled in: backend/demo
package + dump.sql, demo banner/badge/signin form, demo locale keys,
"bool demo" actuator proto field (reserved 5), --minidemo build tag,
and the GitHub workflows that built/deployed the demo image.
Rewrites the e2e bootstrap to replace --demo's pre-populated admin and
sample instances with /v1/auth/signup followed by /v1/actuator:setupSample,
with TCP readiness probes on the sample Postgres ports. Drops the
bytebase-action default --url of https://demo.bytebase.com (now required).
Removes the RELEASE Docker build arg since the only remaining caller was
already passing RELEASE=release.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* fix: address codex review on demo deletion PR
P2: reject empty --url at flag-validation time in bytebase-action with a
clear error, instead of falling through to a confusing network failure.
Also requires the URL to be absolute (scheme + host).
P1: install an enterprise license during e2e bootstrap when the
BYTEBASE_E2E_LICENSE env var is set, via PATCH /v1/subscription/license.
Without the env var the bootstrap warns and continues on free plan, so
masking/classification specs can opt in once a dev license is provided
out of band.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* fix(e2e): skip enterprise-gated specs when no license is provided
Codex flagged that the previous fix still let masking specs run on free
plan and fail. Plumb env.hasLicense through the bootstrap, and have
masking-exemption.spec.ts skip itself in beforeAll when no license is
present, instead of failing.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* fix(e2e): provision dba1 fixture user during bootstrap
Codex flagged that the new bootstrap dropped the demo dump's pre-seeded
dba1@example.com user, which two plan-detail specs use as a second
approver. Add createUser + addWorkspaceRoleMember helpers and create
dba1@example.com with workspaceDBA role after admin signup.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* fix(e2e): correct actuator-info path to /v1/actuator/info
Codex caught that getActuatorInfo() requested /v1/actuator, but the
gateway only exposes GetActuatorInfo at /v1/actuator/info. The bootstrap
hits this unconditionally before provisioning the DBA fixture, so the
whole e2e suite would 404 on clean environments.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 8d95a6e commit e672b48
54 files changed
Lines changed: 263 additions & 6193 deletions
File tree
- .github/workflows
- action
- command
- validation
- backend
- api
- mcp/gen
- v1
- bin/server/cmd
- component/config
- demo
- data
- generated-go/v1
- server
- frontend
- src
- locales
- react
- components
- auth
- header
- locales
- pages/auth
- store/modules/v1
- types/proto-es/v1
- tests/e2e
- framework
- masking-exemption
- proto
- gen/grpc-doc
- v1
- v1/v1
- scripts
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | 53 | | |
55 | 54 | | |
56 | 55 | | |
| |||
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
| 38 | + | |
40 | 39 | | |
41 | 40 | | |
42 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
44 | 47 | | |
45 | 48 | | |
46 | 49 | | |
47 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
48 | 54 | | |
49 | 55 | | |
50 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7921 | 7921 | | |
7922 | 7922 | | |
7923 | 7923 | | |
7924 | | - | |
7925 | | - | |
7926 | | - | |
7927 | | - | |
7928 | 7924 | | |
7929 | 7925 | | |
7930 | 7926 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
137 | 136 | | |
138 | 137 | | |
139 | 138 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
| |||
0 commit comments