Skip to content

Releases: RLTree/LabMateAI

LabMateAI v2.0.2

30 Oct 22:35

Choose a tag to compare

LabMateAI Release Notes

[2.0.2] - 2024-10-20

Added

  • Comprehensive Database Testing

    • Implemented a robust test suite for labmateai_db.py, ensuring reliable creation and configuration of the SQLAlchemy engine.
  • Continuous Integration Enhancements

    • Updated .travis.yml to conditionally run Alembic migrations based on the testing environment.
    • Integrated coverage reporting and Codecov for improved visibility of test coverage.
  • Updated Dependencies

    • Added alembic, pytest-cov, pytest-xdist, and other testing tools to requirements.txt to support enhanced testing and coverage capabilities.

Fixed

  • CLI Import Errors

    • Resolved ImportError by replacing relative imports with absolute imports in cli.py, ensuring smooth execution of migration commands.
  • Test Failures in Migration Tests

    • Addressed and fixed issues in test_cli.py related to database migrations and user creation tests, ensuring all tests pass successfully.
  • Database Configuration Handling

    • Enhanced the get_engine function in labmateai_db.py to better handle testing scenarios and invalid configurations, preventing unexpected crashes.

Improved

  • Requirements Management

    • Streamlined requirements.txt by removing redundant packages and ensuring all necessary dependencies are included for both development and testing.
  • CI/CD Workflow

    • Optimized the Travis CI configuration for faster and more reliable builds, leveraging caching and parallel test execution.

Thank you for using LabMateAI! We continuously strive to improve the project by addressing issues, enhancing features, and ensuring a smooth development workflow. If you encounter any issues or have suggestions, please feel free to open an issue or contribute to the project.

LabMate v2.0.1

15 Oct 21:06
888c6c5

Choose a tag to compare

Added

  • Database Integration:
    Integrated SQLAlchemy ORM to manage interactions with the Heroku PostgreSQL database (labmateai-db), enhancing data handling and scalability.

  • Alembic Migrations:
    Implemented Alembic for seamless database schema migrations, ensuring consistent database structures across different environments.

  • Enhanced CLI Functionality:
    Updated the Command-Line Interface (CLI) to automatically prompt users to rate recommended tools immediately after receiving recommendations, improving user engagement and feedback collection.

  • Automated Interaction Logging:
    Configured the CLI to automatically log all interaction data (interaction_id, user_id, tool_id, rating, usage_frequency, timestamp) into the interactions table, ensuring comprehensive tracking of user interactions.

  • Continuous Integration (CI) Enhancements:
    Updated .travis.yml to include PostgreSQL service, run migrations before tests, and handle secure environment variables, thereby streamlining the CI pipeline.

  • Improved Testing Setup:
    Enhanced the test suite to include database integration tests, ensuring that all interactions are properly logged and that the system behaves as expected under various scenarios.

  • Deployment Enhancements:
    Improved deployment configurations for secure and reliable PyPI deployments, facilitating smoother releases and updates.

  • Documentation Updates:
    Updated README.md and other documentation files to reflect the latest changes, providing clear setup and usage instructions for users and contributors.

Changed

  • Project Structure Refactoring:
    Refactored project directories to support ORM models, migrations, and improved code organization, enhancing maintainability and scalability.

  • CLI Workflow Modification:
    Modified the CLI workflow to remove the separate rating option and integrate rating prompts directly after recommendations, resulting in a more intuitive user experience.

  • Configuration Management Enhancements:
    Enhanced configuration files (alembic.ini, .travis.yml, .env) to support secure and efficient CI/CD pipelines, ensuring better security and performance.

Fixed

  • Naming Conflicts Resolved:
    Resolved naming conflicts between the ORM ToolModel and custom Tool classes by using aliases (ToolModel for ORM and CustomTool for the custom class), preventing import and reference issues.

  • Import Errors Fixed:
    Fixed ModuleNotFoundError issues by adjusting import statements and ensuring proper package structure, ensuring that all modules are correctly accessible.

  • Test Failures Addressed:
    Fixed failing tests caused by package renaming and import errors, ensuring that all tests pass successfully and maintain high code quality standards.