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

Make language + state logic (AND vs. OR) a parameter #1378

Open
jdimeo opened this issue Sep 19, 2022 · 4 comments
Open

Make language + state logic (AND vs. OR) a parameter #1378

jdimeo opened this issue Sep 19, 2022 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@jdimeo
Copy link
Contributor

jdimeo commented Sep 19, 2022

When querying for languages, the filterState parameter has these semantics:

Translation state in the format: languageTag,state. You can use this parameter multiple times. When used with multiple states for same language it is applied with logical OR. When used with multiple languages, it is applied with logical AND. (optional)

In our use case, we want to use multiple languages but have them be treated as an OR. Currently, I'm splitting apart the list of languages and querying them individually and combining them in my code into one "unioned" results object, but this puts extra load on the server when just querying with OR logic would allow me to use a single (paginated) call.

@JanCizmar JanCizmar self-assigned this Sep 19, 2022
@JanCizmar
Copy link
Contributor

Makes sense!

@github-actions
Copy link
Contributor

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Mar 12, 2023
@github-actions
Copy link
Contributor

This issue was closed because it has been inactive for 14 days since being marked as stale.

@Martin005 Martin005 reopened this Apr 3, 2023
@github-actions github-actions bot removed the stale label Apr 4, 2023
@github-actions
Copy link
Contributor

github-actions bot commented May 5, 2023

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label May 5, 2023
@Martin005 Martin005 added enhancement New feature or request and removed stale labels May 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants