Closed (fixed)
Project:
Feeds
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
5 Oct 2010 at 23:20 UTC
Updated:
24 Apr 2012 at 09:32 UTC
Jump to comment: Most recent file
With Drupal's entity API we can consolidate process() and clear() methods into FeedsProcessor having specific entity processors only declare CRUD methods for entities and a little extra.
The benefit of doing this is that we consolidate processor level features and that we further consolidate processor level features like batching, replace/update existing etc.
Patch coming.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 932772-2_consolidate_processors.patch | 60 KB | alex_b |
| #1 | 932772-1_consolidate_processors.patch | 38.06 KB | alex_b |
Comments
Comment #1
alex_b commentedThis consolidates processors.
The main difference is that process() and clear() are now implemented by FeedsProcessor. This means that FeedsNodeProcessor, FeedsTermProcessor and FeedsUserProcessor do not need to implement process() or clear() (of course they are still free to do so).
The entity handling (creating, loading, saving, deleting nodes, terms, users) is handled by a very thin abstraction layer - basically a set of methods (entityLoad() entitySave() etc.) implemented by node, term, user processors.
This patch consolidates the update/skip settings into the processor and it brings item hashing (skip items that haven't changed), batched user creation and user deletion (also batched) for free.
Comment #2
alex_b commentedAll tests passing.
Comment #3
alex_b commentedComment #4
alex_b commentedAll tests passing. This is committed now.
http://drupal.org/cvs?commit=432318
Comment #6
tassaf commentedHow to import data into database table .. not entity