Automattic / Automattic/jetpack
Adding Multi-Tags query to wpcom API - Feature request
- Dominant language
- PHP
- Stars
- 1.8k
- Forks
- 898
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 774
Description
Following up with this user (663635-zen) about wpcom API that initially looked like a bug in our wpcom API, the user ends up asking whether it'd be possible to support Multi-Tags query or at least a relation attribute to specify if which Operator used "OR" or "AND" anytime soon.
Apparently, at this time it's currently only possible to query for posts containing one of the specified set of tags, but not _all_ of the specified set of tags - something this user is very interested to accomplish.
I discussed this with @aduth and @enejb, and they suggested to report this here to check whether it'd be possible to add this functionality.
I reckon there might be more people outside who would love this implementation, so do you think that's something to be taken into consideration? That might also turn our to be a great enhancement to the Core API maybe?
Thanks for taking a look at this :)
I've replied to the user but I promised them to follow up soon!
Contributor guide
Research direction
Start at the wpcom API tag-query entry point and review how the current query handles a specified set of tags. Define whether the API should support matching all tags, or expose an explicit OR/AND relation attribute, then verify the chosen behavior through the relevant API documentation and tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, wordpress
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100