Skip to content

Commit ab5d286

Browse files
committed
fix(bookmark): truncate title to 500 chars when archiving
Entry titles can be up to 1000 chars but Bookmark.title is VARCHAR(500). This caused StringDataRightTruncationError when archiving entries with long titles.
1 parent 4708f5a commit ab5d286

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backend/packages/core/glean_core/services/bookmark_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ async def create_bookmark(
224224
Raises:
225225
ValueError: If entry not found or validation fails.
226226
"""
227-
title = data.title
227+
title = data.title[:500] if data.title else data.title
228228
excerpt = data.excerpt
229229
entry_id = data.entry_id
230230
url = data.url

0 commit comments

Comments
 (0)