-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(product-assistant): checkpoint blob queries must not rely on chec…
…kpoint (#27048)
- Loading branch information
Showing
5 changed files
with
204 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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 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
38 changes: 38 additions & 0 deletions
38
ee/migrations/0019_remove_conversationcheckpointblob_unique_checkpoint_blob_and_more.py
This file contains 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,38 @@ | ||
# Generated by Django 4.2.15 on 2024-12-19 11:00 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("ee", "0018_conversation_conversationcheckpoint_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveConstraint( | ||
model_name="conversationcheckpointblob", | ||
name="unique_checkpoint_blob", | ||
), | ||
migrations.AddField( | ||
model_name="conversationcheckpointblob", | ||
name="checkpoint_ns", | ||
field=models.TextField( | ||
default="", | ||
help_text='Checkpoint namespace. Denotes the path to the subgraph node the checkpoint originates from, separated by `|` character, e.g. `"child|grandchild"`. Defaults to "" (root graph).', | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="conversationcheckpointblob", | ||
name="thread", | ||
field=models.ForeignKey( | ||
null=True, on_delete=django.db.models.deletion.CASCADE, related_name="blobs", to="ee.conversation" | ||
), | ||
), | ||
migrations.AddConstraint( | ||
model_name="conversationcheckpointblob", | ||
constraint=models.UniqueConstraint( | ||
fields=("thread_id", "checkpoint_ns", "channel", "version"), name="unique_checkpoint_blob" | ||
), | ||
), | ||
] |
This file contains 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 +1 @@ | ||
0018_conversation_conversationcheckpoint_and_more | ||
0019_remove_conversationcheckpointblob_unique_checkpoint_blob_and_more |
This file contains 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