-
Couldn't load subscription status.
- Fork 5
Add Crud Operations for Assistant Table #286
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
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
288d916
create api for assistant and get_assistant_by_id to use project id
avirajsingh7 78629e5
Update API for assistant
avirajsingh7 daa202e
list endpoint for assistant
avirajsingh7 b90b641
delete endpoint for assistant crud
avirajsingh7 6ed1df1
unit test for assistant crud
avirajsingh7 fa2ee1a
Merge remote-tracking branch 'origin/main' into add_crud_assistant
avirajsingh7 80b8e27
Fix migration head by generating new migration
avirajsingh7 287f47a
precommit
avirajsingh7 c9b5a3b
type annotation fix
avirajsingh7 e3e1cce
code refactor
avirajsingh7 29465a1
Update request validation
avirajsingh7 918d08c
remove model validation
avirajsingh7 c25278c
improve logs
avirajsingh7 8e701e8
fix conflicting vector store id test cases
avirajsingh7 6c45f3a
use sql model instead of pydantic
avirajsingh7 7819a32
change the max length for assistant update
avirajsingh7 6b4f695
refactor code
avirajsingh7 b8a621b
code refactor
avirajsingh7 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
backend/app/alembic/versions/e8ee93526b37_add_is_deleted_column_in_assistant_table.py
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| """Add is_deleted column in assistant table | ||
|
|
||
| Revision ID: e8ee93526b37 | ||
| Revises: 4aa1f48c6321 | ||
| Create Date: 2025-07-21 12:40:03.791321 | ||
|
|
||
| """ | ||
| from alembic import op | ||
| import sqlalchemy as sa | ||
|
|
||
|
|
||
| # revision identifiers, used by Alembic. | ||
| revision = "e8ee93526b37" | ||
| down_revision = "4aa1f48c6321" | ||
| branch_labels = None | ||
| depends_on = None | ||
|
|
||
|
|
||
| def upgrade(): | ||
| op.add_column( | ||
| "openai_assistant", sa.Column("is_deleted", sa.Boolean(), nullable=False) | ||
| ) | ||
| op.add_column( | ||
| "openai_assistant", sa.Column("deleted_at", sa.DateTime(), nullable=True) | ||
| ) | ||
|
|
||
|
|
||
| def downgrade(): | ||
| op.drop_column("openai_assistant", "deleted_at") | ||
| op.drop_column("openai_assistant", "is_deleted") |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.