[PR #2148] [CLOSED] Feat/base path relocatable #20907

Closed
opened 2026-04-20 03:15:06 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/2148
Author: @lmorin-inria
Created: 5/9/2024
Status: Closed

Base: devHead: feat/base-path-relocatable


📝 Commits (10+)

  • b8d7fdf Merge pull request #1965 from open-webui/dev
  • 9f2b846 Merge pull request #2101 from open-webui/dev
  • 61ffbf5 Merge pull request #2114 from open-webui/dev
  • 78c2f16 Merge pull request #2115 from open-webui/dev
  • 943c49a Merge pull request #2116 from open-webui/dev
  • 734e62b Merge pull request #2117 from open-webui/dev
  • 90503be Merge pull request #2118 from open-webui/dev
  • 677b701 Move svelte projet files in a UUID base directory
  • 521365b Patch all references to wanna be relocatable path
  • 7d32583 Add a link to default page, and remove bug

📊 Changes

44 files changed (+147 additions, -79 deletions)

View changed files

📝 .gitignore (+1 -0)
📝 Dockerfile (+13 -1)
📝 backend/config.py (+1 -0)
📝 backend/main.py (+2 -0)
📝 backend/start.sh (+20 -1)
📝 src/app.css (+2 -2)
📝 src/app.html (+2 -2)
📝 src/lib/components/admin/UserChatsModal.svelte (+2 -1)
📝 src/lib/components/chat/Messages/ProfileImage.svelte (+2 -1)
📝 src/lib/components/chat/Messages/UserMessage.svelte (+3 -2)
📝 src/lib/components/chat/Settings/Account.svelte (+2 -1)
📝 src/lib/components/chat/Settings/Chats.svelte (+3 -2)
📝 src/lib/components/chat/ShareChatModal.svelte (+2 -1)
📝 src/lib/components/common/Image.svelte (+2 -2)
📝 src/lib/components/layout/Sidebar.svelte (+11 -11)
📝 src/lib/components/layout/Sidebar/ArchivedChatsModal.svelte (+2 -1)
📝 src/lib/components/layout/Sidebar/UserMenu.svelte (+4 -3)
📝 src/lib/constants.ts (+5 -1)
📝 src/lib/utils/index.ts (+2 -1)
📝 src/routes/@a21e259c-1c80-4d6b-928f-89716d576c13@/(app)/+layout.svelte (+4 -4)

...and 24 more files

📄 Description

Pull Request Checklist

  • Target branch: Pull requests should target the dev branch.
  • Description: Briefly describe the changes in this pull request.
  • Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
  • Documentation: Have you updated relevant documentation Open WebUI Docs, or other documentation sources?
  • Dependencies: Are there any new dependencies? Have you updated the dependency versions in the documentation?
  • Testing: Have you written and run sufficient tests for the changes?
  • Code Review: Have you self-reviewed your code and addressed any coding standard issues?

Description

This pull request implements the dynamic relocation, as requested in issue #1162 .

The core implementation principle has been deployed over ~200 account using a cloud orchestration system on a previous version. The current implementation has been tested on a few nodes.
Three major drawbacks :

  • no way to test on Windows (no machine, no time),
  • the implementation does not use properly the svelte infrastructure (lack of expertise),
  • some files had to be moved.

If the merge is accepted, I will add the documentation.


Changelog Entry

Added

  • Add dynamic relocation support.

Fixed

  • [List any fixes, corrections, or bug fixes]

Changed

  • [List any changes, updates, refactorings, or optimizations]

Removed

  • [List any removed features, files, or deprecated functionalities]

Security

  • [List any new or updated security-related changes, including vulnerability fixes]

Breaking Changes

  • [List any breaking changes affecting compatibility or functionality]

Additional Information

  • [Insert any additional context, notes, or explanations for the changes]

  • [Reference any related issues, commits, or other relevant information]


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/2148 **Author:** [@lmorin-inria](https://github.com/lmorin-inria) **Created:** 5/9/2024 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `feat/base-path-relocatable` --- ### 📝 Commits (10+) - [`b8d7fdf`](https://github.com/open-webui/open-webui/commit/b8d7fdf16e57deaf7faaa4dad7c2c5666e8b18ed) Merge pull request #1965 from open-webui/dev - [`9f2b846`](https://github.com/open-webui/open-webui/commit/9f2b846ea7201c320851f78c3a4620408921684c) Merge pull request #2101 from open-webui/dev - [`61ffbf5`](https://github.com/open-webui/open-webui/commit/61ffbf5b5b82829a7d0d248cbc6e03b350d4b634) Merge pull request #2114 from open-webui/dev - [`78c2f16`](https://github.com/open-webui/open-webui/commit/78c2f16c3cc0465930b55f5ac8ab07d90f582ead) Merge pull request #2115 from open-webui/dev - [`943c49a`](https://github.com/open-webui/open-webui/commit/943c49a07ae01198566611ef5931ef108d3584a0) Merge pull request #2116 from open-webui/dev - [`734e62b`](https://github.com/open-webui/open-webui/commit/734e62b865165a54b2717586d3041e157dc5c579) Merge pull request #2117 from open-webui/dev - [`90503be`](https://github.com/open-webui/open-webui/commit/90503be2edef1a1f7ce2074286b6316d5cb8868a) Merge pull request #2118 from open-webui/dev - [`677b701`](https://github.com/open-webui/open-webui/commit/677b7012fa81be41edb33ef430a5ab8acfdcc25c) Move svelte projet files in a UUID base directory - [`521365b`](https://github.com/open-webui/open-webui/commit/521365b77eb35c741dc2848ffa0ba61a9f4a1c11) Patch all references to wanna be relocatable path - [`7d32583`](https://github.com/open-webui/open-webui/commit/7d3258346961c24165983612fdfb9633ae2f3dad) Add a link to default page, and remove bug ### 📊 Changes **44 files changed** (+147 additions, -79 deletions) <details> <summary>View changed files</summary> 📝 `.gitignore` (+1 -0) 📝 `Dockerfile` (+13 -1) 📝 `backend/config.py` (+1 -0) 📝 `backend/main.py` (+2 -0) 📝 `backend/start.sh` (+20 -1) 📝 `src/app.css` (+2 -2) 📝 `src/app.html` (+2 -2) 📝 `src/lib/components/admin/UserChatsModal.svelte` (+2 -1) 📝 `src/lib/components/chat/Messages/ProfileImage.svelte` (+2 -1) 📝 `src/lib/components/chat/Messages/UserMessage.svelte` (+3 -2) 📝 `src/lib/components/chat/Settings/Account.svelte` (+2 -1) 📝 `src/lib/components/chat/Settings/Chats.svelte` (+3 -2) 📝 `src/lib/components/chat/ShareChatModal.svelte` (+2 -1) 📝 `src/lib/components/common/Image.svelte` (+2 -2) 📝 `src/lib/components/layout/Sidebar.svelte` (+11 -11) 📝 `src/lib/components/layout/Sidebar/ArchivedChatsModal.svelte` (+2 -1) 📝 `src/lib/components/layout/Sidebar/UserMenu.svelte` (+4 -3) 📝 `src/lib/constants.ts` (+5 -1) 📝 `src/lib/utils/index.ts` (+2 -1) 📝 `src/routes/@a21e259c-1c80-4d6b-928f-89716d576c13@/(app)/+layout.svelte` (+4 -4) _...and 24 more files_ </details> ### 📄 Description ## Pull Request Checklist - [X] **Target branch:** Pull requests should target the `dev` branch. - [X] **Description:** Briefly describe the changes in this pull request. - [ ] **Changelog:** Ensure a changelog entry following the format of [Keep a Changelog](https://keepachangelog.com/) is added at the bottom of the PR description. - [ ] **Documentation:** Have you updated relevant documentation [Open WebUI Docs](https://github.com/open-webui/docs), or other documentation sources? - [ ] **Dependencies:** Are there any new dependencies? Have you updated the dependency versions in the documentation? - [ ] **Testing:** Have you written and run sufficient tests for the changes? - [ ] **Code Review:** Have you self-reviewed your code and addressed any coding standard issues? --- ## Description This pull request implements the dynamic relocation, as requested in issue #1162 . The core implementation principle has been deployed over ~200 account using a cloud orchestration system on a previous version. The current implementation has been tested on a few nodes. Three major drawbacks : - no way to test on Windows (no machine, no time), - the implementation does not use properly the svelte infrastructure (lack of expertise), - some files had to be moved. If the merge is accepted, I will add the documentation. --- ### Changelog Entry ### Added - Add dynamic relocation support. ### Fixed - [List any fixes, corrections, or bug fixes] ### Changed - [List any changes, updates, refactorings, or optimizations] ### Removed - [List any removed features, files, or deprecated functionalities] ### Security - [List any new or updated security-related changes, including vulnerability fixes] ### Breaking Changes - [List any breaking changes affecting compatibility or functionality] --- ### Additional Information - [Insert any additional context, notes, or explanations for the changes] - [Reference any related issues, commits, or other relevant information] --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-20 03:15:06 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#20907