Problem/Motivation
Process plugin documentation is being moved from the Handbook to the API documentation of the process plugin class.
The handbook page for process plugin contains more information than the API documentation of the plugin.
Before we delete the handbook page and redirect it to the API page, we need to either enhance the API doc or decide that it is OK to discard the additional information currently found in the handbook.
The differencec are these:
--clips--
- The text format example has a static_map in the handbook example. This is missing from the API doc.
- The handbook page has an attachment with a complete input and output example.
Proposed resolution
Copy the more comprehensive example to the API doc.
To be considered: do we want to include the full input / output example in the API doc?
Remaining tasks
Do it.
User interface changes
N/A.
API changes
N/A.
Data model changes
N/A.
Comment | File | Size | Author |
---|---|---|---|
#12 | interdiff-29337762-2-12.txt | 1.31 KB | masipila |
#12 | 29337762-12.patch | 3.78 KB | masipila |
#2 | 2933776-2.patch | 3.79 KB | masipila |
Comments
Comment #2
masipila CreditAttribution: masipila as a volunteer commentedInitial patch attached.
I copied the static_map example from the documentation handbook to the API documentation and did some minor clarification to improve the readability at the same time. I also added '@see' references to migration_lookup and static_map process plugins that are used in the examples.
What comes to the complete input and output example that was in the attachment of the handbook page: I don't consider that to be needed. The examples should now IMO be sufficient with the additional clarifications.
Markus
Comment #3
heddnDocs look like an improvement. LGTM.
Comment #4
quietone CreditAttribution: quietone as a volunteer commented@masipila, when this is committed the handbook page will be deleted like the other process plugins?
Comment #5
larowlan8.4.x will only receive critical backports now
Comment #6
masipila CreditAttribution: masipila as a volunteer commentedRe: #4. Correct.
Once this is committed I will:
1) Update the current handbook page with a disclaimer saying that the content has moved to API docs and link to the relevant page in API.
2) Hide the handbook page from handbook navigation.
Once all the issues of the parent meta have landed (after this week's sprint I hope), I'll request d.o. doc infra team to make redirects from the original (hidden) handbook pages to the the relevant page in api.drupal.org. I'll do this as one request to save their time.
Markus
Comment #7
quietone CreditAttribution: quietone as a volunteer commented@masipila, thanks, it is very clear what is to happen.
Comment #8
Gábor HojtsyDo we say "applied for the following source data" or should it be "applied on the following source data"? This may be a wording pattern used elsewhere. I grepped the source but did not find "applied for" or "applied on" either in core in migrate API docs.
Comment #9
heddnComment #10
heddnNo pattern here. Back to NW for #8. And tagging Novice.
Comment #11
masipila CreditAttribution: masipila as a volunteer commentedApplied 'to' and 'on' seem to be proper English. If I interpret this correctly, we should use applied 'on' in this context. https://english.stackexchange.com/questions/202196/apply-on-or-apply-to
Comment #12
masipila CreditAttribution: masipila as a volunteer commentedNow we're using 'applied on' consistently in this.
Comment #13
quietone CreditAttribution: quietone as a volunteer commentedHaving read the link about applied on and applied to, I agree with masipila that 'applied on' makes sense in this case. However, it is pointed out in #8 that this phrasing is not used elsewhere in core and since I am a big fan of consistency I wonder if this should be changed to some other phrasing. To help answer my own question I installed the patch and reread the examples. I found it easy to understand and the 'applied on' phrasing served to distinguish that this is not a typical process plugin where the input data is transformed. So, yes it works for me and hopefully others as well. And even better now that 'applied on' is used consistently throughout.
Setting to RTBC since I presume tests will pass.
Comment #14
Gábor HojtsySuperb, thanks for the update and for broadening my English knowledge as well.