View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
16604 | Bug reports | Conditions | public | 2020-08-18 21:44 | 2021-03-08 19:36 |
Reporter | gabrieljenik | Assigned To | gabrieljenik | ||
Priority | none | Severity | crash | ||
Status | closed | Resolution | fixed | ||
Product Version | 3.23.0 | ||||
Fixed in Version | 3.25.17 | ||||
Summary | 16604: 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 | No tags attached. | ||||
Bug heat | 4 | ||||
Complete LimeSurvey version number (& build) | 3.23.0 | ||||
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 | 16483 | closed | gabrieljenik | Adding condition triggers bulk update for complete database |
PR: https://github.com/LimeSurvey/LimeSurvey/pull/1564 If surveyId is not given but qid is, fetch surveyd from the question |
|
Travis is red for the PR. |
|
Fix committed to 3.x-LTS branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=31238 |
|
PR: https://github.com/LimeSurvey/LimeSurvey/pull/1788/ |
|
Fix committed to 3.x-LTS branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=31251 |
|
LimeSurvey: 3.x-LTS c6186724 2021-03-01 17:55 Committer: GitHub Details Diff |
Fixed issue 16604: Adding condition triggers bulk update for complete database (#1564) |
Affected Issues 16604 |
|
mod - application/helpers/expressions/em_manager_helper.php | Diff File | ||
LimeSurvey: 3.x-LTS 91945dc2 2021-03-02 19:24 Committer: GitHub Details Diff |
Fixed issue 16604: Adding condition triggers bulk update for complete database (#1788) |
Affected Issues 16604 |
|
mod - application/helpers/expressions/em_manager_helper.php | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2020-08-18 21:44 | gabrieljenik | New Issue | |
2020-08-18 21:44 | gabrieljenik | Status | new => assigned |
2020-08-18 21:44 | gabrieljenik | Assigned To | => gabrieljenik |
2020-08-18 21:44 | gabrieljenik | Issue generated from: 16483 | |
2020-08-18 21:44 | gabrieljenik | Relationship added | related to 16483 |
2020-08-24 21:50 | gabrieljenik | Note Added: 59600 | |
2021-02-08 17:13 | ollehar | Note Added: 62026 | |
2021-02-08 17:13 | ollehar | Status | assigned => feedback |
2021-03-01 16:55 | gabrieljenik | Changeset attached | => LimeSurvey 3.x-LTS c6186724 |
2021-03-01 16:55 | gabrieljenik | Note Added: 62586 | |
2021-03-01 16:55 | gabrieljenik | Resolution | open => fixed |
2021-03-01 16:55 | c_schmitz | Status | feedback => resolved |
2021-03-02 16:44 | gabrieljenik | Note Added: 62608 | |
2021-03-02 18:24 | gabrieljenik | Changeset attached | => LimeSurvey 3.x-LTS 91945dc2 |
2021-03-02 18:24 | gabrieljenik | Note Added: 62617 | |
2021-03-08 19:36 | c_schmitz | Fixed in Version | => 3.25.17 |
2021-03-08 19:36 | c_schmitz | Status | resolved => closed |