I'd like to split the bulk-updating code w/ the Batch API patch into a new sub-module or project called 'Pathauto Bulk Update'. Reasons for this:

1. Pathauto stays lean and mean and does what it does best (transfer updating and bulk-deleting to new module code)
2. Helps ease transition to D7 since we would most not likely bring these features into core
3. Bulk updating can focus on its own feature set and adding new cool things (updating for all languages, etc).

So, should we create a separate project or make it a sub-module included in Pathauto? I'm prepared to help maintain this.

CommentFileSizeAuthor
#13 pathauto_batch.zip3.99 KBagentrickard
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

DamienMcKenna’s picture

Could you please draw more of a line between what the updated PathAuto and the new PathAuto Bulk modules would do, where the existing functionality would go? Thanks.

Dave Reid’s picture

The functionality that would be moved from Pathauto to the new module is:
1. The 'Bulk generate aliases for [entity] that are not aliased' features on the pathauto settings page would be moved to its own batch API 'Update' page in the sub-module.
2. The 'Delete aliases' page would also be moved to the sub-module.

Dave Reid’s picture

For context, about 50 of the current pathauto open issues deal with the bulk update or deletes. I started tagging the major ones with 'bulk' but there are a lot.

agentrickard’s picture

I posted a partial module for that long ago, which could serve as a starting point. http://drupal.org/node/201151#comment-1952406

Dave Reid’s picture

Assigned: Unassigned » Dave Reid

I'll start working on this in my sandbox for now.

Cybergarou’s picture

Assigned: Dave Reid » Unassigned

I say go for it. Since the functionality in question isn't needed most of the time, having the option to disable it would be nice. (I like modules that disappear when I don't need them.)

As for how to treat the split, if you can make Pathauto Bulk Update independent of the version of Pathauto then make it a seperate project. Otherwise you may as well keep it as a sub-module.

Cybergarou’s picture

Sorry about that, bad timing for a post.

Dave Reid’s picture

Assigned: Unassigned » Dave Reid
sun’s picture

errr, you started to work on this in your sandbox? Why that?

I'd take the code from #201151: Use batch API to perform path alias bulk updates and turn it into a module. Done.

Probably resolves a lot of bulk update issues in the queue, because I already fixed a couple of WTFs in that patch.

Bulk update = Batch API.

Nothing more, nothing less. I still disagree with a separate module though.

greggles’s picture

FWIW, I like this idea.

agentrickard’s picture

I think it's a good compromise. Pathauto should expose operations for VBO and we should also provide this module.

Dave Reid’s picture

Version: 6.x-2.x-dev » 7.x-1.x-dev
Status: Active » Postponed

Moving to 7.x-1.x and postponed.

agentrickard’s picture

FileSize
3.99 KB

Fail.

Anyway, here's an updated version of the current batch module.

greggles’s picture

Fail? I get that you disagree with the way that this particular issue was handled, but do you think you could be more constructive?

Or in other words: constructive cooperation fail.

agentrickard’s picture

I think pushing it to D7 is a failure to fix the problem that exists. I think postponing is the wrong decision. This is an active problem in D6 that needs attention.

Apologies for my curtness earlier.

sun’s picture

@agentrickard: The current plan is outlined in #201151-50: Use batch API to perform path alias bulk updates, also (or even primarily) targeting 6.x-2.x

Dave Reid’s picture

Status: Postponed » Closed (duplicate)

Being fixed shortly in #201151: Use batch API to perform path alias bulk updates which will be backported to 6.x-2.x.

dman’s picture

Crosslinking for searchers (I know it's an old dead issue, but this is still the best search result for anyone looking for a related workaround). Also as the fix in 6.x-2.x hasn't been flagged stable yet.
Using Views Bulk Operations to perform bulk pathauto updates can be a powerful solution.

JCB’s picture

I had some issues updating term aliases as I have vocabulary with 50,000 terms.
This lead to internal server errors.

I can confirm that updating URL alias is working with views bulk operations (VBO).

I installed the latest dev version which supplied the required options to make this possible.
6.x-2.x-dev tar.gz (42.96 KB) | zip (47.99 KB) 2012-Sep-28 Notes