Skip to content

Handle the search favourite space error - #22689

Merged
raycastbot merged 2 commits into
raycast:mainfrom
arpitdalal:fix/confluence-search
Nov 6, 2025
Merged

raycastbot merged 2 commits into
raycast:mainfrom
arpitdalal:fix/confluence-search

Conversation

@arpitdalal

Copy link
Copy Markdown
Contributor

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:

Error: Gone

Mo:util.tsx:19:10

---
16: 
17:   if (!response.ok) {
18:     console.error("fetch items error:", await response.text());
19:     throw new Error(response.statusText);
20:   }
21: 
22:   return response.json();
---

async N4:search.js:180:73963
search.js:192:2887
image

Checklist

@raycastbot raycastbot added extension fix / improvement Label for PRs with extension's fix improvements extension: confluence-search Issues related to the confluence-search extension platform: macOS labels Nov 5, 2025
@raycastbot

ghost commented Nov 5, 2025

Copy link
Copy Markdown
Collaborator

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.

ghost left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)

  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

Edit Code Review Agent Settings | Greptile

@pernielsentikaer pernielsentikaer self-assigned this Nov 6, 2025

ghost left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, approved 🔥

@raycastbot
raycastbot merged commit 10b7497 into raycast:main Nov 6, 2025
@github-actions

ghost commented Nov 6, 2025

Copy link
Copy Markdown
Contributor

@raycastbot

ghost commented Nov 6, 2025

Copy link
Copy Markdown
Collaborator

🎉 🎉 🎉

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extension: confluence-search Issues related to the confluence-search extension extension fix / improvement Label for PRs with extension's fix improvements platform: macOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants