-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[Merged] fix: Fix the wrong result of not_contain_compare when source_value is a list
#5148
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
Closed
wangliang181230
wants to merge
39
commits into
1Panel-dev:v2
from
wangliang181230:PR/fix-not_contain-compare
Closed
Changes from 38 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
fc5b607
perf: system prompt double-generating
wangliang181230 ec3d5fa
Merge remote-tracking branch 'upstream/v2' into perf
wangliang181230 b09d0ca
Merge remote-tracking branch 'upstream/v2' into perf
wangliang181230 134ed9a
Merge remote-tracking branch 'upstream/v2' into perf
wangliang181230 75f239d
fix: Fix some minor problem
wangliang181230 b9a02b1
fix
wangliang181230 27fc513
小调整。
wangliang181230 afacd7f
Merge remote-tracking branch 'upstream/v2' into perf
wangliang181230 46218ef
文件处理,使用 with ... as file 语法,避免文件未关闭。
wangliang181230 2e8dced
修正错误字符串
wangliang181230 b3e7b65
fix bugs: invalid regex escape sequences, and resource leaks
wangliang181230 078bda5
Merge remote-tracking branch 'upstream/v2' into perf
wangliang181230 ad2aff2
fix bugs: invalid regex escape sequences, and resource leaks
wangliang181230 fbbdb70
撤回对正则的修正。
wangliang181230 1a72ba2
Merge remote-tracking branch 'upstream/v2' into perf
wangliang181230 66ccc3a
operation
wangliang181230 8b94350
小调整
wangliang181230 418ac71
Merge remote-tracking branch 'upstream/v2' into perf
wangliang181230 d4527de
小调整
wangliang181230 2817aee
Merge remote-tracking branch 'upstream/v2' into perf
wangliang181230 2feaa9a
小调整
wangliang181230 5ae0a84
revert
wangliang181230 6383670
Merge remote-tracking branch 'upstream/v2' into perf
wangliang181230 4761094
Merge remote-tracking branch 'upstream/v2' into perf
wangliang181230 a17aee7
revert
wangliang181230 9cb6364
Merge remote-tracking branch 'upstream/v2' into perf
wangliang181230 5b842e5
小调整。
wangliang181230 12b0b93
小调整。
wangliang181230 c93c8cb
Merge remote-tracking branch 'upstream/v2' into perf
wangliang181230 5679f6b
Merge remote-tracking branch 'upstream/v2' into perf
wangliang181230 3ff563f
Merge remote-tracking branch 'upstream/v2' into perf
wangliang181230 1d6ddee
小调整.
wangliang181230 314dfa1
Merge remote-tracking branch 'upstream/v2' into perf
wangliang181230 1097cb0
Merge remote-tracking branch 'upstream/v2' into perf
wangliang181230 5619117
Merge remote-tracking branch 'upstream/v2' into perf
wangliang181230 8038ca3
revert
wangliang181230 915d03e
Merge remote-tracking branch 'upstream/v2' into perf
wangliang181230 b857412
fix: Fix `not_contain` compare
wangliang181230 8de2060
fix style
wangliang181230 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -64,7 +64,6 @@ def get(self, request: Request, workspace_id: str, knowledge_id: str, document_i | |
| @log( | ||
| menu='Paragraph', operate='Create Paragraph', | ||
| get_operation_object=lambda r, keywords: get_knowledge_document_operation_object( | ||
| get_knowledge_operation_object(keywords.get('knowledge_id')), | ||
| get_knowledge_operation_object(keywords.get('knowledge_id')), | ||
| get_document_operation_object(keywords.get('document_id')) | ||
| ), | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
感觉应该是不小心多复制了一行代码的感觉。 |
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -243,11 +243,11 @@ def execute(trigger, **kwargs): | |
| if source_type == "APPLICATION": | ||
| from trigger.handler.impl.task.application_task import ApplicationTask | ||
|
|
||
| ApplicationTask.execute(trigger_task, **kwargs) | ||
| ApplicationTask().execute(trigger_task, **kwargs) | ||
| elif source_type == "TOOL": | ||
| from trigger.handler.impl.task.tool_task import ToolTask | ||
|
|
||
| ToolTask.execute(trigger_task, **kwargs) | ||
| ToolTask().execute(trigger_task, **kwargs) | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| else: | ||
| maxkb_logger.warning(f"unsupported source_type={source_type}, task_id={trigger_task['id']}") | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
修复当
value为字符串的false,bool(value)返回了True的问题。注:后面多处代码相同处理。