-
Notifications
You must be signed in to change notification settings - Fork 231
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
[Enhancement]: Add 'app_type' column for AppDB model with updated API responses #1994
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…pe' to AppDB model
…pe enum with RAG, and update App API response
- Create DB function to get 'app_type' from template - Update DB function 'create_app_and_envs' to include 'app_type'
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
dosubot
bot
added
size:L
This PR changes 100-499 lines, ignoring generated files.
Backend
CLI
enhancement
New feature or request
labels
Aug 16, 2024
jp-agenta
requested changes
Aug 19, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…_app_type_from_template_by_id'
…s for app categorization
…atest migration head - Refactored the migration check to compare the current database migration head against the latest migration script head. - Enhanced `get_current_migration_head_from_db` to ensure only one migration head is tracked. - Updated logic in `get_pending_migration_head` to reduce unnecessary checks and handle first-time setup more efficiently. - Improved error handling and clarified logging messages for better debugging.
jp-agenta
approved these changes
Nov 18, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Backend
CLI
enhancement
New feature or request
lgtm
This PR has been approved by a maintainer
size:L
This PR changes 100-499 lines, ignoring generated files.
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.
Description
This PR introduces a new
app_type
column in theAppDB
model and updates the corresponding API responses. The changes include defining anAppType
enum, specifying the enum type for theapp_type
column, and updating the backend to properly handle and return the new app type in API responses. Additionally, a schema migration script has been generated and applied using Alembic.Related Issue
Closes AGE-540
Sibling PRs
Changes Included:
AppType
enum and extended support for other app types.AppDB
model to include theapp_type
column.create_app_and_envs
andapp_type_from_template
functions to support the new enum.app_type
column.What to QA
app_type
.app_type
is correctly reflected (should be set to 'custom').app_type
column has been added with the correct enum type.Acceptance Tests
app_type
is correctly reflected in the playground.app_type
is correctly set to 'custom' and the app works as expected.app_type
column is added to theapp_db
table and mapped correctly with the enum type.