Closed (fixed)
Project:
Link checker
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
3 Jan 2013 at 20:37 UTC
Updated:
21 Jan 2013 at 16:20 UTC
Jump to comment: Most recent file
Comments
Comment #1
hass commentedWhat means "interstitial"?
The batch api job runs if you add more than 100 "new" links. "New" means, not used/published anywhere else on the website. Linkchecker does not publish a node. It only looks into the node object that is currently saved with hook_node_insert/update and if $node->status == 1 it extracts the links, but it never publishes your draft node as it's not of status = 1.
I'm not using Content Moderation myself. Only Workbench moderation is in use on my sites and I have not seen any issues yet, but never tested it explicitly. Maybe Content Moderation does anything strange to hack core. Would be a lot easier to identify by a maintainer of content moderation.
Comment #2
hass commentedhttp://drupal.org/project/content_moderation is an unsupported project!?
Comment #3
kpaxman commentedSorry...I am using Workbench Moderation, not Content Moderation. I don't know what I was thinking.
The "interstitial" is the "thing that appears between clicking save and viewing the node" (The "checking links" progress bar)
Comment #4
hass commentedLooks like there are some todo's.
#5. May be difficult to implement as I have no idea how I can grab the redirect path and I do not like to add custom code for every moderation module. We changed the target url already in #1054118: After batch scan the target url is not pointing to the node view and implemented a redirect to the published version. This is hard coded in linkchecker.
Issues:
_hook_node_delete(). This may be a problem._hook_node_delete().Comment #5
hass commentedOpened some issues in workbench moderation queue:
#1879476: Publishing a draft with workbench-moderation-moderate-form does not fire hook_node_update()
#1879482: hook_node_update() fires twice and cause abnormal results
Comment #6
hass commentedThis patch does not remove the batch extraction of links (your #5 issue). I may change this in a follow up issue to Queue API, but here it's not so critical.
Comment #8
hass commentedComment #9
hass commentedIt may not work if workbench is enabled, but the node type is not enabled for revisioning. Needs testing.
Comment #10
hass commentedUntested, but this one should work.
Comment #11
hass commentedWorks for me. Can you confirm, please?
If you use the Moderate form on top of a draft to publish the content, it will not work! #1879476: Publishing a draft with workbench-moderation-moderate-form does not fire hook_node_update() needs to be fixed first.
Comment #12
hass commentedRefactored code.
Comment #13
hass commentedhttp://drupalcode.org/project/linkchecker.git/commit/e7b9dbb
Please give next DEV a try and report back.
Comment #14
kpaxman commentedI can't say I'm sure how to exhaustively test this - but following the pattern above everything now works as I'd expect.
At every step that would take me to the "draft" tab, I tried applying various states to see if anything would go wrong, and it always behaved as expected.
Comment #15.0
(not verified) commentedadded note that publisher is "anonymous"