You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Related but not required for 0.2 is the desire to have some shortcut mechanism for taking a standard drush archive import (generally files + db + code is a standard format that someone could unpack and get up and running quickly). This type of ability to spin up rapidly will be available when we have provider plugins like pantheon and DRUD hosting, but is harder with the local plugin given that we have fewer constraints and therefore cannot guarantee that consistency.
As per #28 (comment). We would like to ensure that the logic behind "import" is updated and clear from the perspective of end-users knowing the files and database will be destroyed on an import while the codebase will be left intact. This way an end-user can test reverting to a database state while keeping the code in the current working state. We will probably need to provide both options, but need to be thoughtful in how we proceed.
Piggy backing off of and clarifying a previous comment (#33 (comment)), we were originaly focusing on importing directly from a drush archive (Drupal) or a WordPress zip file. As per a different conversation (digging it up), we want to keep things more agnostic and simplified during this initial release and then rely on provider plugins (e.g. Pantheon, newmedia, DRUD, drush, etc) to automate the extraction and placement into designated areas.
The newer intention is for individuals to:
Download/unzip whatever archive they wish to use.
Clone down the repo and perform a ddev config
Place the database and files assets in the appropriate location
Run a ddev import
Later on we can revisit and pull directly from an archive, but those will be moved to separate issues later down the roadmap.
We don't yet have the names of the configurations [...]
For what is outlined here, I had not envisioned configurations. This assumes everything is local, and as such, it's probably not something we would want to add (and potentially version) in a .ddev/config.yaml. I do think we'll probably want some config items when we get into platform imports, such as pantheon, as those might have value in sharing among developers/versioning.
I still believe we need to properly address post-import functionality [...]
Agreed. We'll need to address it in the long-term. I do think there's room for a discussion about whether that's explicitly handled by us, or exposed via some extensibility mechanism (dcfg like functionality). I would prefer to do an MVP without, and then decide on and add that functionality, if possible.
If an archive is provided, what are we extracting out of it? [...]
For files, I had assumed the archive root. For SQL, any .sql files in the root of the archive. It's possible we'll need to do more, but as the .sql and folder import options are available, if your archive is in the 'wrong' format, it's a fairly easy workaround.
The ability to define destination by user [...]
Almost certainly needed down the road, but we don't currently support that. We'll also need to address it in nginx and other places before we can fully support non-standard public file paths.
I've updated the original description in this post to contain done-criteria and testing strategy. Unless there are objections to the current approach or scope, I believe this is now actionable.
The updated OP works for me. My only hesitation is the redundant import command, but maybe it's required for future visions of importing complete drush/pantheon tarballs. In that case I'd suggest waiting until we add those, but I'm ok either way. This looks like something I'd be happy to use. Not sure I'm "normal", but sure looks fine to me.
Activity
rickmanelius commentedon Mar 6, 2017
Related but not required for 0.2 is the desire to have some shortcut mechanism for taking a standard drush archive import (generally files + db + code is a standard format that someone could unpack and get up and running quickly). This type of ability to spin up rapidly will be available when we have provider plugins like pantheon and DRUD hosting, but is harder with the local plugin given that we have fewer constraints and therefore cannot guarantee that consistency.
rickmanelius commentedon Mar 17, 2017
As per #28 (comment). We would like to ensure that the logic behind "import" is updated and clear from the perspective of end-users knowing the files and database will be destroyed on an import while the codebase will be left intact. This way an end-user can test reverting to a database state while keeping the code in the current working state. We will probably need to provide both options, but need to be thoughtful in how we proceed.
rickmanelius commentedon Mar 21, 2017
@cyberswat Before I update this issue any further. I'm curious if the removal of labels on this issue was intentional?
cyberswat commentedon Mar 21, 2017
They needed to be removed and recreated for consistency. Some issues will simply need them added back.
rickmanelius commentedon Mar 21, 2017
Piggy backing off of and clarifying a previous comment (#33 (comment)), we were originaly focusing on importing directly from a drush archive (Drupal) or a WordPress zip file. As per a different conversation (digging it up), we want to keep things more agnostic and simplified during this initial release and then rely on provider plugins (e.g. Pantheon, newmedia, DRUD, drush, etc) to automate the extraction and placement into designated areas.
The newer intention is for individuals to:
ddev configddev importLater on we can revisit and pull directly from an archive, but those will be moved to separate issues later down the roadmap.
29 remaining items
beeradb commentedon Mar 30, 2017
Responding to some feedback.
@rickmanelius, first:
For what is outlined here, I had not envisioned configurations. This assumes everything is local, and as such, it's probably not something we would want to add (and potentially version) in a
.ddev/config.yaml. I do think we'll probably want some config items when we get into platform imports, such as pantheon, as those might have value in sharing among developers/versioning.Agreed. We'll need to address it in the long-term. I do think there's room for a discussion about whether that's explicitly handled by us, or exposed via some extensibility mechanism (
dcfglike functionality). I would prefer to do an MVP without, and then decide on and add that functionality, if possible.And now @tannerjfco
For files, I had assumed the archive root. For SQL, any .sql files in the root of the archive. It's possible we'll need to do more, but as the .sql and folder import options are available, if your archive is in the 'wrong' format, it's a fairly easy workaround.
Almost certainly needed down the road, but we don't currently support that. We'll also need to address it in nginx and other places before we can fully support non-standard public file paths.
beeradb commentedon Mar 30, 2017
I've updated the original description in this post to contain done-criteria and testing strategy. Unless there are objections to the current approach or scope, I believe this is now actionable.
rfay commentedon Mar 30, 2017
The updated OP works for me. My only hesitation is the redundant import command, but maybe it's required for future visions of importing complete drush/pantheon tarballs. In that case I'd suggest waiting until we add those, but I'm ok either way. This looks like something I'd be happy to use. Not sure I'm "normal", but sure looks fine to me.
beeradb commentedon Mar 30, 2017
Updated to remove
importfor now. We'll tackle it when we deal with platforms, as @rfay suggested. This is now actionable.beeradb commentedon Apr 19, 2017
This can be closed out now that #123 is in! congrats!