-
Notifications
You must be signed in to change notification settings - Fork 3
Custom cleanup conversations and files by org #275
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 8 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
a2abbd4
conv file lifespan
LennartSchmidtKern 913aac8
gdpr compliant clean up, unify alembic
LennartSchmidtKern ea4c38e
Merge branch 'dev' into conversation-cleanup-custom
LennartSchmidtKern 90ca696
model
LennartSchmidtKern 30456f5
alembic
LennartSchmidtKern c6e1367
Merge remote-tracking branch 'origin/dev' into conversation-cleanup-c…
LennartSchmidtKern b35a43d
user count
LennartSchmidtKern df58d90
camel case
LennartSchmidtKern f93ad1d
model
LennartSchmidtKern 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
44 changes: 44 additions & 0 deletions
44
alembic/versions/eb5ecbee5090_add_conversation_and_file_lifespan.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,44 @@ | ||
"""add conversation and file lifespan | ||
|
||
Revision ID: eb5ecbee5090 | ||
Revises: 89a5f2211130 | ||
Create Date: 2024-11-26 11:03:23.883173 | ||
|
||
""" | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = "eb5ecbee5090" | ||
down_revision = "89a5f2211130" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.add_column( | ||
"organization", | ||
sa.Column("conversation_lifespan_days", sa.Integer(), nullable=True), | ||
) | ||
op.add_column( | ||
"organization", | ||
sa.Column( | ||
"file_lifespan_days", sa.Integer(), nullable=True, server_default="14" | ||
), | ||
) | ||
op.drop_column("organization", "gdpr_compliant") | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.add_column( | ||
"organization", | ||
sa.Column("gdpr_compliant", sa.BOOLEAN(), autoincrement=False, nullable=True), | ||
) | ||
op.drop_column("organization", "file_lifespan_days") | ||
op.drop_column("organization", "conversation_lifespan_days") | ||
# ### end Alembic commands ### |
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
Submodule model
updated
4 files
+5 −1 | business_objects/organization.py | |
+29 −0 | cognition_objects/conversation.py | |
+13 −1 | cognition_objects/file_reference.py | |
+2 −2 | models.py |
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.