View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
15632 | Bug reports | RemoteControl | public | 2019-11-28 10:25 | 2020-03-09 15:36 |
Reporter | bismark | Assigned To | ollehar | ||
Priority | none | Severity | feature | ||
Status | closed | Resolution | fixed | ||
Product Version | 3.20.x | ||||
Summary | 15632: RemoteControl cpd_importParticipants insert and/or update | ||||
Description | need to discuss the update of a cpdb participant record via remote control there is a method whats the better way?
| ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Bug heat | 10 | ||||
Complete LimeSurvey version number (& build) | master | ||||
I will donate to the project if issue is resolved | No | ||||
Browser | |||||
Database type & version | 10.1.26-MariaDB | ||||
Server OS (if known) | |||||
Webserver software & version (if known) | |||||
PHP Version | 7.1.8 | ||||
I believe that extending cpd_importParticipant to update existing record is a better option. If have to choose only one, then, theorically, cpd_updateParticipants seems more important as it is a more basic component. |
|
PR coming soon |
|
I also vote to extend the existing function by using a new parameter with default $update = false. If set to true, we can easily extend the function to update existing data sets. That will make it easy for the common user already using the same function to update data sets if needed by just changing the new parameter value. |
|
@c_schmitz, can you please let us know if the suggested approach ("extend the existing function by using a new parameter with default $update = false") is fine with you? |
|
I already think we need a 'Update participant' (for token, no CPDB, but CPDB can need same) in GUI too .... But we need a way to know how the update must be found (same with RC and CPDB):
Updating |
|
actually I only need to update the status |
|
Then by userid or email ? |
|
To add this in LS3, there needs to be acceptance tests and some kind of specification, preferably in scenario form. I will give more details later (also per email with bismark). |
|
Some manual links: https://manual.limesurvey.org/Regression_and_unit_tests https://manual.limesurvey.org/How_to_contribute_new_features |
|
The new acceptance test should be in a folder containing the Mantis ticket number and a short description, as in this case: https://github.com/LimeSurvey/LimeSurvey/tree/master/tests/functional/acceptance/15532-em-warnings |
|
Here's an example on how to test the remote API: https://github.com/LimeSurvey/LimeSurvey/blob/master/tests/helpers/RemoteControlTest.php |
|
Then we can add new feature in 3.X if there are
I think new feature is only for 4.X |
|
@DenisChenu I'm trying to reach a compromise that works for everybody. Yes, new features only in dev branch would be best, but now so many half-finished things are merged into dev that it's impossible to release a stable version (yet). We choose to accept this new feature in LS3, since it is small and assuming it complies to a more strict workflow than before to reduce the risk of instability. If it still leads to instability, then yes, we have to rethink our position. The acceptance tests should be automatic when possible, but manual QA and code-review is also a requirement before merging. |
|
Ok , it's an information ;) Client NEED a new feature in less than one month : 1 hour for new feature + 1 day for acceptance test ;) |
|
Yes, writing tests is costly, but not writing tests is even more costly (long term). ;) |
|
:) :+1: |
|
Date Modified | Username | Field | Change |
---|---|---|---|
2019-11-28 10:25 | bismark | New Issue | |
2019-11-28 13:28 | gabrieljenik | Note Added: 54859 | |
2019-11-29 10:12 | bismark | Note Added: 54887 | |
2019-11-29 10:14 | Mazi | Note Added: 54888 | |
2019-12-02 09:22 | Mazi | Note Added: 54894 | |
2019-12-02 09:28 | DenisChenu | Note Added: 54895 | |
2019-12-03 14:35 | bismark | Note Added: 54915 | |
2019-12-03 14:38 | DenisChenu | Note Added: 54916 | |
2019-12-03 15:08 | ollehar | Note Added: 54917 | |
2019-12-03 15:10 | ollehar | File Added: feature_workflow.png | |
2019-12-03 15:10 | ollehar | Note Added: 54918 | |
2019-12-03 15:11 | ollehar | Note Added: 54919 | |
2019-12-03 15:12 | ollehar | Note Added: 54920 | |
2019-12-03 16:07 | DenisChenu | Note Added: 54929 | |
2019-12-03 16:20 | ollehar | Note Added: 54930 | |
2019-12-03 16:21 | ollehar | Note Edited: 54930 | |
2019-12-03 16:22 | DenisChenu | Note Added: 54931 | |
2019-12-03 16:25 | ollehar | Note Added: 54932 | |
2019-12-03 16:27 | DenisChenu | Note Added: 54933 | |
2020-01-09 11:54 | bismark | Note Added: 55170 | |
2020-01-22 13:31 | ollehar | Assigned To | => ollehar |
2020-01-22 13:31 | ollehar | Status | new => resolved |
2020-01-22 13:31 | ollehar | Resolution | open => fixed |
2020-03-09 15:36 | c_schmitz | Status | resolved => closed |