-
Notifications
You must be signed in to change notification settings - Fork 3
Delta migration #303
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
Delta migration #303
Changes from 19 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
112ed0b
Added full admin access table and endpoint
lumburovskalina dc3011b
Added method for inviting users
lumburovskalina 7087008
Fixed refreshing kratos cache
lumburovskalina 8371f93
Function for sending emails
lumburovskalina a82e6b7
SMTP variables and login
lumburovskalina a7f6c00
Removed unused code
lumburovskalina 4579325
PR comments
lumburovskalina dea6cd8
Added SSO provider to the invite users request
lumburovskalina fb8bad9
PR comments
lumburovskalina dae4060
Removed comments
lumburovskalina ba98157
PR comments
lumburovskalina 8ac60f6
PR commentz
lumburovskalina 25d27dd
PR comments
lumburovskalina 30208ad
Adds attribute delta migration
JWittmeyer 29dfaae
Merge with dev
JWittmeyer baf1ed4
Adds embedding columns & delta logic
JWittmeyer 8cb7d3d
Removes prints
JWittmeyer 5e12e8c
Test for delta
JWittmeyer bb77b93
Extend wait time for embeddings
JWittmeyer 48d37f0
PR comments
JWittmeyer 869b813
Submodule update
JWittmeyer 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
alembic/versions/96fbb404381e_delta_indicators_embeddings.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 @@ | ||
"""delta indicators embeddings | ||
|
||
Revision ID: 96fbb404381e | ||
Revises: eb96f9b82cc1 | ||
Create Date: 2025-05-21 11:09:33.093313 | ||
|
||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = '96fbb404381e' | ||
down_revision = 'eb96f9b82cc1' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade(): | ||
connection = op.get_bind() | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.add_column('embedding', sa.Column('delta_full_recalculation_threshold', sa.Float(), nullable=True)) | ||
op.add_column('embedding', sa.Column('current_delta_record_count', sa.Integer(), nullable=True)) | ||
|
||
update_sql = """ | ||
UPDATE public.embedding | ||
SET delta_full_recalculation_threshold = 0.5, | ||
current_delta_record_count = 0 | ||
WHERE delta_full_recalculation_threshold IS NULL | ||
""" | ||
connection.execute(update_sql) | ||
# ### end Alembic commands ### | ||
|
||
|
||
def downgrade(): | ||
# ### commands auto generated by Alembic - please adjust! ### | ||
op.drop_column('embedding', 'current_delta_record_count') | ||
op.drop_column('embedding', 'delta_full_recalculation_threshold') | ||
# ### 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
#!/bin/bash | ||
|
||
docker exec -it refinery-gateway bash -c "cd /app && python -m pytest -v" | ||
|
||
# add -s to see print statements | ||
# add -v to see test names | ||
docker exec -it refinery-gateway bash -c "cd /app && python -m pytest -v -s" |
Submodule model
updated
3 files
+26 −0 | business_objects/embedding.py | |
+66 −11 | business_objects/record.py | |
+7 −0 | models.py |
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.