a similar request for Drupal 7
https://www.drupal.org/project/feeds/issues/1286298
| Comment | File | Size | Author |
|---|
Issue fork feeds-3116987
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
megachrizYes, this is a thing still to be done indeed. It would be nice to have it done before the beta phase, so I added it as a beta target.
Comment #3
govind.maloo commentedHi @MegaChriz
I have created initial patch for this functionality.
Comment #4
lizuka commented@goveind.maloo
Your patch works for me. Tested a couple of times so far with success.
Thanks.
Comment #5
andypostcould use
$this->t()instead oft()Comment #6
irinaz commentedI tried to test this patch, but I am not sure what it is actually supposed to do - is there a new option in processor settings?
Comment #7
mchamps commented@irinaz in your feed settings admin/structure/feeds/manage/FEEDSNAME
under Processor Settings there's a new option : Insert new product variations
I tested
- processors : Product & Product Variation
- fetcher : Upload file & Directory
- Parser : cvs
Works great for me! Thanks!
Comment #8
jcnventuraSetting back to needs work as per #5
Comment #9
irinaz commented@jcnventura, can you see updates from #5 in this fork https://git.drupalcode.org/issue/feeds-3116987/-/compare/8.x-3.x...31169... ? There is no additional patch for this change.
Comment #10
jcnventuraIndeed, but until you create a Merge Request, that issue fork is invisible here. Please do set it back to Needs Review when there's an MR to review.
Comment #12
irinaz commented@jcnventura, thanks for clarification, I created merge request and changed to "needs review".
Comment #13
jcnventuraThanks for the MR. The failing tests are also failing for the base module.
I think it only needs two things now:
FEEDS_prefix from the new constants.Comment #14
jcnventura@irinaz, thanks for that. The FEEDS_ prefix was still present in:
I've removed those, and I hope that the tests will pass again
Comment #15
irinaz commented@jcnventura, thanks for fixing it!
Comment #16
megachrizI added test coverage for this feature. The tests are inspired by tests for the same feature in the D7 version:
FeedsRSStoNodesTest::testSkipNewItems().Comment #17
megachrizI also flipped the constant values:
SKIP_NEWnow is0andINSERT_NEWnow is1. This is consistent with what the values were in the D7 version of Feeds:Taken from plugins/FeedsProcessor.inc from Feeds 7.x-2.x
Comment #18
jcnventuraI guess that means the title should be like this then...
Comment #19
megachriz@jcnventura
No, not really. The new feature is that you can prevent Feeds for creating new content. Creating new items and don't update existing is a feature already available in Feeds.
Comment #20
megachrizHided the patch to decrease confusion, the latest code is in an issue fork now.
Comment #22
megachrizI inspected the code one more time and only made some small aesthetic changes.
The code has been merged!