View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
16483 | Bug reports | Conditions | public | 2020-07-10 13:22 | 2020-08-18 21:44 |
Reporter | Assigned To | gabrieljenik | |||
Priority | none | Severity | crash | ||
Status | closed | Resolution | fixed | ||
Product Version | 4.2.5 | ||||
Summary | 16483: Adding condition triggers bulk update for complete database | ||||
Description | When adding a condition to a question (no matter which type, values or scenario), the complete database is processed, instead of just processing the survey you were working in. NULL is passed as a first argument instead of the active survey ID to LimeExpressionManager::UpgradeConditionsToRelevance(null, $qid); This makes it so that every time a condition is added, the complete database is processed. In the case of my client, this is a very large database with many surveys, questions and conditions. This then results in either PHP running out of memory, or the server timing out and throwing an error. | ||||
Steps To Reproduce |
| ||||
Additional Information | Do note that the condition actually gets added correctly. It is the next action (LimeExpressionManager::UpgradeConditionsToRelevance) that causes the timeout/crash. | ||||
Tags | conditions | ||||
Bug heat | 12 | ||||
Complete LimeSurvey version number (& build) | 4.2.5 | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | |||||
Database type & version | MySQL 10.3.22 (MariaDB) | ||||
Server OS (if known) | Ubuntu 20.04 LTS | ||||
Webserver software & version (if known) | Apache/2.4.41 (Ubuntu) | ||||
PHP Version | 7.2 | ||||
related to | 16604 | closed | gabrieljenik | Adding condition triggers bulk update for complete database |
Same behaviour on 4.2.2+200504 |
|
I think this happens on LS3 as well. |
|
PR: https://github.com/LimeSurvey/LimeSurvey/pull/1542 Function updated to get the survey ID from the question if surveyId is null and a qid is specified. |
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=30375 |
|
Is same fix made for LS3? |
|
Fixed in Release 4.3.11+200817 |
|
LimeSurvey: master 3dbba5b8 2020-08-13 16:08 Committer: GitHub Details Diff |
Fixed issue 16483: Adding condition triggers bulk update for complete database (#1542) Dev: UpgradeConditionsToRelevance receives two params: surveyId and qid. If the qid is specified, it should only update that question (as per the function doc). But, if surveyId is null, it loops trough all the surveys, which only makes sense if no qid is specified. |
Affected Issues 16483 |
|
mod - application/helpers/expressions/em_manager_helper.php | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2020-07-10 13:22 |
|
New Issue | |
2020-07-29 16:19 | gLf | Tag Attached: conditions | |
2020-07-29 16:20 | gLf | Note Added: 59158 | |
2020-07-29 23:02 | cdorin | Zoho Sprints | => |Yes| |
2020-07-29 23:02 |
|
Zoho Sprints ID | => 14469000000197085 |
2020-07-29 23:02 | cdorin | Assigned To | => cdorin |
2020-07-29 23:02 | cdorin | Status | new => confirmed |
2020-08-03 12:54 | gLf | Issue Monitored: gLf | |
2020-08-05 00:45 | gabrieljenik | Note Added: 59313 | |
2020-08-10 18:12 | gabrieljenik | Note Added: 59395 | |
2020-08-13 14:09 | gabrieljenik | Changeset attached | => LimeSurvey master 3dbba5b8 |
2020-08-13 14:09 | gabrieljenik | Note Added: 59457 | |
2020-08-13 14:09 | gabrieljenik | Assigned To | cdorin => gabrieljenik |
2020-08-13 14:09 | gabrieljenik | Resolution | open => fixed |
2020-08-13 14:09 | ollehar | Note Added: 59458 | |
2020-08-13 14:10 | ollehar | Status | confirmed => feedback |
2020-08-14 11:03 |
|
Zoho Sprints | Yes => |Yes| |
2020-08-14 11:03 |
|
Status | feedback => resolved |
2020-08-14 11:03 |
|
Zoho Sprints | Yes => |Yes| |
2020-08-15 05:43 | qsgt | Issue Monitored: qsgt | |
2020-08-17 14:05 | lime_release_bot | Zoho Sprints | Yes => |Yes| |
2020-08-17 14:05 | lime_release_bot | Note Added: 59472 | |
2020-08-17 14:05 | lime_release_bot | Status | resolved => closed |
2020-08-18 21:44 | gabrieljenik | Issue cloned: 16604 | |
2020-08-18 21:44 | gabrieljenik | Relationship added | related to 16604 |