Commit Graph

6 Commits

Author SHA1 Message Date
801d0cce5f Add test/prod environments and endpoint versioning
Phase 1: Test/Prod Database Configurations
- Migration 010: test_* columns on databases table, environment column on request_logs
- DatabasePoolManager: dual-pool strategy (prod + test), getPool(id, env) with fallback
- SqlExecutor, ScriptExecutor, IsolatedScriptExecutor, AqlExecutor: environment param threaded through all execution paths
- dynamicApiController: X-Environment header detection, environment in logging
- databaseManagementController: CRUD for test credentials, testConnection with ?env=test
- Frontend: test env form in DatabaseModal, env toggle in EndpointEditor test panel

Phase 2: Endpoint Versioning
- Migration 011: endpoint_versions table with full snapshots, backfill v1 for existing endpoints
- VersionService: createVersion, saveDraft, publishVersion, rollbackToVersion, getHistory
- endpointController: auto-versioning on update, 6 new version management handlers
- dynamicApiController: draft serving when environment=test and draft exists
- Frontend: Save Draft button, version history panel with publish/rollback actions

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-23 21:04:11 +03:00
GEgorov
4164964fd1 modified: backend/src/services/AqlExecutor.ts
new file:   backend/src/services/AqlExecutor.ts.backup
2025-10-21 12:59:45 +03:00
GEgorov
dc61529d05 modified: backend/src/services/AqlExecutor.ts 2025-10-07 22:27:12 +03:00
GEgorov
34058b5101 modified: backend/src/services/AqlExecutor.ts 2025-10-07 22:25:50 +03:00
GEgorov
3f6b3e7536 modified: backend/src/services/AqlExecutor.ts 2025-10-07 20:24:36 +03:00
GEgorov
713e9ba7f7 modified: backend/src/controllers/databaseManagementController.ts
modified:   backend/src/controllers/dynamicApiController.ts
	modified:   backend/src/controllers/endpointController.ts
	new file:   backend/src/migrations/005_add_aql_support.sql
	new file:   backend/src/services/AqlExecutor.ts
	modified:   backend/src/types/index.ts
	modified:   frontend/src/components/EndpointModal.tsx
	modified:   frontend/src/pages/Databases.tsx
	modified:   frontend/src/types/index.ts
2025-10-07 19:33:50 +03:00