Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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.
Comment | File | Size | Author |
---|---|---|---|
#13 | pathauto_batch.zip | 3.99 KB | agentrickard |
Comments
Comment #1
DamienMcKennaCould 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.
Comment #2
Dave ReidThe 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.
Comment #3
Dave ReidFor 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.
Comment #4
agentrickardI posted a partial module for that long ago, which could serve as a starting point. http://drupal.org/node/201151#comment-1952406
Comment #5
Dave ReidI'll start working on this in my sandbox for now.
Comment #6
Cybergarou CreditAttribution: Cybergarou commentedI 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.
Comment #7
Cybergarou CreditAttribution: Cybergarou commentedSorry about that, bad timing for a post.
Comment #8
Dave ReidComment #9
sunerrr, 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.
Comment #10
gregglesFWIW, I like this idea.
Comment #11
agentrickardI think it's a good compromise. Pathauto should expose operations for VBO and we should also provide this module.
Comment #12
Dave ReidMoving to 7.x-1.x and postponed.
Comment #13
agentrickardFail.
Anyway, here's an updated version of the current batch module.
Comment #14
gregglesFail? 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.
Comment #15
agentrickardI 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.
Comment #16
sun@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
Comment #17
Dave ReidBeing fixed shortly in #201151: Use batch API to perform path alias bulk updates which will be backported to 6.x-2.x.
Comment #18
dman CreditAttribution: dman commentedCrosslinking 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.
Comment #19
JCB CreditAttribution: JCB commentedI 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