Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: new demo data scratch from 3.6.2 (#16211)
Tianzhoue5761c83bec3
diff --git a/backend/demo/README.md b/backend/demo/README.mdindex afeb71b1b1..06e04403bd 100644--- a/backend/demo/README.md+++ b/backend/demo/README.md@@ -6,19 +6,29 @@ This is the demo data for https://demo.bytebase.com.# How to update demo data-1. Build and start Bytebase backend with `--demo default` on main branch.-```bash-go build -p=16 -ldflags "-w -s" -o ./.air/bytebase ./backend/bin/server/main.go && ./.air/bytebase --port 8080 --data . --debug --demo=default-```+1. Build and start Bytebase backend with `--demo` on a release branch (e.g. release/3.6.2).-2. Dump with the following command.+ ```bash+ # Make sure to use the local pg binary+ go build -p=16 -ldflags "-w -s" -o ./.air/bytebase ./backend/bin/server/main.go && PATH="$PWD/.air/resources/postgres-darwin-arm64-16/bin:$PATH" ./.air/bytebase --port 8080 --data . --debug --demo+ ```-```bash-pg_dump -h /tmp -p 8082 -U bb --disable-triggers --no-owner --column-inserts --on-conflict-do-nothing > ~/dump.sql-```+1. Dump with the following command.++ ```bash+ # Make sure to use the local pg binary+ PATH="$PWD/.air/resources/postgres-darwin-arm64-16/bin:$PATH" pg_dump -h /tmp -p 8082 -U bb --disable-triggers --no-owner --column-inserts --on-conflict-do-nothing > ~/dump.sql+ ```++ On the top of the dump.sql, the version should be consistent++ ```sql+ -- Dumped from database version 16.0+ -- Dumped by pg_dump version 16.0+ ```1. Copy and replace `dump.sql`.# Users-Demo data service account: [email protected] password: bbs_iqysPHMqhNpG4rQ5SFEJ+Demo data service account: [email protected] password: bbs_EDyd8zleJVBEZyw81kLLdiff --git a/frontend/src/components/PasswordSigninForm.vue b/frontend/src/components/PasswordSigninForm.vueindex 297b2285c0..abc7f582eb 100644--- a/frontend/src/components/PasswordSigninForm.vue+++ b/frontend/src/components/PasswordSigninForm.vue@@ -123,7 +123,7 @@ onMounted(async () => {const url = new URL(window.location.href);const params = new URLSearchParams(url.search);state.email = params.get("email") ?? (isDemo.value ? "[email protected]" : "");- state.password = params.get("password") ?? (isDemo.value ? "1024" : "");+ state.password = params.get("password") ?? (isDemo.value ? "12345678" : "");state.showPassword = !!isDemo.value;// Try to signin with example account in demo site.