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

Icu language support #320

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Icu language support #320

wants to merge 2 commits into from

Conversation

Yogu
Copy link
Member

@Yogu Yogu commented May 15, 2024

feat: support --icu-language=en_US ArangoDB configuration

cruddl has an optimization for case-insensitive equals and starts-with filters. This optimization
depends on the collator that defines the ordering of strings. The previous code only supported
--default-language=en_US. --default-language is deprecated in favor of --icu-language.

This commit adds support for --icu-language=en_US.

We currently cannot test for this in the CI pipeline because it is not possbile to use --icu-language
in the official Docker image.

Yogu added 2 commits May 15, 2024 19:32
cruddl has an optimization for case-insensitive equals and starts-with filters. This optimization
depends on the collator that defines the ordering of strings. The previous code only supported
--default-language=en_US. --default-language is deprecated in favor of --icu-language.

This commit adds support for --icu-language=en_US.

We currently cannot test for this in the CI pipeline because it is not possbile to use --icu-language
in the official Docker image.
@Yogu
Copy link
Member Author

Yogu commented May 24, 2024

After clarifying with the ArangoDB support, we learned that the 'default'-typed languages will not be removed anytime soon, so it is not necessary to migrate.

It probably still makes sense to support it in cruddl, but I would provide an option to enable or disable it, as it will make the queries more complex (MIN/MAX with UPPER+LOWER instead of just UPPER/LOWER).

To test it, we need to put a copy of the arangodb.conf file in the container

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.

1 participant