Repository navigation
Handle the search favourite space error - #22689
Conversation
commented
Nov 5, 2025
|
Thank you for your contribution! 🎉 🔔 @daviddkkim @xmok @LitoMore 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. |
left a comment
•
There was a problem hiding this comment.
Greptile Overview
Greptile Summary
This PR adds error handling to the Confluence search extension to prevent crashes when fetching favorite spaces. The Confluence API for fetching favorite spaces has been removed/deprecated, causing the entire search command to fail with a "Gone" (HTTP 410) error. The fix wraps the fetchFavouriteSpaces call in a try-catch block, allowing the core search functionality to continue working even when the favorite spaces feature fails. The change also adds proper changelog documentation and contributor attribution. This follows a graceful degradation pattern where non-critical features can fail without breaking the entire extension.
Important Files Changed
| Filename | Score | Overview |
|---|---|---|
| extensions/confluence-search/src/search.tsx | 4/5 | Added try-catch error handling around fetchFavouriteSpaces to prevent extension crashes |
| extensions/confluence-search/CHANGELOG.md | 5/5 | Added proper changelog entry documenting the error handling fix with correct template format |
| extensions/confluence-search/package.json | 5/5 | Added "arpitdalal" to contributors array for attribution of the fix |
Confidence score: 4/5
- This PR is safe to merge with good error handling practices that prevent application crashes
- Score reflects solid defensive programming approach, though the fix could potentially benefit from user notification about the degraded functionality
- Pay close attention to the search.tsx file to ensure the error handling doesn't mask important issues that users should be aware of
Additional Comments (1)
-
extensions/confluence-search/src/search.tsx, line 50-55 (link)style: Consider adding a conditional check to hide the 'Favourite Spaces' section when spaces is empty or undefined due to API errors. Should the favourite spaces dropdown section be hidden when the API fails to prevent showing an empty section?
3 files reviewed, 1 comment
commented
Nov 6, 2025
|
Published to the Raycast Store: |
commented
Nov 6, 2025
|
🎉 🎉 🎉 We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag. |
Description
Handle the search favourite space error to not break the search command.
Screencast
Currently, search command is broken because search faviourite space errors out because the API is removed by Confluence.
Error thrown:
Checklist
npm run buildand tested this distribution build in Raycastassetsfolder are used by the extension itselfREADMEare located outside the metadata folder if they were not generated with our metadata tool