-
-
Notifications
You must be signed in to change notification settings - Fork 824
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
dev/core#3063 APIv3 - Fix numeric option matching #22740
Conversation
(Standard links)
|
@colemanw I think campaign_id only is OK - it was a performance regression on campaign_id - we should target the rc |
Before: Option matching was skipped for all FK fields if a numeric value was given After: Only skipped for `campaign_id` field, if positive integer given The optimization was overly broad and had unintended side-effects
88b8a48
to
5727486
Compare
@eileenmcnaughton I've added a fix, updated the description, and changed the base. |
@colemanw can you put up a 5.46 too since it looks like a 5.46 drop is iminent. I'll check out once tests have passed |
2107.3401 549103192 13. PHPUnit\Util\Filter::shouldPrintFrame($frame = ['file' => 'phar:///home/jenkins/bknix-dfl/extern/phpunit8/phpunit8.phar/phpunit/Framework/Constraint/IsEqual.php', 'line' => 83], $prefix = 'phar://phpunit-8.5.15.phar', $blacklist = class PHPUnit\Util\Blacklist { }) phar:///home/jenkins/bknix-dfl/extern/phpunit8/phpunit8.phar/phpunit/Util/Filter.php:57 Fatal error: Uncaught TYPO3\PharStreamWrapper\Exception: Unexpected file extension in "phar:///home/jenkins/bknix-dfl/extern/phpunit8/phpunit8.phar/phpunit/Framework/Constraint/IsEqual.php" in /home/jenkins/bknix-dfl/build/core-22740-6uo3l/web/sites/all/modules/civicrm/Civi/Core/Security/PharExtensionInterceptor.php on line 41 TYPO3\PharStreamWrapper\Exception: Unexpected file extension in "phar:///home/jenkins/bknix-dfl/extern/phpunit8/phpunit8.phar/phpunit/Framework/Constraint/IsEqual.php" in /home/jenkins/bknix-dfl/build/core-22740-6uo3l/web/sites/all/modules/civicrm/Civi/Core/Security/PharExtensionInterceptor.php on line 41 |
test this please |
retest this please |
I'm not sure why our test server keeps crashing when a test fails, but it makes it hard to spot what's going on due to the extremely high signal to noise ratio in the console output. The failing test was |
@eileenmcnaughton ok I finally tracked it down. The |
Yeah, the failure mode in that test run was really weird. @colemanw I'm a bit confused by the split between the 3 PRs. This seems to indicate that the failure in 22740 can be resolved by either:
But then which approach does
|
@totten yes you are correct about the 2 options. I think it depends a bit on the impact of the supplement and how confident we are about releasing it next month rather than the month after. The safer approach is probably B, but A is easier git-wise because of the way we forward-merge RC branches into master. Personally I'd be fine with A. If we go with A, then #22750 should get merged into 5.47, then this PR can be rebased and should pass tests. |
@totten done |
jenkins, test this please |
@eileenmcnaughton @totten this passes tests now that #22750 is merged |
Overview
Fixes regression documented in dev/core#3063. The issue was caused by #21099.
Before
Option matching was skipped for all FK fields if a numeric value was given
After
Only skipped for
campaign_id
field, if positive integer givenComments
The optimization was overly broad and had unintended side-effects