Skip to content

✨ Migrate library checks to get_config & API-based installs + 🐞 Fix launcher section reorder - #402

Merged
MFA-X-AI merged 3 commits into
XpressAI:masterfrom
rabea-al:refactor-library-api-calls
May 26, 2025
Merged

MFA-X-AI merged 3 commits into
XpressAI:masterfrom
rabea-al:refactor-library-api-calls

Conversation

@rabea-al

Copy link
Copy Markdown
Contributor

Description

  • Switched library presence check from folder-based detection to using the get_config endpoint.
  • Replaced terminal-based library installation with a more stable API-based flow.
  • Fixed a case where the launcher sections were not reordered correctly after auto-opening.

Pull Request Type

  • Xircuits Core (JupyterLab Related changes)
  • Xircuits Canvas (Custom RD Related changes)
  • Xircuits Component Library
  • Xircuits Project Template
  • Testing Automation
  • Documentation
  • Others (Please Specify)

Type of Change

  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Tested on? Specify Version.

  • Windows
  • Linux (Fedora)
  • Mac
  • Others (State here -> xxx )

@github-actions

Copy link
Copy Markdown

Binder πŸ‘ˆ Launch a binder notebook on branch rabea-al/xircuits/refactor-library-api-calls

@rabea-al rabea-al changed the title Refactor handling to use API endpoints ✨ Migrate library checks to get_config & API-based installs + 🐞 Fix launcher section reorder May 21, 2025

@MFA-X-AI MFA-X-AI left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm still seeing the xrsf being used in the PR. Could you double check if it's still needed here?

@rabea-al

Copy link
Copy Markdown
Contributor Author

I'm still seeing the xrsf being used in the PR. Could you double check if it's still needed here?

I've removed the manual X-XSRFToken and replaced the fetch calls with requestAPI

@MFA-X-AI MFA-X-AI left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good. Later on we might want to refactor it more so that the install method from the tray widget and from the panel uses uses the same interface, but I can confirm that this PR works.

@MFA-X-AI
MFA-X-AI merged commit 353424e into XpressAI:master May 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants