Closed (fixed)
Project:
Drupal core
Version:
8.3.x-dev
Component:
migration system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
20 Jan 2017 at 23:56 UTC
Updated:
25 Apr 2017 at 13:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
quietone commentedComment #3
phenaproximaSelf-assigning for review.
Comment #5
ultimikedefault_value is also an available configuration key.
"from", "to", "this", "that" should probably be quoted.
Again, example values should be quoted for better readability.
Change "this value" to "this default_value"?
Comment #6
phenaproximaComment #7
jofitzChanges in response to code review.
Comment #8
phenaproximaThis needs to end with a colon.
These are all missing descriptions.
Comment #9
jofitzResponse to code review.
Comment #10
phenaproximaSelf-assigning for review.
Comment #11
phenaproximaI'm sorry to say it, but I think this going to need some significant work.
Let's reword this a bit -- "Maps the input value to another value using an associative array specified in the configuration."
"the link" should read "the mapping".
Let's strike the "Do not throw an exception" part; can this just say "Return the unmodified input value, or another default value if one is specified"?
Should be "the returned value will be 'filter_url'".
Remove "This is desirable in the above example." It's not clear why it's desirable, and in an isolated example, it's not more or less desirable.
This should have an example of its own.
Redundant. Should be removed.
Let's rewrite this entirely to explain the flow of the example, as the other explanations do. And let's not bother mentioning the default_value plugin or what the pipeline would contain -- it's out of scope for this documentation.
This should all be {@inheritdoc}.
Comment #12
jofitzWell that's the easy bits of #11 done: 1, 2, 3, 4, 5, 7, 9.
Remaining to do:
Comment #13
jofitzComment #14
jofitzCorrected some indentation in a previous example.
Addressed 11.6: Added a "bypass: true" example.
Addressed 11.8: Re-wrote the explanation for the last example.
Comment #15
quietone commented@Jo Fitzgerald - The champion of process plugin documentation!
It looks like every in #11 has been addressed and it reads well, at least to me. I just have 2 questions:
General considerations for API module parsing states "All summaries (first lines of docblocks) must be under 80 characters, start with a capital letter, and end with a period (.)." Maybe removing 'specified in the configuration'?
Why isn't it necessary to document the exceptions being thrown?
Comment #16
phenaproximaSelf-assigning for review.
Comment #17
phenaproximaI tried to find problems with this documentation but I couldn't. It's really pretty clear. Great work!
Comment #18
alexpottCommitted 5bd7f43 and pushed to 8.4.x. Thanks!
Once 8.3.0 is out we can backport - we are in commit freeze atm.
Comment #20
alexpottCommitted 478e2cd and pushed to 8.3.x. Thanks!