This repository has been archived by the owner on Jun 18, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 321
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix withTranslation query scope performance issues and fallback for c…
…ountry-based locales (#417) * Fix failing tests by checking for presence of translations as a subset Tests were failing because the return array also contained an unexpected 'translations' key. * Correctly load country-based fallback when calling withTranslation. When using the `withTranslation` query scope along with country-based locales, the generated query didn't include the country fallback (e.g. `de-DE` should first fall back to `de` before using the fallback defined in the configuration). Also fix #241 by generating a WHERE IN clause instead chaining AND/ORs * StyleCI * StyleCI 2
- Loading branch information
1 parent
ac3d15e
commit 68a0b78
Showing
5 changed files
with
74 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters