Batch API integration

janusman - May 15, 2009 - 21:44
Project:Millennium Integration
Version:6.x-2.x-dev
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:closed
Description

See http://api.drupal.org/api/group/batch

#1

janusman - October 15, 2009 - 22:32
Status:active» needs review

How about this?

AttachmentSize
millennium-464068-1.patch 8.61 KB

#2

janusman - October 15, 2009 - 23:36
Title:See if module should use Batch API» Batch API integration

I'm convinced it should have Batch API =) Changing title =)

The above patch just imports items between a numbered range.. it would be great to import from a file (copy-pasted or uploaded).

#3

janusman - October 16, 2009 - 15:37

Updated patch.

AttachmentSize
millennium-464068-3.patch 10.92 KB

#4

janusman - October 16, 2009 - 22:04
Status:needs review» fixed

Committing attached patch.

* Changed the "Add items to import queue" settings tab to "Manual Import". That tab now offers options for importing now (batch API) or via cron runs, and from either a textarea to paste item numbers to, or a numbered range.
* Also, includes some performance improvements to:
millennium.cron.inc so it now asks for items from the bookcart in groups of 50
millennium_get_holdings_info() so it uses both a static cache and cache_set()/get() for holdings information.
* Moved millennium_time_history() to the main module file.

AttachmentSize
millennium-464068-4.patch 20.77 KB

#5

System Message - October 30, 2009 - 22:10
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.