* feat: Version 1.2 - comprehensive database migration guidelines using the Expand-Contract pattern * Update src/backend/base/langflow/alembic/DB-MIGRATION-GUIDE.MD Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * fix: Cleanup text and typos * feat: Implement migration validation workflow and add migration validator scripts * Update src/backend/base/langflow/alembic/migration_validator.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update src/backend/base/langflow/alembic/migration_validator.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update src/backend/base/langflow/alembic/migration_validator.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * fix: moved the test_migrations directory to under tests * feat: Added migration validator to pre-commit check. * fix: improved test performance. * fix: optimized attribute resolution in migration validator * feat: add comprehensive tests for migration validator and guidelines * fix: Lint is complaining about shebang declared but not being used. * fix: Shebang reinstated. * Update src/backend/base/langflow/alembic/DB-MIGRATION-GUIDE.MD Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update .github/workflows/migration-validation.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * feat: color improvments * Update .github/workflows/migration-validation.yml Removed Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update .github/workflows/migration-validation.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * ci: Created relative paths for CI * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) * fix: Component index json. * [autofix.ci] apply automated fixes * [autofix.ci] apply automated fixes (attempt 2/3) * [autofix.ci] apply automated fixes (attempt 3/3) --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
93 lines
2.1 KiB
JSON
93 lines
2.1 KiB
JSON
{
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
|
|
{
|
|
"name": "Debug Backend",
|
|
"type": "debugpy",
|
|
"request": "launch",
|
|
"module": "uvicorn",
|
|
"preLaunchTask": "Install Backend",
|
|
|
|
"args": [
|
|
"--factory",
|
|
"langflow.main:create_app",
|
|
"--port",
|
|
"7860",
|
|
"--reload",
|
|
"--log-level",
|
|
"debug",
|
|
"--loop",
|
|
"asyncio",
|
|
"--reload-include",
|
|
"./src/backend/*",
|
|
"--reload-include",
|
|
"./src/lfx/*",
|
|
"--reload-exclude",
|
|
"*.db*"
|
|
],
|
|
"jinja": true,
|
|
"justMyCode": false,
|
|
"env": {
|
|
"LANGFLOW_LOG_LEVEL": "debug",
|
|
"LANGFLOW_PROMETHEUS_PORT": "9090"
|
|
},
|
|
"envFile": "${workspaceFolder}/.env"
|
|
},
|
|
{
|
|
"name": "Debug CLI",
|
|
"type": "debugpy",
|
|
"request": "launch",
|
|
"module": "langflow",
|
|
"args": [
|
|
"run",
|
|
"--frontend-path",
|
|
"${workspaceFolder}/src/backend/base/langflow/frontend",
|
|
"--env-file",
|
|
"${workspaceFolder}/.env"
|
|
],
|
|
// "python": "/path/to/your/python_env/python", // Replace with the path to your Python executable
|
|
"jinja": true,
|
|
"justMyCode": false
|
|
},
|
|
{
|
|
"name": "Python: Remote Attach",
|
|
"type": "debugpy",
|
|
"request": "attach",
|
|
"justMyCode": true,
|
|
"connect": {
|
|
"port": 5678
|
|
},
|
|
"pathMappings": [
|
|
{
|
|
"localRoot": "${workspaceFolder}",
|
|
"remoteRoot": "."
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "Debug Frontend",
|
|
"type": "chrome",
|
|
"request": "launch",
|
|
"url": "http://localhost:3000/",
|
|
"webRoot": "${workspaceRoot}/src/frontend"
|
|
},
|
|
{
|
|
"name": "Python: Debug Tests",
|
|
"type": "debugpy",
|
|
"request": "launch",
|
|
"program": "${file}",
|
|
"purpose": ["debug-test"],
|
|
"console": "integratedTerminal",
|
|
"justMyCode": false
|
|
},
|
|
{
|
|
"name": "Python Debugger: Python File",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"program": "${file}",
|
|
"console": "integratedTerminal"
|
|
}
|
|
]
|
|
}
|