2 Commits
Author SHA1 Message Date
zeekay 88e4947893 refactor(rebrand): finish langflow->flow module rebrand — migrate unique code, repoint all imports
The concurrent rebrand left src/backend/base/langflow alive with 34 UNIQUE
unmigrated files (a flow_events service, the WatsonX-Orchestrate deployment
adapter, the flow_version_deployment_attachment DB model + tests) that flow/
never received, plus 152 files still importing `langflow` and 137 more with
`langflow.<mod>` string module paths (import_module/monkeypatch targets).

- Migrated all 34 unique files langflow/ -> flow/ at matching paths (dropped
  langflow/api/v1/__init__.py, superseded by flow/'s).
- Deleted the emptied src/backend/base/langflow package.
- Repointed every `from langflow`/`import langflow` (152 files) and every
  `langflow.<mod>` string path (137 files) to `flow`.

Verify: 0 `from/import langflow` and 0 `langflow.` module refs remain in *.py;
compileall of src/backend/base/flow + src/lfx/src parses clean. Runtime import
resolution + the uv test suite is the CI gate (the module tree is now internally
consistent: every moved model/service resolves under flow/).

Remaining (follow-on commits): runtime identifier strings (MCP server names),
the langflow-base/langflow-sdk distribution names, and the docs corpus.
2026-07-16 10:00:50 -07:00
c69659c194 feat: Version 1.2 - comprehensive database migration guidelines using… (#10519)
* 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: Hanzo Dev <[email protected]>

* 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: Hanzo Dev <[email protected]>

* Update src/backend/base/langflow/alembic/migration_validator.py

Co-authored-by: Hanzo Dev <[email protected]>

* Update src/backend/base/langflow/alembic/migration_validator.py

Co-authored-by: Hanzo Dev <[email protected]>

* 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: Hanzo Dev <[email protected]>

* Update .github/workflows/migration-validation.yml

Co-authored-by: Hanzo Dev <[email protected]>

* feat: color improvments

* Update .github/workflows/migration-validation.yml

Removed

Co-authored-by: Hanzo Dev <[email protected]>

* Update .github/workflows/migration-validation.yml

Co-authored-by: Hanzo Dev <[email protected]>

* 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: Hanzo Dev <[email protected]>
Co-authored-by: Hanzo Dev <[email protected]>
2025-11-24 23:09:11 +00:00