Problem/Motivation
getProcessPlugins() is named, and documented, to say you call it to get process plugins.
However, it has a $process parameter which is optional, but which isn't documented as being optional, and doesn't explain what happens when it's omitted:
* @param array $process
* A process configuration array.
public function getProcessPlugins(?array $process = NULL);
$pipeline = $this->migration->getProcessPlugins();
Steps to reproduce
N/A
Proposed resolution
Update documentation
Remaining tasks
Review
User interface changes
N/A
API changes
N/A
Data model changes
N/A
Release notes snippet
N/A
| Comment | File | Size | Author |
|---|---|---|---|
| #18 | issues_3458295_18.png | 48.92 KB | kleiton_rodrigues |
Issue fork drupal-3458295
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
quietone commentedFixes are made on on 11.x (our main development branch) first, and are then back ported as needed according to our policies.
Comment #6
pooja_sharma commentedRebased the MR with latest code & checked, if passed NULL or omitted parameter in getProcessPlugins() then return empty [], on the basis of it , updated doc comments & applied suggestions.
PLease review, moving NR.
Comment #7
smustgrave commentedSeems straight forward and reads fine
Comment #8
joachim commentedDoesn't make sense though!
Comment #9
pooja_sharma commentedAddress feedback, Please review moving NR
Comment #10
joachim commented> Th method returns an empty array if no process plugins are specified
* in the migration's process configuration.
That isn't it either.
If you specify $process, then you get the plugins from the given process array.
If you don't specify $process, then you get the plugins from the migration definition's process array.
Comment #11
pooja_sharma commentedThere was some misinterpretation with prev feedback from my end, tried to apply changes on the basis latest detail suggestion
Please review, moving to NR
Comment #12
smustgrave commented1 open thread.
Comment #14
shalini_jha commentedI have addressed the feedback related to the documentation comments. Please review the changes.
Comment #15
joachim commentedNearly there! Just one small fix needed.
Comment #16
shalini_jha commentedAddressed the mentioned comment , please review.
Comment #17
joachim commentedThanks!
I think this is ready now.
Comment #18
kleiton_rodrigues commented@shalini_jha
RTBC++
Comment #23
quietone commentedCommitted to 11.x, 11.0.x, 10.4x, and 10.3.x
Thanks!
edit: forgot to mention that this was not wrapped correctly and was fixed on commit.