It used to check the group_type-plugin_id combo in v1 and I wanted to be clever or something and changed it to group_type in v2/v3. That was a huge mistake, let's be glad we are only barely out of beta and not in a full release yet or this would be a security issue. Let's fix this ASAP.
This is the second query access bug in a short period of time so let's also make sure we add some simply use cases in tests as a follow-up. The current tests cover a lot of cases, but in an abstract manner. Some tangible tests wouldn't hurt, it would seem.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | group-3343405-9.patch | 11.81 KB | kristiaanvandeneynde |
| #5 | group-3343405-5.patch | 14.06 KB | kristiaanvandeneynde |
Comments
Comment #2
kristiaanvandeneyndeThis fixes EntityQueryAlter already.
Comment #3
kristiaanvandeneyndeCleaner approach and takes care of all queries. Gonna think about optimizations while tests run.
Comment #5
kristiaanvandeneyndeContains optimizations.
Comment #6
kristiaanvandeneyndeGoing to commit this already, but I would like to add the following tests ASAP:
Multiple bundles of a single entity type
Multiple plugins for a single entity type
Will leave the issue open and commit ASAP.
Comment #9
kristiaanvandeneyndeAdding tests that went red as expected without this issue's patch. Should go green now that we've committed everything.
Comment #12
kristiaanvandeneyndeSod it, they only add tests and they go green on my local. Committing and letting the on-commit testbot run it again now that I've added the test group.