Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor base.py and Dockerfile, and folder column migration #2002

Merged
merged 7 commits into from
May 28, 2024

Commits on May 28, 2024

  1. refactor(base.py): handle ImportError when importing is_pre_release f…

    …unction from langflow.version module to prevent crashing the application
    
    feat(base.py): dynamically determine if the version is a pre-release version by checking for 'a', 'b', or 'rc' in the version number
    ogabrielluiz committed May 28, 2024
    Configuration menu
    Copy the full SHA
    2383cc1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e8f1ca1 View commit details
    Browse the repository at this point in the history
  3. refactor: Update get_lifespan function to handle ImportError and dyna…

    …mically determine the version number
    
    The get_lifespan function in main.py has been updated to handle ImportError when importing the __version__ attribute from the langflow.version module. If the import fails, the version number is dynamically determined using the importlib.metadata.version function. This change ensures that the application does not crash when the langflow.version module is not available.
    
    Note: This commit message follows the convention used in the recent user commits.
    ogabrielluiz committed May 28, 2024
    Configuration menu
    Copy the full SHA
    4a669b7 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ed803cb View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    34d8ee6 View commit details
    Browse the repository at this point in the history
  6. refactor: Add folder_id column to flow table and handle folder column…

    … migration
    
    This commit adds the folder_id column to the flow table in the database. It also handles the migration of the folder column to the new folder_id column. This change allows for better organization and management of flows within folders.
    
    Note: This commit message follows the convention used in the recent user commits.
    ogabrielluiz committed May 28, 2024
    Configuration menu
    Copy the full SHA
    51afb7f View commit details
    Browse the repository at this point in the history
  7. refactor: Update Dockerfiles to include user creation and environment…

    … variable
    
    This commit updates the Dockerfiles to include the creation of a user with UID 1000 and the necessary permissions for the /app/langflow directory. It also adds the user's local bin directory to the PATH environment variable. This change improves the security and isolation of the application within the container.
    
    Note: This commit message follows the convention used in the recent user commits.
    ogabrielluiz committed May 28, 2024
    Configuration menu
    Copy the full SHA
    8eaab87 View commit details
    Browse the repository at this point in the history