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

fix: external dataset hit test display issue(#12564) #12612

Merged
merged 3 commits into from
Jan 21, 2025

Conversation

le0zh
Copy link
Contributor

@le0zh le0zh commented Jan 10, 2025

Summary

Fixes #12564

  • Separated the rendering of external and built-in hit test result item into two distinct React components due to significant differences in their hit-test data structures.
  • Added additional TypeScript types for improved type safety.

Checklist

Important

Please review the checklist below before submitting your pull request.

  • This change requires a documentation update, included: Dify Document
  • I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!)
  • I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • I've updated the documentation accordingly.
  • I ran dev/reformat(backend) and cd web && npx lint-staged(frontend) to appease the lint gods

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. ☕️ typescript Pull request that update TypeScript code. 🐞 bug Something isn't working labels Jan 10, 2025
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels Jan 13, 2025
@WTW0313 WTW0313 requested a review from iamjoel January 14, 2025 02:05
@WTW0313
Copy link
Collaborator

WTW0313 commented Jan 14, 2025

image

Hello @le0zh, thank you for your work. In version 0.15.0, SegmentCard has been deprecated. The card component style has been updated. The lastest version is the same as result-item component. So if you can modify the result-item-external component to make sure its style is identical to result-item component, it will be better. Again, much appreciated for your contribution.

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Jan 14, 2025
@le0zh
Copy link
Contributor Author

le0zh commented Jan 14, 2025

image

I have made the requested modifications and updated the result-item-external component to ensure its style matches the result-item component.

Additionally, I have attached the latest UI screenshots for your reference. Please let me know if there’s anything else you’d like me to adjust.

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jan 14, 2025
@le0zh
Copy link
Contributor Author

le0zh commented Jan 17, 2025

Hi @JohnJyong @iamjoel
Could you please take a look and provide your feedback?
Your review would be greatly appreciated!

@iamjoel
Copy link
Collaborator

iamjoel commented Jan 21, 2025

Great job! Thanks @le0zh.

@iamjoel iamjoel merged commit 0c6a8a1 into langgenius:main Jan 21, 2025
5 checks passed
Scorpion1221 added a commit to yybht155/dify that referenced this pull request Jan 21, 2025
* commit '6db3ae9b8ec2f8491e2c9355056a8693ecd67f47': (22 commits)
  chore: remove webapp ga (langgenius#12909)
  fix: variable panel scrollable (langgenius#12769)
  fix: OpenAI o1 Bad Request Error (langgenius#12839)
  Update deepseek model configuration (langgenius#12899)
  fix: external dataset hit test display issue(langgenius#12564) (langgenius#12612)
  add deepseek-reasoner (langgenius#12898)
  chore(fix): Invalid quotes for using Array[String] in HTTP request node as JSON body (langgenius#12761)
  fix: Issues related to the deletion of conversation_id (langgenius#12488) (langgenius#12665)
  chore(lint): fix quotes for f-string formatting by bumping ruff to 0.9.x (langgenius#12702)
  feat:Support Minimax-Text-01 (langgenius#12763)
  fix: serply credential check query might return empty records (langgenius#12784)
  feat: allow updating chunk settings for the existing documents (langgenius#12833)
  fix: SparkLite API Auth error (langgenius#12781) (langgenius#12790)
  fix: "parmas" spelling mistake. (langgenius#12875)
  Fix suggested_question_prompt (langgenius#12738)
  fix(i18n): correct typo in zh-Hant translation (langgenius#12852)
  chore: fix chinese translation for 'recall' (langgenius#12772)
  fix: DeepSeek API Error with response format active (text and json_object)  (langgenius#12747)
  feat: enhance credential extraction logic based on configurate method (langgenius#12853)
  fix: Fix rerank model switching issue (langgenius#12721)
  ...

# Conflicts:
#	api/core/tools/utils/message_transformer.py
#	api/poetry.lock
@le0zh le0zh deleted the fix-12564 branch January 22, 2025 02:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working lgtm This PR has been approved by a maintainer size:L This PR changes 100-499 lines, ignoring generated files. ☕️ typescript Pull request that update TypeScript code.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test external knowledge base retrieval, the console reports an error in v0.15.0
3 participants