Comments

jonhattan created an issue. See original summary.

jonhattan’s picture

Status: Active » Needs review
StatusFileSize
new5.65 KB

This patch adds the documentation link to all process plugins except MenuLinkParent and Route. Those doesn't have a doc page in d.o (and are of internal usage IMO. Route hasn't even a docstring).

RavindraSingh’s picture

Status: Needs review » Needs work

Validated all links are added in all the files except

MenuLinkParent.php
Extract.php
latten.php
Iterator.php
Route.php
StaticMap.php

Do we have specific reason for not adding the documentation links for these.

RavindraSingh’s picture

I see, the documentation is added for all except MenuLinkParent and Route so it should be RTBC .

Do we need to add documentation for MenuLinkParent and Route?

RavindraSingh’s picture

Status: Needs work » Reviewed & tested by the community
jonhattan’s picture

Version: 8.1.x-dev » 8.2.x-dev
quietone’s picture

Do we need to add documentation for MenuLinkParent and Route?

Yes, I think so. I've yet to delve into menus and routing, so not the best task for me to do.

catch’s picture

Status: Reviewed & tested by the community » Needs review

Should this use @link instead of @see?

benjy’s picture

Status: Needs review » Needs work

Looking at the standards I think it should. https://www.drupal.org/coding-standards/docs#link

arunkumark’s picture

Status: Needs work » Needs review
Issue tags: +ChennaiDrupalGroup
StatusFileSize
new5.65 KB

Hi All,

I have re patched using the 2682461-document_migrate_process_plugins.patch, it will support for drupal 8.x.2-dev version

benjy’s picture

Status: Needs review » Needs work

Still needs to use @link as per #8

arunkumark’s picture

As per Comment #8 patched is rewritten.
@benjy thanks

arunkumark’s picture

Status: Needs work » Needs review
benjy’s picture

Looking at the docs we need something like See also @link http://example.com Process xyz docs, @endlink

Might be worth having a documentation maintainer chip in here on the best way to structure this.

arunkumark’s picture

Assigned: Unassigned » arunkumark
arunkumark’s picture

Assigned: arunkumark » Unassigned
StatusFileSize
new6.05 KB

@benjy thanks, changes updated in new patch

benjy’s picture

Status: Needs review » Reviewed & tested by the community

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 16: migration_add_link_documentation_2682461_13.patch, failed testing.

quietone’s picture

Status: Needs work » Needs review

Not sure why adding documentation caused a failure. So, retesting.

quietone’s picture

Status: Needs review » Reviewed & tested by the community

Test passed, setting back to RTBC.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 16: migration_add_link_documentation_2682461_13.patch, failed testing.

quietone’s picture

Testing again

quietone’s picture

Status: Needs work » Reviewed & tested by the community

Passed again, so RTBC.

xjm’s picture

(Saving credit.)

xjm’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: +Needs followup

Nice work gathering the links to these docs and formatting them for our API docblocks.

In the longer term, I wonder if the documentation for the process plugins should maybe in the codebase itself, rather than maintaining it in the handbook, since it is specific 1-1 documentation rather than any overall documentation. Could someone create a followup documentation issue to discuss that?

In the meanwhile though, this is a definite improvement that will make it easier to find the needed documentation when developing for Migrate. I do think we need to give the link text more context, though, for accessibility reasons among other things. Just having a link that says "Process plugin: foo" when you are already on a page about "Process plugin: foo" is kind of confusing. I'd suggest text like:
@link https://www.drupal.org/node/12345 Online handbook documentation for foo process plugins @endlink

xjm’s picture

(Fixing credit again.)

quietone’s picture

Status: Needs work » Needs review
StatusFileSize
new9.39 KB

Addressing #25.

  1. Follow up issue created, #2776179: [meta] Add process plugin documentation to the codebase
  2. Modified @links with the suggested text, and included more plugins.
quietone’s picture

Uploading the patch would help.

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.0-beta1 was released on August 3, 2016, which means new developments and disruptive changes should now be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

jonhattan’s picture

StatusFileSize
new9.85 KB
new683 bytes

Fixed a typo.

jonhattan’s picture

Version: 8.3.x-dev » 8.2.x-dev
phenaproxima’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: +DX (Developer Experience)

Good stuff.

  • xjm committed 29e59ea on 8.1.x
    Issue #2682461 by arunkumark, jonhattan, quietone, benjy, xjm,...
xjm’s picture

Status: Reviewed & tested by the community » Fixed

Committed 0ce97fb and pushed to 8.3.x, 8.2.x, and 8.1.x. Thanks!

Fixed the following coding standards error on commit:

FILE: ...r/core/modules/migrate/src/Plugin/migrate/process/DedupeBase.php
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
 21 | ERROR | [x] Additional blank lines found at end of doc comment
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
diff --git a/core/modules/migrate/src/Plugin/migrate/process/DedupeBase.php b/core/modules/migrate/src/Plugin/migrate/process/DedupeBase.php
index c11be62..adaf720 100644
--- a/core/modules/migrate/src/Plugin/migrate/process/DedupeBase.php
+++ b/core/modules/migrate/src/Plugin/migrate/process/DedupeBase.php
@@ -17,7 +17,6 @@
  * and incremented until a unique value is created.
  *
  * @link https://www.drupal.org/node/2345929 Online handbook documentation for dedupebase process plugin @endlink
- *
  */
 abstract class DedupeBase extends ProcessPluginBase {

  • xjm committed f1618f2 on 8.2.x
    Issue #2682461 by arunkumark, jonhattan, quietone, benjy, xjm,...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.