This commit refactors the migrate_messages_from_monitor_service_to_database function in utils.py to correctly handle the session_id parameter. The session_id is now included in the key used to filter out messages that already exist in the database, ensuring that duplicate messages are not inserted. This improves the data integrity and consistency of the database.
This commit adds field validation for the `flow_id` attribute in the `MessageTable` model. The `validate_flow_id` class method is implemented to ensure that the `flow_id` value is either `None` or a valid UUID. This validation helps maintain data integrity and consistency when working with the `MessageTable` model.
This commit adds the `serialize_flow_id` method to the `Message` class in the `message.py` file. This method serializes the `flow_id` attribute of a `Message` object, converting it to a UUID if it is a string. This ensures consistent serialization of the `flow_id` attribute when working with the `Message` class.
This commit migrates messages from the monitor service to the database. It adds a new function `migrate_messages_from_monitor_service_to_database` in the `utils.py` file, which retrieves messages from the monitor service, adds them to the database, and deletes them from the monitor service. This migration ensures that messages are stored in the database for better reliability and retrieval.
This commit imports the firecrawl integration package in the FirecrawlCrawlApi and FirecrawlScrapeApi files. It ensures that the package is available for use in the code. If the package is not installed, an ImportError is raised with instructions to install it using `pip install firecrawl-py`.
This pull request fixes the validation and save button behavior in the
flow settings modal. Previously, the save button was not disabled when
it should have been, and the endpoint name validation was not working
correctly. This PR updates the validation logic and ensures that the
save button is disabled when necessary.
✅ (store.spec.ts): update test selector to use new data-testid attribute
♻️ (textInputOutput.spec.ts): refactor element selection and interaction logic for clarity and maintainability
The auto-update workflow has been added to the repository. This workflow
will automatically trigger on pushes to the `dev` and `main` branches.
It runs on the latest version of Ubuntu and uses the
`tibdex/auto-update@v2` action to perform the auto-update process.
This pull request adds GitHub workflows for JavaScript and Python
autofix. The JavaScript workflow is triggered on pull requests and
pushes to the main branch for changes in the "src/frontend" directory.
It sets up Node.js, caches Node.js dependencies, installs Node.js
dependencies, and runs Prettier for code formatting. The Python workflow
is also triggered on pull requests and pushes to the main branch for
changes in the "poetry.lock", "pyproject.toml", "src/backend", and
"tests" directories. It installs Ruff and runs Mypy for type checking
and code formatting.
* Added support for Contact points
* Reworded some parameters depending on astra / local cassandra usage
* Added username
Successor of https://github.com/langflow-ai/langflow/pull/2206 but with
the new framework
* Add ProviderKey as text field since it's the only auth entry available
today
* Hide authentication and external key as advanced fields
* Make provider name and model required
* Make provider as dropdown
* Add complete list of models in the help (better to not hardcode models
for now)
This commit adds GitHub workflows for JavaScript and Python autofix. The JavaScript workflow is triggered on pull requests and pushes to the main branch, specifically for changes in the "src/frontend" directory. It checks out the code, sets up Node.js, caches Node.js dependencies, installs Node.js dependencies, and runs Prettier for code formatting. The Python workflow is also triggered on pull requests and pushes to the main branch, but for changes in the "poetry.lock", "pyproject.toml", "src/backend", and "tests" directories. It checks out the code, installs Ruff, and runs Mypy for type checking and code formatting.
💡 (textAreaWrapper): add data-testid attribute for better test targeting
✅ (actionsMainPage.spec.ts): add waitForSelector for better test stability
✅ (basicExamples.spec.ts): replace waitForTimeout with waitForSelector
✅ (basicExamples.spec.ts): use data-testid for chat input for consistency
✅ (memoryChatbot.spec.ts): replace waitForTimeout with waitForSelector
✅ (memoryChatbot.spec.ts): use data-testid for chat input for consistency
✅ (documentQA.spec.ts): replace waitForTimeout with waitForSelector
✅ (documentQA.spec.ts): use data-testid for chat input for consistency
✅ (vectorStoreRAG.spec.ts): replace waitForTimeout with waitForSelector
✅ (vectorStoreRAG.spec.ts): use data-testid for chat input for consistency
✅ (tests): add waitForSelector to ensure elements are loaded before interaction
✅ (tests): add waitForSelector for 'fit view' button in end-to-end tests