Closed (fixed)
Project:
Simplenews
Version:
8.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
19 Sep 2016 at 09:54 UTC
Updated:
12 Jan 2024 at 20:27 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
hussainwebComment #4
hussainwebI forgot a file earlier and there are some more tweaks.
Comment #5
hussainwebComment #7
hussainwebThe error occurs when the migrate module is not enabled. Fixing it...
Comment #8
hussainwebJust some cleanup. I lost the interdiff in creating the patch but I don't think anyone has reviewed this yet.
Comment #10
hussainwebRandom failure
Comment #11
hussainwebI faced an issue with subscribers field not being set correctly. I am attaching the fix.
Comment #13
hussainwebRandom failure again.
Comment #14
hussainwebRerolling...
Comment #15
berdirMissing docs. Can you improve that a bit, then I can commit this.
Comment #16
hussainwebHere's some documentation.
Comment #17
jonathanshawRTBC per #15
Comment #18
jcnventuraYes, indeed. Seems pointless to provide a migration for 2.x when there are 90 (yes nine-zero) sites using that version, while you've got >46000 sites using 1.x, according to https://www.drupal.org/project/usage/simplenews
This should be committed.
Comment #20
berdir@jcnventura: That tone seems unnecessarily aggressive. The 7.x-2.x migration was written by us because we needed it. Migration patches are tricky, I can either commit something blindly or have to spend a lot of time to test something myself. It would have been sufficient to just comment that you are successfully using this. Also haven't been doing anything with simplenews in the last year and didn't have any time to maintain it.
Beside, half of the documentation that I requested in #15 was still missing, I added that myself now.
Committed.
Comment #21
jcnventuraThanks @berdir. Sorry if the tone sounded aggressive.
And yes, I was suspecting that a 2.x site needed the migration. And I totally get it that you don't have time to maintain everything.
Comment #23
dom. commentedHi there !
I am using this migration path and got
Column not found: 1054 Unknown column "newsletter_id" in "on clause"
regarding
LEFT OUTER JOIN ...._migrate_simplenews_newsletter map ON newsletter_id = map.sourceid1
This particular LEFT OUTER JOIN is created by SqlBase class and does take the getIds() method keys for field name.
It seems to appear that because newsletter_id is actuallly an alias, this does not work.
For this reason, I add to add the ignore_map: TRUE option to source plugin definition.
Patch attached with this proposition change.
Comment #24
rclemings commentedAm I missing something or does this NOT migrate subscriptions?
I'm able to migrate newsletters, issues, and subscribers, but not the corresponding subscriptions. All of the boxes on /admin/people/simplenews/edit/NNN are unchecked.
Probably not related, but I did have to apply this RTBC core patch to get it to work, possibly because of some orphaned newsletter tids in the source:
https://www.drupal.org/project/drupal/issues/3365895