Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
3691bd8
feat: Version 1.2 - comprehensive database migration guidelines using…
ricofurtado Nov 6, 2025
40488b6
Update src/backend/base/langflow/alembic/DB-MIGRATION-GUIDE.MD
ricofurtado Nov 6, 2025
5f7b330
fix: Cleanup text and typos
ricofurtado Nov 6, 2025
1381f0a
feat: Implement migration validation workflow and add migration valid…
ricofurtado Nov 17, 2025
6ac2304
Update src/backend/base/langflow/alembic/migration_validator.py
ricofurtado Nov 17, 2025
3c407b3
Update src/backend/base/langflow/alembic/migration_validator.py
ricofurtado Nov 17, 2025
76c9ba3
Update src/backend/base/langflow/alembic/migration_validator.py
ricofurtado Nov 17, 2025
b09f3c0
fix: moved the test_migrations directory to under tests
ricofurtado Nov 17, 2025
0d919cd
feat: Added migration validator to pre-commit check.
ricofurtado Nov 17, 2025
96e79b7
fix: improved test performance.
ricofurtado Nov 17, 2025
782c6df
fix: optimized attribute resolution in migration validator
ricofurtado Nov 17, 2025
fed102c
feat: add comprehensive tests for migration validator and guidelines
ricofurtado Nov 24, 2025
8af5c2a
fix: Lint is complaining about shebang declared but not being used.
ricofurtado Nov 24, 2025
ec8ad0a
fix: Shebang reinstated.
ricofurtado Nov 24, 2025
1549d97
Update src/backend/base/langflow/alembic/DB-MIGRATION-GUIDE.MD
ricofurtado Nov 24, 2025
a613912
Update .github/workflows/migration-validation.yml
ricofurtado Nov 24, 2025
e7885d4
feat: color improvments
ricofurtado Nov 24, 2025
75d347b
Update .github/workflows/migration-validation.yml
ricofurtado Nov 24, 2025
80d432d
Update .github/workflows/migration-validation.yml
ricofurtado Nov 24, 2025
03a5085
ci: Created relative paths for CI
ricofurtado Nov 24, 2025
e2cffc4
[autofix.ci] apply automated fixes
autofix-ci[bot] Nov 24, 2025
0a86d9b
[autofix.ci] apply automated fixes (attempt 2/3)
autofix-ci[bot] Nov 24, 2025
f675114
[autofix.ci] apply automated fixes (attempt 3/3)
autofix-ci[bot] Nov 24, 2025
082f591
fix: Component index json.
ricofurtado Nov 24, 2025
d5c3380
[autofix.ci] apply automated fixes
autofix-ci[bot] Nov 24, 2025
c540ec9
[autofix.ci] apply automated fixes (attempt 2/3)
autofix-ci[bot] Nov 24, 2025
ba1a211
[autofix.ci] apply automated fixes (attempt 3/3)
autofix-ci[bot] Nov 24, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: optimized attribute resolution in migration validator
  • Loading branch information
ricofurtado committed Nov 24, 2025
commit 782c6df22af579485086d12d1106bebe171b95ed
9 changes: 7 additions & 2 deletions src/backend/base/langflow/alembic/migration_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,13 @@ def _check_downgrade_safety(self, node: ast.FunctionDef, phase: MigrationPhase)

def _is_op_call(self, call: ast.Call, method: str) -> bool:
"""Check if call is op.method()."""
if isinstance(call.func, ast.Attribute) and isinstance(call.func.value, ast.Name):
return call.func.value.id == "op" and call.func.attr == method
func = call.func

# Avoid multiple attribute resolutions and isinstance checks
if type(func) is ast.Attribute:
val = func.value
if type(val) is ast.Name:
return val.id == "op" and func.attr == method
return False

def _has_nullable_true(self, call: ast.Call) -> bool:
Expand Down