mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-25 16:56:22 +02:00
feat: update Google indexing functions to track skipped messages
- Modified the indexing functions for Google Calendar and Gmail to return the count of skipped messages alongside indexed messages, enhancing performance tracking. - Updated related tests to accommodate the new return values, ensuring comprehensive coverage of the indexing process. - Improved error handling to maintain consistency in returned values across different indexing functions.
This commit is contained in:
parent
80f7d5f34a
commit
8e7cda31c5
5 changed files with 28 additions and 33 deletions
|
|
@ -106,7 +106,7 @@ async def test_composio_calendar_without_account_id_returns_error(
|
|||
|
||||
maker = make_session_factory(async_engine)
|
||||
async with maker() as session:
|
||||
count, error = await index_google_calendar_events(
|
||||
count, _skipped, error = await index_google_calendar_events(
|
||||
session=session, connector_id=data["connector_id"],
|
||||
search_space_id=data["search_space_id"], user_id=data["user_id"],
|
||||
)
|
||||
|
|
|
|||
|
|
@ -106,7 +106,7 @@ async def test_composio_gmail_without_account_id_returns_error(
|
|||
|
||||
maker = make_session_factory(async_engine)
|
||||
async with maker() as session:
|
||||
count, error = await index_google_gmail_messages(
|
||||
count, _skipped, error = await index_google_gmail_messages(
|
||||
session=session, connector_id=data["connector_id"],
|
||||
search_space_id=data["search_space_id"], user_id=data["user_id"],
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue