dify icon indicating copy to clipboard operation
dify copied to clipboard

How can I rename my workspace?

Open show88118 opened this issue 1 year ago • 1 comments

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.

show88118 avatar Apr 28 '24 08:04 show88118

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:

  1. Initiating the Rename Action: Triggering a modal that allows workspace renaming, similar to the dataset renaming modal.
  2. Editing and Saving: The modal will display the current workspace name for editing. After making changes, the onConfirm function is called to update the workspace name.
  3. 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.
  4. 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


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.

dosubot[bot] avatar Apr 28 '24 08:04 dosubot[bot]

If you are using self hosted, you can modify the db directly.

crazywoola avatar Apr 28 '24 09:04 crazywoola