-
Notifications
You must be signed in to change notification settings - Fork 670
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
SOLR-17575: Fixed broken backwards compatibility with the legacy "langid.whitelist" config in Solr Langid #2886
SOLR-17575: Fixed broken backwards compatibility with the legacy "langid.whitelist" config in Solr Langid #2886
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the quick turnaround. I enabled PR test runs and see that a the new tests fail
> org.junit.ComparisonFailure: expected:<[no]> but was:<[sv]>
See my comments on how to greatly simplify the tests :)
...ules/langid/src/java/org/apache/solr/update/processor/LanguageIdentifierUpdateProcessor.java
Outdated
Show resolved
Hide resolved
.../test/org/apache/solr/update/processor/LanguageIdentifierUpdateProcessorFactoryTestCase.java
Show resolved
Hide resolved
...ules/langid/src/java/org/apache/solr/update/processor/LanguageIdentifierUpdateProcessor.java
Outdated
Show resolved
Hide resolved
glad to see we are tackling fixing a bug. In 10x we should move forward and delete the langid.whitelist..... |
For sure. I expect there to be lots of such cleanup commits on the main branch in the coming weeks. |
Good. Only one thing missing now. Add a CHANGES.txt line under 9.8.0 Bugfix section, with your own and my name. I’ll then merge and backport. |
https://issues.apache.org/jira/browse/SOLR-17575
Description
Making sure that backwards compatibility with the legacy
"langid.whitelist"
config in Solr Langid works as expected. In other words, the language detection runtime behavior should be the same when the ISO 639-1 language codes specified in the legacy"langid.whitelist"
OR the current (default)"langid.allowlist"
.Solution
Making sure that if the legacy
"langid.whitelist"
is configured, its value is used as the default value when reading theLANG_ALLOWLIST
parameter.Tests
"langid.allowlist"
is as expected."langid.whitelist"
works as expected.Checklist
Please review the following and check all that apply:
main
branch../gradlew check
.