Skip to content

[Translation] Add search filter #1220

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

Merged
merged 7 commits into from
Jul 15, 2025
Merged

Conversation

martineiber
Copy link
Contributor

Changes in this pull request

Resolves #1219

Additional info

Search filter can be applied like that:

{
  "type": "search",
  "filterValue": "Accessory"
}

@martineiber martineiber self-assigned this Jul 15, 2025
@martineiber martineiber added this to the next milestone Jul 15, 2025
@martineiber martineiber marked this pull request as ready for review July 15, 2025 08:26
@martineiber martineiber requested review from lukmzig and Copilot July 15, 2025 08:26
Copy link

@Copilot 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 adds search filter functionality to the translation system, allowing users to search for translations by key or text content across all languages. The implementation adds a new "search" filter type that can be applied to translation listings.

  • Adds a new search filter type that searches both translation keys and text content
  • Implements repository method for applying search conditions with case-insensitive LIKE queries
  • Updates API documentation and examples to include the new search filter usage

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
translations/studio_api_docs.en.yaml Adds translation strings for new API documentation
src/Translation/Service/TranslatorService.php Integrates search filter processing and applies search conditions
src/Translation/Repository/TranslationRepositoryInterface.php Defines interface method for search condition
src/Translation/Repository/TranslationRepository.php Implements search condition with LIKE queries on key and text fields
src/Translation/Controller/ListController.php Updates API documentation example to include search filter usage

Copy link

@martineiber martineiber merged commit 9d77459 into 1.x Jul 15, 2025
13 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jul 15, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Translation] Add overall search Filter
2 participants