kalisio / kTeam

Basic utils to support organization management for KDK-based applications and services
MIT License
3 stars 0 forks source link

Members ordering should be case insensitive #31

Closed cnouguier closed 6 years ago

claustres commented 6 years ago

Case insensitivity requires to use collation in MongoDB, which has multiple issues:

claustres commented 6 years ago

Using async createCollection in model seems to work (createService being async as well), however patching existing collections seems to be hard: https://stackoverflow.com/questions/44682160/add-default-collation-to-existing-mongodb-collection.

claustres commented 6 years ago

We have added indices with collation on most useful languages (en/fr) and locale in find queries to ensure correct sorting.