Vibhav dev to develop #9
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces substantial improvements and new features to TableScanner, focusing on enhanced configuration, advanced database schema support, improved documentation, and expanded API response models. The changes include new environment variables for AI provider configuration, a comprehensive database schema for configuration management, improved exception handling, and significant updates to the documentation and API models for clarity and completeness.
Key changes:
Configuration and Environment
.env.example, supporting multiple providers and fallback chains for automatic config generation.app/config_constants.pyfor limits, cache, timeouts, and API versioning.app/config.pyfor KBase environment and timeout parameters, improving deployment flexibility and robustness.Database Schema and Persistence
app/db/schema.sqlto support a full configuration control plane, including config records with lifecycle states, audit logs, user overrides, version history, and test results.app/db/__init__.pyfor clarity on the database module's purpose.API Models and Error Handling
app/models.pyto include additional metadata such asobject_type, config fingerprints, schema info, and database statistics, and removed legacy pangenome fields for clarity. [1] [2] [3]app/exceptions.pyfor more granular error handling, including errors for missing tables, columns, filters, and database access issues.Documentation and Developer Experience
README.mdto provide clearer feature descriptions, quick start instructions, API usage examples, project structure, configuration, performance notes, and testing guidelines.app/main.pyto reflect new features and capabilities, and adjusted CORS middleware for improved security defaults. [1] [2]These changes collectively make TableScanner more robust, configurable, and user-friendly, while laying the groundwork for advanced configuration management and future extensibility.