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: bug in TeamSearch in Admin panel #13511

Closed
wants to merge 1 commit into from
Closed

Conversation

Siddhant-K-code
Copy link
Member

Signed-off-by: Siddhant Khare [email protected]

Description

After Proposed changes, working with - also:

image

image

Related Issue(s)

Fixes #12982

How to test

Release Notes

NONE

Documentation

No

Werft options:

  • /werft with-local-preview
    If enabled this will build install/preview
  • /werft with-preview
  • /werft with-integration-tests=all
    Valid options are all, workspace, webapp, ide

@Siddhant-K-code Siddhant-K-code requested a review from a team October 2, 2022 04:50
@github-actions github-actions bot added the team: webapp Issue belongs to the WebApp team label Oct 2, 2022
@@ -98,7 +98,7 @@ export function TeamsSearch() {
placeholder="Search Teams"
onKeyDown={(k) => k.key === "Enter" && search()}
onChange={(v) => {
setSearchTerm(v.target.value.trim());
setSearchTerm(v.target.value.trim().replace(/-/g, " "));
Copy link
Member Author

Choose a reason for hiding this comment

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

But, Now this case will start failing 😞

image

@svenefftinge
Copy link
Member

svenefftinge commented Oct 2, 2022

The issue is about also searching the team slug not replacing dashes in the search.

@Siddhant-K-code
Copy link
Member Author

The issue is about also searching the team slug not replacing dashes in the search.

I think, along with team.name, we can also pass team.slug

@Siddhant-K-code
Copy link
Member Author

Siddhant-K-code commented Oct 2, 2022

.where("team.name LIKE :searchTerm", { searchTerm: `%${searchTerm}%` })

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.

Admin dashboard - team list cannot be searched by team slug
3 participants