-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Connector deletion fix #2293
Connector deletion fix #2293
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -274,32 +276,30 @@ def test_connector_deletion_for_overlapping_connectors( | |||
user_performing_action=admin_user, | |||
) | |||
|
|||
# EVERYTHING BELOW HERE IS CURRENTLY BROKEN AND NEEDS TO BE FIXED SERVER SIDE | |||
|
|||
# wait for deletion to finish |
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.
Enabled this test, now that it should work properly
@@ -102,7 +102,7 @@ def delete_connector_credential_pair_batch( | |||
UpdateRequest( | |||
document_ids=[document_id], | |||
access=access, |
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.
This is the fix. Basically, if the document didnt have any associated doc sets, it would not return any dict.
Setting it to None would just not update the doc set relationship at all in vespa.
So we can assume that if we are updating it and the document id isnt in the dict, that it has no sets related to it
@@ -524,38 +524,54 @@ def fetch_document_sets_for_documents( | |||
db_session: Session, | |||
) -> Sequence[tuple[str, list[str]]]: | |||
"""Gives back a list of (document_id, list[document_set_names]) tuples""" |
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.
Seperated out the stmt building and added a comment
No description provided.