* test: enhance agent component tests and add new fixture for database-less sessions
- Added `use_noop_session` fixture to facilitate testing without a database.
- Expanded `TestAgentComponent` with new tests for agent responses using the Calculator tool and validation across all OpenAI and Anthropic models.
- Updated `test_component.py` to include tests for message sending without a database, ensuring proper event handling and message integrity.
- Refactored existing tests for clarity and consistency.
* fix: enhance user retrieval logic in get_or_create_super_user and teardown_superuser functions
- Updated user retrieval in both functions to handle different result types from the database query, ensuring robustness against unexpected return values.
- Added checks for `first()` method and list type to improve error handling and maintainability.
* feat: add support for no-op database operations in settings
- Introduced `use_noop_database` configuration option to disable all database operations, controlled by the `LANGFLOW_USE_NOOP_DATABASE` environment variable.
- Updated the `use_noop_session` fixture to reflect the new environment variable for testing without a database.
* feat: implement NoopSession for database-less operations
- Added NoopSession class to provide a no-operation database session, allowing for testing and operation without a real database connection.
- Updated DatabaseService to utilize NoopSession when the `use_noop_database` setting is enabled, ensuring all database operations are disabled in this mode.
- Enhanced error handling and logging for session management, improving robustness in scenarios where the database is not in use.
* refactor: update import paths for NoopSession in test files
- Changed import path for NoopSession from `langflow.services.database.service` to `langflow.services.database.session` in both `test_agent_component.py` and `test_component.py`.
- This refactor improves code organization and aligns with recent changes in the project structure.
* feat: enhance NoopSession with result handling methods
- Added an internal _NoopResult class to the NoopSession, providing methods `first()`, `all()`, and `one_or_none()` for better handling of no-operation results.
- This enhancement improves the usability of NoopSession in testing scenarios by mimicking expected database query behaviors.
* refactor: improve logging for NOOP database session
- Changed the log level from warning to info for the NOOP database session message in the DatabaseService class.
- This adjustment enhances clarity in logging, indicating that all DB operations are disabled without implying an error condition.
* docs: improve docstring formatting for custom_component_update function
- Reformatted the docstring for the custom_component_update function to enhance readability by breaking long lines into multiple lines.
- This change improves documentation clarity, making it easier for developers to understand the function's purpose and behavior.
* docs: add LANGFLOW_USE_NOOP_DATABASE environment variable documentation
- Introduced documentation for the new LANGFLOW_USE_NOOP_DATABASE environment variable, which allows users to enable a no-op database mode, avoiding database connections and operations.
- This addition enhances the clarity of configuration options available for Langflow, aiding users in understanding how to run flows without a database.
* refactor: move NOOP database session logging to settings
- Removed the logging statement from the DatabaseService class and added it to the `set_use_noop_database` field validator in the Settings class.
- This change centralizes the logging for the NOOP database session, improving code organization and ensuring that the message is logged whenever the setting is applied.
* docs: Add heading and codeblock events for segment
* docs: Update scroll event names
* docs: improve capture of code block language
* docs: ensure code block language capture for mobile
* semver
* make-h3
* move-version-match-note
* comma
* important
* Update docs/docs/Support/release-notes.md
Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>
---------
Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>
* docs: add env var setup for macOS and Windows GUI
* style-and-cleanup
* docs-review
* add-env-vars-to-troubleshooting
* Update docs/docs/Get-Started/get-started-installation.md
* Apply suggestions from code review
Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>
* Apply suggestions from code review
Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>
* docs-review
---------
Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com>
Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>
* minimal-working-code
* remove-old-files-and-add-new-content
* cleanup
* Apply suggestions from code review
Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>
* Apply suggestions from code review
Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>
* Apply suggestions from code review
Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>
* Apply suggestions from code review
Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>
* intro-and-sidebars
* Apply suggestions from code review
Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>
* Apply suggestions from code review
* add-fake-resume
* docs: update chat-with-files tutorial to include Langflow API key and clarify file upload process
* docs: enhance chat-with-files tutorial to support multiple file uploads with example code
* move-file-and-fixpath
* Apply suggestions from code review
Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>
* docs: update fake resume with new example details
* Apply suggestions from code review
---------
Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>
* initial-content
* Apply suggestions from code review
* Apply suggestions from code review
Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>
* peer-review
* fix-broken-link
* link
* language
---------
Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>
* add-mac-uninstall-error
* windows-commands
* style
* Apply suggestions from code review
Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>
* tabs-and-tab-groups
---------
Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>
* add-package-management-for-lf-desktop
* username
* Apply suggestions from code review
Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>
* combine-oss-dependency-management
---------
Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>
* add-api-key-header-to-examples
* api-examples-add-keys
* auth-login-behavior-changes
* no-all-endpoint
* syntax
* text
* cleanup
* notice-for-mcp
* include-instructions-for-exporting-key
* Apply suggestions from code review
Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>
* chat-io-double-quotes
* auth-page-docs-review
* docs-review
* update-api-overview-page-docs-review
* docs-and-eng-review
* details-title
* Apply suggestions from code review
Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>
* Apply suggestions from code review
Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>
* docs-review
* add-env-var-to-table
* clarify-cli-key-requirements
* docs: update API key creation instructions in CLI documentation
- Changed the requirement for creating API keys from needing superuser status to allowing `AUTO_LOGIN` to be set to `TRUE`.
- Added a reference to the API keys documentation for additional information.
- Updated command examples for clarity.
* public-server-update-env-vars
* reference-page
* Apply suggestions from code review
Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>
* Apply suggestions from code review
* Apply suggestions from code review
* Apply suggestions from code review
---------
Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>
* typos and cosmetic edits for some api content
* webhook trigger rewrite
* build errors and coderabbit
* Update docs/docs/API-Reference/api-reference-api-examples.md
* nitpicks
* note for 1.5
* peer review
* initial-concat
* deploy-public-server
* docs-review
* add-required-api-key
* Apply suggestions from code review
Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>
* docs-review
* Apply suggestions from code review
Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>
* docs-review
* anchor-text
* Apply suggestions from code review
Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>
---------
Co-authored-by: April I. Murphy <36110273+aimurphy@users.noreply.github.com>
* Updated folder name to not be the deprecated
* Changed backend to use Starter Project as default folder name
* Changed docs
* Changed frontend to display pure folder name without deprecated
* Updated tests
* Added migration to change folder name
* Refactor migration to rename folder names with unique constraint checks for users. Updated upgrade and downgrade functions to streamline the renaming process for "My Projects" and "Starter Project".
---------
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
* add new pages
* cut and paste
* break up examples page and do some minor cleanup
* notes
* get started w api page
* revert yarn
* mc
* coderabbit
* minor edit
* add quickstart link
* peer review
* rewrite build endpoints intro
* change luna to enterprise support
* community page updates
* combine issues and discussions pages
* move telemetry out of contribute
* remove gerund title
* rewrite issues page
* fix 2 anchors
* add troubleshooting page
* move troubleshooting and extras from install
* add some more issues
* coderabbit