Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tags could not be saved when the Workflow Tool was created #11478

Closed
5 tasks done
zhaobingshuang opened this issue Dec 9, 2024 · 1 comment · Fixed by #11481
Closed
5 tasks done

tags could not be saved when the Workflow Tool was created #11478

zhaobingshuang opened this issue Dec 9, 2024 · 1 comment · Fixed by #11481
Labels
🐞 bug Something isn't working

Comments

@zhaobingshuang
Copy link
Contributor

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

0.13.1

Cloud or Self Hosted

Cloud, Self Hosted (Docker), Self Hosted (Source)

Steps to reproduce

Create Workflow Tool and publish it as a tool. The Tags of the tool are Search and Image. Click save
image
Click the Configure button of Workflow as Tool again
image
tags are empty
image

✔️ Expected Behavior

tags is Search、Image

❌ Actual Behavior

tags are empty

@dosubot dosubot bot added the 🐞 bug Something isn't working label Dec 9, 2024
Copy link

dosubot bot commented Dec 9, 2024

@zhaobingshuang Hello! I'm here to assist you with any bugs, questions, or contributions you may have. Let's work together to resolve the issue you're facing.

The issue you're experiencing, where tags are not being saved when creating a Workflow Tool, might be related to how the tags are managed and saved in the code. Here are a few areas to check:

  1. Tag Management in the UI: Ensure that the LabelSelector component is correctly updating the labels state. The handleLabelSelect function should be properly setting the selected tags [1].

  2. API Calls for Tag Management: Verify that the API calls for binding tags are functioning correctly. The bindTag function should be called with the correct parameters to associate the tags with the tool [2].

  3. Payload Structure: Check that the labels are correctly included in the payload object when saving or creating the tool. The payload should have a labels property that contains the selected tags [3].

  4. Error Handling: Ensure that there are no errors occurring during the save operation that might prevent the tags from being saved. The error handling should notify you if something goes wrong [4].

Review these areas in your implementation to identify any discrepancies or issues that might be causing the tags not to be saved. If everything seems correct, consider checking for any recent changes or issues in the codebase that might affect this functionality.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

@zhaobingshuang zhaobingshuang changed the title labels could not be saved when the Workflow Tool was created tags could not be saved when the Workflow Tool was created Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant