-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Ad 8000 d test for Content API filter by locale #11961
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
Conversation
Signed-off-by: harimkims <harimkims@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #11961 +/- ##
=======================================
Coverage 47.63% 47.63%
=======================================
Files 211 211
Lines 8200 8200
Branches 1856 1856
=======================================
Hits 3906 3906
Misses 3542 3542
Partials 752 752
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
Hi, thank you for opening this PR. There is indeed an issue between the code only allowing the As we moved from Would you mind updating your PR to reflect this, please? 🙂 |
Sure, I will just keep the test and revert others. |
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.
Just some wording adjustment but otherwise it's 💯
packages/plugins/i18n/tests/content-api/content-api.test.e2e.js
Outdated
Show resolved
Hide resolved
packages/plugins/i18n/tests/content-api/content-api.test.e2e.js
Outdated
Show resolved
Hide resolved
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.
LGTM, waiting for the tests to pass, then merging 🔥
Signed-off-by: harimkims harimkims@gmail.com
What does it do?
Why is it needed?
- To enable filter by localeFollowing the documentation, you can filter content by_locale
parameter but the identifier waslocale
in code.It turns out the documentation didn't reflect the change the usage of
_locale
becomeslocale
in i18n api.So I revert changes and just keep the e2e tests.
How to test it?
send
GET
request withlocale
http://localhost:1337/api/homepage?locale=ko
http://localhost:1337/api/homepage?locale=en
http://localhost:1337/api/homepage?locale=all
Related issue(s)/PR(s)
Closes #11953