raycast / extensions

Everything you need to extend Raycast.
https://developers.raycast.com
MIT License
5.41k stars 3.1k forks source link

Remove duplicate bookmarks from search results. #15443

Closed theherk closed 22 hours ago

theherk commented 2 days ago

The bookmark search was showing duplicate entries when a URL was bookmarked multiple times. This was caused by the query returning all bookmark entries for a URL, including tag-related entries.

The fix uses a window function (ROW_NUMBER) to partition bookmarks by their foreign key (URL reference) and selects only the entry with the lowest ID for each URL. This ensures each bookmarked URL appears only once in the results while preserving all bookmark metadata including optional titles.

fixes #15442

Description

Screencast

Checklist

raycastbot commented 2 days ago

Thank you for your contribution! :tada:

🔔 @Keyruu you might want to have a look.

You can use this guide to learn how to check out the Pull Request locally in order to test it.

You can expect an initial review within five business days.

theherk commented 2 days ago

I was also getting some db locked and read issues periodically, so I added some retry logic.

Keyruu commented 2 days ago

Awesome stuff man! Thanks for the contribution.

github-actions[bot] commented 22 hours ago

Published to the Raycast Store: https://raycast.com/Keyruu/zen-browser

raycastbot commented 22 hours ago

:tada: :tada: :tada:

We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag.