How can I rename my workspace?
Self Checks
- [X] I have searched for existing issues search for existing issues, including closed ones.
- [X] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
- [X] Pleas do not modify this template :) and fill in all the required fields.
1. Is this request related to a challenge you're experiencing?
How can I rename my workspace?
2. Describe the feature you'd like to see
How can I rename my workspace?
3. How will this feature improve your workflow or experience?
How can I rename my workspace?
4. Additional context or comments
How can I rename my workspace?
5. Can you help us with this feature?
- [ ] I am interested in contributing to this feature.
To rename your workspace in Dify, you would typically follow a process similar to renaming a dataset, as outlined in the web/app/components/datasets/rename-modal/index.tsx file. This involves:
- Initiating the Rename Action: Triggering a modal that allows workspace renaming, similar to the dataset renaming modal.
-
Editing and Saving: The modal will display the current workspace name for editing. After making changes, the
onConfirmfunction is called to update the workspace name. - Validation and API Call: The new name is validated for non-emptiness, and an API call is made to update the workspace settings with the new name.
- User Feedback: Success or failure feedback is provided through a notification, and the modal is closed.
This process requires adapting the existing dataset renaming functionality to work with workspaces, including handling state updates, validation, API calls for updating workspace settings, and providing user feedback. The exact implementation details would depend on the specific architecture and APIs of the Dify project.
Details
Sources
- web/app/components/datasets/rename-modal/index.tsx
- api/controllers/console/workspace/workspace.py
- api/controllers/inner_api/workspace/workspace.py
- api/services/workspace_service.py
- api/tests/integration_tests/model_runtime/openai/test_llm.py
- zh_CN/guides/workspace/app/README.md
About Dosu This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.
Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.
To continue the conversation, mention @dosu.
If you are using self hosted, you can modify the db directly.