Can't query groups using api4
- Dominant language
- PHP
- Stars
- 45
- Forks
- 36
- Avg merge
- 17h 54m
- Merged PRs (30d)
- 3
Description
I opened the following Stack Exchange question: https://civicrm.stackexchange.com/questions/49150/trouble-with-cv-api-version-3-and-4/49151 and it looks like this is probably an issue with `cv`'s implementation itself.
The following error happens when trying to get (for example) the email address for every user in a given group:
```
$ cv api4 Contact.get +s email_primary +w 'groups:name = "Current Singers"'
In Api4Query.php line 348:
Illegal operator for groups
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the reported `cv api4 Contact.get +s email_primary +w 'groups:name = "Current Singers"'` query, then inspect `Api4Query.php` around line 348 where the illegal-operator error is reported. Done means the query can retrieve contact email addresses filtered by group without that error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- api, cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100