-
-
Notifications
You must be signed in to change notification settings - Fork 828
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
CRM-20993 - API - Extention get - Fix filtering by ID #10794
Conversation
Correct me if I'm wrong, but extensions don't actually have an "id" do they? So what you're calling "id" here is just an array index and not guaranteed to remain consistent from one api call to the next. |
Yes, that seems kinda true currently. We actually do have an "id" as the PK in the database table for the installed extensions. The label of the parameter is somewhat misleading. Should we just unset all those fields without any meaningfull functionality? I could implement something to actually filter by extention_id but this may get pretty confusing with the sequential id. |
I'd vote for dropping the fake array index id in favor of the actual id in the database. |
Some extensions don't have records in the database, so they don't have DB From the perspective of
If the API |
Yes, it seems sensible to keep the current artificial id. Having the uninstalled extension have empty ids would be pretty odd. |
@tschuettler can you please run git rebase -i /master on your branch and see if you can squish the fix indentation commit into one of the other two? |
you will need to do a git push CRM-20993 -f after the rebase has cleanly finished |
---------------------------------------- * CRM-20993: API - Extension get - Cannot filter by ID anymore https://issues.civicrm.org/jira/browse/CRM-20993
@seamuslee001 I gave it a try ... |
Looks good @tschuettler I'm +1 on the PR as is, the false Id is better for the reasons Tim gives |
https://issues.civicrm.org/jira/browse/CRM-20993
Overview
Restore filtering by ID for API Extension get
Before
After