Skip to content

Conversation

@LukasHirt
Copy link
Collaborator

Description

This changes the search behaviour in the admin settings. Instead of filtering the groups in the client, we now use the search parameter of the list groups API endpoint.

Motivation and Context

Leave the search to the API and don't slow down the browser.

How Has This Been Tested?

  • test environment: macos, chrome
  • test case 1: search groups

Screenshots (if appropriate):

Zaznam.obrazovky.2025-10-23.v.11.53.50.mov

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests
  • Documentation
  • Maintenance (e.g. dependency updates or tooling)

@LukasHirt LukasHirt requested review from Copilot and mzner October 23, 2025 09:55
@LukasHirt LukasHirt self-assigned this Oct 23, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR implements server-side group search in the admin settings, replacing client-side filtering. When users search for groups, the search term is now sent directly to the API endpoint rather than filtering results in the browser.

Key changes:

  • Search now uses the API's search parameter instead of client-side filtering
  • Search term is stored in URL query parameters (q_displayName)
  • Removed client-side filtering logic and associated footer text

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
packages/web-app-admin-settings/src/views/Groups.vue Added search UI components and filterGroups function to handle API-based search
packages/web-app-admin-settings/src/components/Groups/GroupsList.vue Removed client-side filtering logic, converted filter input to a slot, and updated search highlighting to use query parameters
packages/web-app-admin-settings/tests/unit/views/Groups.spec.ts Added test for search functionality with mocked router
packages/web-app-admin-settings/tests/unit/components/Groups/GroupsList.spec.ts Added router mocks to support component changes
changelog/unreleased/enhancement-use-api-groups-search-in-admin.md Documented the enhancement

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@LukasHirt LukasHirt enabled auto-merge October 27, 2025 08:40
This changes the search behaviour in the admin settings.
Instead of filtering the groups in the client, we now use the search
parameter of the list groups API endpoint.
@LukasHirt LukasHirt force-pushed the feat/groups-api-search branch from 6184aab to 1590f4b Compare October 27, 2025 08:44
@sonarqubecloud
Copy link

@LukasHirt LukasHirt merged commit 973f617 into master Oct 28, 2025
4 checks passed
@LukasHirt LukasHirt deleted the feat/groups-api-search branch October 28, 2025 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants