User tests: Successful: Unsuccessful:
Pull Request for Issue # .
Filter by featured and filter by tag included
In postman, GET {{base_url}}/{{base_path}}/content/articles?filter[featured]=1
In postman, GET {{base_url}}/{{base_path}}/content/articles?filter[tag]=1
No filtered by featured nor tag
Filter articles by featured and/or tag
Status | New | ⇒ | Pending |
Labels |
Added:
?
|
Labels |
Added:
?
|
I have tested this item
filter[tag]=1
What does that mean? "Has a tag" or is that a tag id
?
filter[tag]=1
What does that mean? "Has a tag" or is that a tag
id
?
Is a tag id
I have tested this item
Tested with Linux console and several combinations like
$ token=c2hhMjU2OjM0MDo0MjExNzY2MmIzZDIwMzU2YzIw...
$ url="https://example.org/api/index.php/v1/content/articles?"
$ curl -H "Authorization: Bearer $token" $url"filter\[tag\]=3"
$ curl -H "Authorization: Bearer $token" $url"filter\[featured\]=1"
$ curl -H "Authorization: Bearer $token" $url"filter\[featured\]=1&filter\[tag\]=2"
Status | Pending | ⇒ | Ready to Commit |
RTC
Labels |
Added:
?
|
Thanks @antonbag for this nice improvement. Are you able to add these filters to the automated tests here https://github.com/joomla/joomla-cms/blob/4.3-dev/tests/Codeception/api/com_content/ContentCest.php? You can make new test functions for each filter.
Labels |
Added:
PR-4.3-dev
Removed: ? |
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-12-01 12:29:25 |
Closed_By | ⇒ | obuisard |
your change didn't have only
filter[featured]
butfilter[tag]
too please update test instructions