Skip to content

fix: Chat log search#3943

Merged
zhanweizhang7 merged 1 commit intov2from
pr@v2@fix_chat_log_search
Aug 27, 2025
Merged

fix: Chat log search#3943
zhanweizhang7 merged 1 commit intov2from
pr@v2@fix_chat_log_search

Conversation

@shaohuzhang1
Copy link
Copy Markdown
Contributor

fix: Chat log search

@f2c-ci-robot
Copy link
Copy Markdown

f2c-ci-robot bot commented Aug 27, 2025

Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@f2c-ci-robot
Copy link
Copy Markdown

f2c-ci-robot bot commented Aug 27, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

base_query_dict['application_chat.asker__username__icontains'] = self.data.get('username')


if select_ids is not None and len(select_ids) > 0:
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, there are no irregularities or potential issues with the code provided. The only change to note is that asker__username should be converted to asker__username__icontains. This ensures that all usernames starting with the given username query will match when using an ICONTAINS lookup, which allows partial text matches.

The changes:

             # Old line (without iexact)
-            base_query_dict['application_chat.asker__username'] = self.data.get('username')

             # New line with iexact
+            base_query_dict['application_chat.asker__username__icontains'] = self.data.get('username')

This makes sure the filter works as expected for both exact and partial matches of the username field.

@zhanweizhang7 zhanweizhang7 merged commit 675e90d into v2 Aug 27, 2025
3 of 5 checks passed
@zhanweizhang7 zhanweizhang7 deleted the pr@v2@fix_chat_log_search branch August 27, 2025 03:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants