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: remove `.air` folder (#16523)
boojack21f3391c44dc
diff --git a/.gitignore b/.gitignoreindex 1072b800f9..6dfac33c2c 100644--- a/.gitignore+++ b/.gitignore@@ -17,9 +17,6 @@ mysql-*.tar*# Dependency directories (remove the comment below to include it)# vendor/-# Air (hot reload) generated-.air-# Frontend assetdist@@ -30,12 +27,3 @@ bytebase-build.idea.DS_Store--dist/-docs/openapi/swagger.json-docs/sqlservice/swagger.json-frontend/public/monaco-workers/-frontend/src/types/plan.yaml-frontend/src/types/iam/*.yaml-scripts/.air.toml.local-diff --git a/.gitpod.yml b/.gitpod.ymldeleted file mode 100644index be25f918ae..0000000000--- a/.gitpod.yml+++ /dev/null@@ -1,15 +0,0 @@-tasks:- - name: Init Frontend- before: cd ./frontend- init: pnpm i- command: pnpm dev- - name: Init Backend- init: curl -sSfL https://raw.githubusercontent.com/cosmtrek/air/master/install.sh | sh -s- command: rm -fv .air/pgdata/postmaster.pid && ./bin/air -c scripts/.air.toml--# List the ports to expose. Learn more https://www.gitpod.io/docs/config-ports/-ports:- - port: 3000- onOpen: open-preview- - port: 8080- onOpen: ignorediff --git a/.vscode/launch.json b/.vscode/launch.jsonindex cdb9fe0201..653cdeb662 100644--- a/.vscode/launch.json+++ b/.vscode/launch.json@@ -6,14 +6,14 @@"type": "go","request": "launch","mode": "exec",- "program": "${workspaceFolder}/.air/bytebase",+ "program": "${workspaceFolder}/bytebase-build/bytebase","args": ["--port","8080","--external-url","http://localhost:3000","--data",- "${workspaceFolder}/.air"+ "${workspaceFolder}/bytebase-build"]},{diff --git a/CLAUDE.md b/CLAUDE.mdindex 3376c31bc7..fcdfc686f4 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -28,7 +28,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co3. **Generate**: Run `cd proto && buf generate`## Build/Test Commands-- Backend: `go build -ldflags "-w -s" -p=16 -o ./.air/bytebase ./backend/bin/server/main.go`+- Backend: `go build -ldflags "-w -s" -p=16 -o ./bytebase-build/bytebase ./backend/bin/server/main.go`- Start backend: `PG_URL=postgresql://bbdev@localhost/bbdev go run ./backend/bin/server/main.go --port 8080 --data . --debug`- Run a single Go test: `go test -v -count=1 github.com/bytebase/bytebase/backend/path/to/tests -run ^TestFunctionName$`- Run two Go tests: `go test -v -count=1 github.com/bytebase/bytebase/backend/path/to/tests -run ^(TestFunctionName|TestFunctionNameTwo)$`diff --git a/README.md b/README.mdindex 1cf6f50b7e..1b6646b173 100644--- a/README.md+++ b/README.md@@ -276,7 +276,7 @@ Below diagram describes a typical mapping between an engineering org and the cor```bashPG_URL=postgresql://bbdev@localhost/bbdev- go build -ldflags "-w -s" -p=16 -o ./.air/bytebase ./backend/bin/server/main.go && ./.air/bytebase --port 8080 --data . --debug --disable-sample+ go build -ldflags "-w -s" -p=16 -o ./bytebase-build/bytebase ./backend/bin/server/main.go && ./bytebase-build/bytebase --port 8080 --data . --debug --disable-sample```1. Start frontend (with live reload).diff --git a/backend/demo/README.md b/backend/demo/README.mdindex f7db52dfce..a9f338922c 100644--- a/backend/demo/README.md+++ b/backend/demo/README.md@@ -10,14 +10,14 @@ This is the demo data for https://demo.bytebase.com.```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+ go build -p=16 -ldflags "-w -s" -o ./bytebase-build/bytebase ./backend/bin/server/main.go && PATH="$PWD/bytebase-build/resources/postgres-darwin-arm64-16/bin:$PATH" ./bytebase-build/bytebase --port 8080 --data . --debug --demo```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+ PATH="$PWD/bytebase-build/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 consistentdiff --git a/frontend/.gitignore b/frontend/.gitignoreindex b1cbd54e44..2ea652088d 100644--- a/frontend/.gitignore+++ b/frontend/.gitignore@@ -3,6 +3,8 @@node_modules/distcomponents.d.ts+src/types/plan.yaml+src/types/iam/*.yaml# local env files.env.i18ndiff --git a/frontend/src/views/ProfileDashboard.vue b/frontend/src/views/ProfileDashboard.vueindex 4316253e5c..d94eecb798 100644--- a/frontend/src/views/ProfileDashboard.vue+++ b/frontend/src/views/ProfileDashboard.vue@@ -88,7 +88,11 @@{{ displayRoleTitle(role) }}</NTag></div>- <router-link :to="'/setting/subscription'" class="normal-link">+ <router-link+ v-if="!hasFeature(PlanFeature.FEATURE_IAM)"+ :to="'/setting/subscription'"+ class="normal-link"+ >{{ $t("settings.profile.subscription") }}</router-link></dd>@@ -238,6 +242,7 @@ import { WORKSPACE_ROUTE_USER_PROFILE } from "@/router/dashboard/workspaceRoutesimport { SETTING_ROUTE_PROFILE_TWO_FACTOR } from "@/router/dashboard/workspaceSetting";import {featureToRef,+ hasFeature,pushNotification,useActuatorV1Store,useCurrentUserV1,