View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
15246Feature requestsExpression Managerpublic2021-04-20 15:23
ReporterDenisChenu Assigned ToDenisChenu  
PrioritynoneSeverityfeature 
Status closedResolutionfixed 
Summary15246: Allow fixed function (no js, only PHP) in expression mùanager
Description

Currently expression manager function need 2 part : a PHP function + a JS function.
But there are some situation where value are not JS dependant

Additional Information

Sample

  • Get count of previous answer
  • Get data from an external website
  • Surely some other

I have the solution + a plugin usage with statCount and statCountIF

TagsNo tags attached.
Bug heat4
Story point estimate
Users affected %

Relationships

related to 11589 assignedcdorin Feature requests Quota should be accessible in relevance equation 
related to 13175 closedDenisChenu Feature requests Benchmark Information. Ability to show calculated values based on all users 
related to 12248 new Feature requests Expose php mt_rand to Expression manager 
related to 15862 new Bug reports Plugin function are not included in EM auto doc 

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2019-09-07 11:20

developer   ~53522

https://github.com/LimeSurvey/LimeSurvey/pull/1320

DenisChenu

DenisChenu

2019-10-23 08:24

developer   ~54151

Please : see when the pull request with

  1. Plugins with interesting option
  2. With test for this plugins
  3. Close 3 related feature
  4. Didn't broke anything else (in fact : all of this can be done in 3.X without broke 3.X …)

Can be reviewed and merged.

Or tell me : what can i do to be sure to have feature merged in develop … and not reverted after …

ollehar

ollehar

2019-11-28 11:47

administrator   ~54851

No way to make plugin include JS too?

DenisChenu

DenisChenu

2019-11-29 09:06

developer   ~54885

  1. There are no interest to have stats updated via JS
  2. This allow a lot of PHP function (https://bugs.limesurvey.org/view.php?id=12248 for example)
  3. I don't find a way to get stats in expression manager without updating core.
  4. It's a new plugin system : it's open opportunity
DenisChenu

DenisChenu

2020-01-28 15:42

developer   ~55515

Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=29466

Related Changesets

LimeSurvey: master ee4f0698

2020-01-15 17:08:31

DenisChenu


Committer: JHoeck Details Diff
New feature 15246: Allow fixed function (only PHP) in expression manager (#1320)

New feature 15246: Allow fixed function (only PHP) in expression manager
New feature 13175: Ability to show calculated values based on all users
Affected Issues
13175, 15246
add - application/core/plugins/statFunctions/config.xml Diff File
add - application/core/plugins/statFunctions/countFunctions.php Diff File
add - application/core/plugins/statFunctions/questionCodeHelper.php Diff File
add - application/core/plugins/statFunctions/statFunctions.php Diff File
mod - application/helpers/expressions/em_core_helper.php Diff File
mod - application/helpers/expressions/em_manager_helper.php Diff File
mod - assets/packages/expressions/em_javascript.js Diff File
mod - tests/TestBaseClass.php Diff File
add - tests/data/surveys/survey_archive_statCountFunctionsTest.lsa Diff File
add - tests/functional/acceptance/15246-fixed-em-function/FixedFunctionExpressionPluginTest.php Diff File

Issue History

Date Modified Username Field Change
2019-09-07 10:57 DenisChenu New Issue
2019-09-07 10:57 DenisChenu Status new => assigned
2019-09-07 10:57 DenisChenu Assigned To => DenisChenu
2019-09-07 10:57 DenisChenu Relationship added related to 11589
2019-09-07 10:57 DenisChenu Relationship added related to 13175
2019-09-07 10:58 DenisChenu Relationship added related to 12248
2019-09-07 11:20 DenisChenu Note Added: 53522
2019-10-23 08:24 DenisChenu Assigned To DenisChenu => cdorin
2019-10-23 08:24 DenisChenu Status assigned => feedback
2019-10-23 08:24 DenisChenu Note Added: 54151
2019-11-28 11:47 ollehar Note Added: 54851
2019-11-29 09:06 DenisChenu Note Added: 54885
2019-11-29 09:06 DenisChenu Status feedback => assigned
2020-01-28 15:42 JHoeck Changeset attached => LimeSurvey master ee4f0698
2020-01-28 15:42 DenisChenu Note Added: 55515
2020-01-28 15:42 DenisChenu Assigned To cdorin => DenisChenu
2020-01-28 15:42 DenisChenu Resolution open => fixed
2020-01-29 08:02 DenisChenu Assigned To DenisChenu =>
2020-01-29 08:02 DenisChenu Status assigned => ready for testing
2020-02-13 14:46 DenisChenu Relationship added parent of 15862
2021-04-20 15:22 DenisChenu Relationship deleted parent of 15862
2021-04-20 15:23 DenisChenu Relationship added related to 15862
2021-04-20 15:23 DenisChenu Assigned To => DenisChenu
2021-04-20 15:23 DenisChenu Status ready for testing => closed
2021-04-20 15:23 DenisChenu Fixed in Version => 4.x.x