Closed (works as designed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
migration system
Priority:
Major
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
7 May 2014 at 09:34 UTC
Updated:
29 Jul 2014 at 23:36 UTC
Jump to comment: Most recent
Comments
Comment #1
dawehnerThe last time I asked that people got angry ... I am glad that we realize that a migration is something for a developer only, not related to site building at all. I guess we could just go with a migration folder inside modules + the wonderful yaml discovery component.
Comment #2
berdirYeah agreed, it's currently very ugly to write/test migrations outside of tests.
Just like we have dynamic local_tasks and routes, we can support a similar callback as we have there or simply an alter hook or event and if someone wants to build a UI, he can define his own config entity just for user provided migrations and provide them through such a method.
Comment #3
gábor hojtsy- It is true that migrations would not include text to be translated except maybe the label of the migration but that is secondary since we don't translate update function descriptions either (@webchick's example)?
- Mike Ryan pointed out to me in email that "I will say that for me the ability to implement creating/editing/deleting migrations through the UI (in contrib) is essential" @berdir outlines a plan for satisfying this without making every migration a config entity above.
Looks like the DX of developing migrations is greatly hindered by the fact that its config and therefore works with the copy-over-on-install-to-active-store-then-lives-its-own-life approach and then requires active config store hacking in development. I posted a comparison of static YAML and config among other things from the point of view of deployment, who writes them, etc. at https://drupal.org/node/2183957#comment-8756593 which may very well be useful here.
Comment #4
penyaskitoIf I understood correctly, we want modules defining migrations in YAML files placed in a concrete folder.
E.g: migrate_drupal will have migrations/migrate_drupal.migration.d6_text_format.yml and so on.
The YamlDiscovery will detect and load those from every installed module.
From ConfigEntityBase, we need the following features:
Am I missing something?
Comment #5
benjy commentedPostponing this until we've made a clear decision over in #2183957: Provide configuration schema for Migration module
Comment #6
chx commented