-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Cleanup/userfile indexing #7221
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
11 commits
Select commit
Hold shift + click to select a range
33f6fdb
refactor: remove user files indexing tasks and related configurations
Subash-Mohan 6ba16e1
refactor: remove legacy document_id references from UserFile and Vesp…
Subash-Mohan f6fc9cd
refactor: remove user file references and related fields
Subash-Mohan 54e81ba
refactor: remove document_id field from user file creation
Subash-Mohan 74f5102
refactor: remove temporary old_doc_id_to_new_doc_id parameter from Up…
Subash-Mohan 10ffc74
refactor: update user_file document_id column to be nullable and remo…
Subash-Mohan dd9c5ed
refactor: remove deprecated document_id_migrated field from user_file…
Subash-Mohan 9177d2b
chore: update Helm chart version and remove user files indexing confi…
Subash-Mohan d4a0fe9
refactor: simplify update method by removing unused parameter and imp…
Subash-Mohan e66af3e
refactor: update migration script to reflect new down_revision for us…
Subash-Mohan c726b72
refactor: update migration script to correct down_revision for userfi…
Subash-Mohan 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
39 changes: 39 additions & 0 deletions
39
backend/alembic/versions/a3c1a7904cd0_remove_userfile_related_deprecated_.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,39 @@ | ||
| """remove userfile related deprecated fields | ||
|
|
||
| Revision ID: a3c1a7904cd0 | ||
| Revises: 5c3dca366b35 | ||
| Create Date: 2026-01-06 13:00:30.634396 | ||
|
|
||
| """ | ||
|
|
||
| from alembic import op | ||
| import sqlalchemy as sa | ||
|
|
||
| # revision identifiers, used by Alembic. | ||
| revision = "a3c1a7904cd0" | ||
| down_revision = "5c3dca366b35" | ||
| branch_labels = None | ||
| depends_on = None | ||
|
|
||
|
|
||
| def upgrade() -> None: | ||
| op.drop_column("user_file", "document_id") | ||
| op.drop_column("user_file", "document_id_migrated") | ||
| op.drop_column("connector_credential_pair", "is_user_file") | ||
|
|
||
|
|
||
| def downgrade() -> None: | ||
| op.add_column( | ||
| "connector_credential_pair", | ||
| sa.Column("is_user_file", sa.Boolean(), nullable=False, server_default="false"), | ||
| ) | ||
| op.add_column( | ||
| "user_file", | ||
| sa.Column("document_id", sa.String(), nullable=True), | ||
| ) | ||
| op.add_column( | ||
| "user_file", | ||
| sa.Column( | ||
| "document_id_migrated", sa.Boolean(), nullable=False, server_default="true" | ||
| ), | ||
| ) | ||
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
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.
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.
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.
want someone who was around when this was implemented and has context to sanity check this, once this migration runs on prod we're done this data is gone