Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
migration system
Priority:
Major
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
10 Aug 2015 at 19:38 UTC
Updated:
1 Sep 2015 at 03:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #3
phenaproximaD'oh.
Comment #4
mikeryanComment #5
phenaproximaThis is blocking some important stuff.
Comment #6
webchickThis sounded a lot scarier than it actually was. :) Turns out the change is very simple and is really just a follow-up from the builder patch that was accidentally omitted.
I inquired about why we need this in the first place, since the wrapping code here is very trivial. Adam pointed out it's because this essentially acts as an "alter" hook to let us pretend that profile fields are real fields.
Works for me.
Committed and pushed to 8.0.x. Thanks!
Comment #8
phenaproximaWhoops! We (read: I, phenaproxima) screwed up a line that broke Migrate Upgrade. This is the fix.
Comment #9
webchickIs there any way to add test coverage for that?
Comment #10
Anonymous (not verified) commentedThis patch fails if you do not have profile installed in D6...
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'd6.profile_fields' doesn't exist: SELECT pf.fid AS fid, pf.title AS title, pf.name AS name, pf.explanation AS explanation, pf.category AS category, pf.page AS page, pf.type AS type, pf.weight AS weight, pf.required AS required, pf.register AS register, pf.visibility AS visibility, pf.autocomplete AS autocomplete, pf.options AS options FROM {profile_fields} pf; Array ( )
Comment #11
mikeryanWe need to check the requirements (specifically source_provider=profile).
Comment #12
mikeryanMigrate critical, since it totally breaks migrate-upgrade.
Comment #13
phenaproximaAdded a comment mentioning the need to pass database connections to Migrate SQL sources, rather than letting them create connections out of thin air.
Comment #15
webchickOk, let's get this in. Tests are being deferred to #2552791: MigrateSqlSource should use dependency injection to unblock Migrate Upgrade. It's not straight-forward.
Committed and pushed to 8.0.x. Thanks!