Skip to content

Commit

Permalink
Revert "Data layer refactor/cleanup (#1277)" (#1287)
Browse files Browse the repository at this point in the history
This reverts commit 88f7679.
  • Loading branch information
dokterbob authored Sep 3, 2024
1 parent 88f7679 commit 37148c2
Show file tree
Hide file tree
Showing 9 changed files with 557 additions and 686 deletions.
527 changes: 521 additions & 6 deletions backend/chainlit/data/__init__.py

Large diffs are not rendered by default.

121 changes: 0 additions & 121 deletions backend/chainlit/data/base.py

This file was deleted.

7 changes: 5 additions & 2 deletions backend/chainlit/data/dynamodb.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
import boto3 # type: ignore
from boto3.dynamodb.types import TypeDeserializer, TypeSerializer
from chainlit.context import context
from chainlit.data.base import BaseDataLayer, BaseStorageClient
from chainlit.data.utils import queue_until_user_message
from chainlit.data import BaseDataLayer, BaseStorageClient, queue_until_user_message
from chainlit.element import ElementDict
from chainlit.logger import logger
from chainlit.step import StepDict
Expand All @@ -37,6 +36,7 @@


class DynamoDBDataLayer(BaseDataLayer):

def __init__(
self,
table_name: str,
Expand Down Expand Up @@ -579,5 +579,8 @@ async def update_thread(
updates=item,
)

async def delete_user_session(self, id: str) -> bool:
return True # Not sure why documentation wants this

async def build_debug_url(self) -> str:
return ""
Loading

0 comments on commit 37148c2

Please sign in to comment.