-
-
Notifications
You must be signed in to change notification settings - Fork 18
Add icuTokenizer as allowed field into configValidation.js #131
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
base: master
Are you sure you want to change the base?
Conversation
8024abf to
32b91b3
Compare
|
Honestly, what we should probably do instead is create a |
|
Hmm.. when we merged the schema PR I didn't consider that the new config variable would need to be added in several places across the codebase. I agree this is not a sustainable approach to BETA features under a feature flag as it creates a lot of noise in the repos when adding and removing these flags. @orangejulius suggested a better approach, namely adding a This approach would allow us to make this change once and then it will 'just-work' without any modification for future BETA features, as well as allowing us to remove those which get promoted to the @orangejulius I guess this would be a top-level property in The ICU tokenizer BETA flag was placed in |
|
Hey, I agree with your concerns. I will create separate PR in pelias/schema then... |
|
Hmm, well also, looking at the config validation code, the Joi schma IMO should not really be validating what's in the Pelias schema config section. Maybe we can make anything in the dbclient/src/configValidation.js Lines 9 to 20 in a8c22d1
|
|
WDYT? :) |
👋 I did some awesome work for the Pelias project and would love for everyone to have a look at it and provide feedback.
Here's the reason for this change 🚀
We added this field into config recently in pelias/schema and it looks like it has to be in sync with what have here, otherwise validation of config doesn't pass:
Here's what actually got changed 👏
Just added definition of
icuTokenizerfield in this repo.Here's how others can test the changes 👀
I extended config validation tests.