Now the whole batch stops when something goes wrong with particular mapping.
I think it's much better to process the whole queue not saving nodes with problems while showing warnings.
I modified FeedsNodeProcessor.inc to catch exceptions in $this->map() and perform node_save() + update stats only if there was no exception.

Comments

Monkey Master’s picture

StatusFileSize
new1.56 KB
alex_b’s picture

Version: 6.x-1.0-alpha12 » 6.x-1.x-dev
Status: Active » Needs work

Agreed.

1. You can put $this->map($item, $node); and node_save() into the same try{} block to avoid the unelegant $save_node toggle.
2. Could you add a watchdog() call next to the drupal_set_message() ?

Patch against head please! Thank you!

Monkey Master’s picture

StatusFileSize
new1.54 KB

done.

Patch against head please!

I'm actually new to CVS and use TortoiseCVS (win32). I thought I use HEAD already...

alex_b’s picture

Status: Needs work » Needs review

I'm actually new to CVS and use TortoiseCVS (win32). I thought I use HEAD already...

I see - on Windows I've found working from the command line with cygwin to work best. BTW, patches should be rolled from the module's base directory (or if against Drupal itself, from the site's root directory). (Not directly related but a common issue: If you need to add a new file and don't have write access to CVS, you can use cvsdo for it). See Creating patches for more guidelines.

Needs review.

alex_b’s picture

Status: Needs review » Needs work

Does not apply to latest head, please reroll. General approach looking good.

Monkey Master’s picture

StatusFileSize
new1.63 KB

I made this patch with command-line win32 CVS utility, hope it's ok

alex_b’s picture

Status: Needs work » Needs review
alex_b’s picture

Status: Needs review » Fixed

This is committed now, thank you.

http://drupal.org/cvs?commit=367696

Status: Fixed » Closed (fixed)

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