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
Is this a BUG REPORT or FEATURE REQUEST? (choose one):
Feature Request
ddev (at least w/ the legacy plugin) requires that you specify an environment for a site in order to interact with it. This environment was intended to reflect what hosting environment you are importing from (staging, production, theoretically others). I believe this concept should be completely removed for the following reasons:
It doesn't apply to local file plugin, as you are not importing from an external environment.
ddev itself represents an environment (local development), and the idea of managing other environments in this local environment is confusing.
The feature was confusing to newmedia devs
The only valid use case I can think of for it is if you wanted to provision the same site, at the same time, with different checkouts. If we were to do a working directory based approach this scenario would easily be addressed by the user having another checkout to spin up from.
Reacted by Randy Fay, Brad Bowman and Tanner J Ferguson
It does apply to local because people may want to have different versions of the same app to work on different branch at the same time ie. dev one and review the other.
Same as above the environment or whatever we want to call it makes it a unique local version of the site in question. If I want to have multiple running for some reason I need a unique identifier.
If the feature was confusing to newmedia devs then they have no clue because the environment situation came from the system they were using already.
I think this applies to any site and it applies to the local plugin just as easily. I don't think we should remove but reword to make it a more applicable word then environment.
my last bullet defines that use case and how we could satisfy it w/ a working directory approach. e.g. you have checkout for sitename, spin up, make another checkout for sitename2, cd to it and spin up.
same as above
if it confused the one group that should have understood it, i think it speaks even more to the potential for confusion outside of that system
short of requiring the developer to manually define environment in a config file or something, I don't really see how you make this apply to an arbitrary site whose original source environment is in no way determinable
As a web developer using drud legacy, I myself found it confusing. There's simply no reason for me to be considering environment in any sense for the vast majority of work I'm performing. There's no reason I should think about it in typing a command, or seeing it in an url, or anything. If I ever had the one applicable use case, being able to just spin another copy of the checkout would satisfy it.
And again, ddev itself is an environment. If i spin up drudio production on my local machine, am I changing the production site? To us the answer is obviously no, but it's all too easy to see how confusion could arise. There is but one environment, it is the local environment, and that is what ddev is managing for me. I need not think of others.
First of all you had plenty of opportunity to register your issue about the drud tool long before you joined the team and I don't remember that ever coming up. I know a lot of devs would forget to specify env but not much more than that.
The environment value applied to both legacy and drud. It made perfect sense because environment is a known quantity in both systems. In legacy it determined which branch to deploy. In DRUD it determined which deployment of an app you meant.
There was a default for environment and a workon command that would set the default site and env so the user didn't have to type either.
Ddev is not an environment. Ddev is a tool for creating local dev environments. If you have a repo and you need two or more versions of it locally for any reason you will have to supply a unique identifier. You could append things to the site name like "site1", "site2", "sitemaster" to make it unique or you could pass them both in as arguments. Like I said before maybe we change the wording to be something other than "environment" but I think it fills a role right now that isn't necessarily replaced by anything with your proposal.
It's totally easy to understand why you accept this @frodopwns - but when you look around and find that others like @tannerjfco and I were baffled by it (and found it pretty rigid), I encourage you to accept that while it "makes sense" to you, it might not make sense to others. And really it's "others" we're after.
It's also worth noting that we got a lot of feedback that could easily be construed as related to this. Prime examples were from Ben and other 1Fee folks that words like "production" and "staging" in the site URLs were very confusing to them, and lead to some developers (particularly inexperienced ones) mistakingly thinking they were actually editing staging or production sites.
Lets try to stay on topic guys. Think about why I have said I don't want to remove this value but am willing to rename it. Then tell me why it is not an issue or how you can solve it better.
@rfay You should stop to consider if I might be right. How much of what you saw here when you started were you not baffled by?
@beeradb ben and 1fee were all new....the drupal devs were the ones used to the legacy system...who trained the newbies?
This premise is preposterous. Tanner knew the legacy system better than any of us. He especially should know the environment value was inherited from the legacy system and chef. We didn't change it. We only implemented it in docker instead of vagrant. So how he was confused is confusing to me.
As I have said over and over. We need a unique value in order to keep multiple versions of the same site running. We can conflate both values into one and assume the user implements their own unique names or we can accept a unique id plus the name. I'm open to other options but rather than suggest them we are going on about nonsense.
I'm not trying to be snarky, but I'm not sure I follow your argument beyond what would normally be controlled via git branching. AFAIK every site in Pantheon is controlled via a different branch, so you can easily check out a feature-1 branch, commit and push to that, and then move on to to work on feature-2. This doesn't feel like something that necessitates a life for the idea of environment (as applied to local dev at least) beyond pulling in file/db assets.
On the contrary, it feels like we should assume devs will use normal git workflows and move away from the initially checked out branch, after which the idea of a local environment which maps to dev/staging/production gets severed (outside of saying where the initial import came from, anyway)
@beeradb except the system is built for concurrent sites not changing existing ones. If you use the local plugin and decide you want to cd into your repo and git checkout that is fine by me. My plan for any 3rd party plugins is to provide a fully automated setup which means we will be git cloning for any new site and git pulling for existing ones.
My goal is always to be able to come to agreement on issues like this based on discussing the technical merits and/or user experience of the issue at hand. Until now I've avoided interjecting myself into architectural decisions because I'd much prefer an environment where the entire team contributes perspective and works together to find solutions to technical challenges. However, when consensus can't be reached and team members are unwilling to compromise then it falls to me, as the team lead, to make those decisions. There is no one else on the team that is empowered to break these deadlocks or act unilaterally.
In this case, several team members and end users have expressed that the way this is working now is contributing to confusion. Sometimes complexity or confusion cannot be avoided, but it actively does us harm to pretend it doesn't exist.
I'd love for us to focus this conversation on finding solutions to the issues raised here that still achieve our goals (multiple versions of a site running locally, dealing with remote archives) while removing complexity and avoiding developer confusion to the extent possible. If that's not something we're able to do, then I'll make a call as needed.
"In this case, several team members and end users have expressed that the way this is working now is contributing to confusion. Sometimes complexity or confusion cannot be avoided, but it actively does us harm to pretend it doesn't exist."
Link me to the list of complaints from our last end user meeting. If its there its there.
I went ahead and took the time to put together a stab at the architecture and workflow for what we've been talking about on several issues. Parts of this discussion have taken place here, some in #8, and of course #27#26 and #33 all pertain to this at various levels. Currently, we're just talking about isolated pieces, but not addressing workflow as a whole.
In an attempt to address that, I took the time to consolidate input and feedback from those discussions and put together a document outlining my interpretation of what the ddev workflow should be.
I attempted to be as detailed as possible and include sample commands, but as such I'm sure there are mistakes. I'm hoping (to start) we can look past those and talk about the workflow as a whole, before diving in and focusing too much on the minutia.
All of these commands assume that no prior configuration files exist. I strongly advocate documenting any configuration formats we develop so that configs can be hand generated and prompting can avoided by advanced users. I also feel strongly that we should avoid flags and arguments to the extent possible, in an attempt to keep commands as simple and straightforward as we can.
Brace yourself, this is long.
Creating a fresh ddev site without a local import
Check out the git repository and config a ddev site.
$ cd~/Projects
$ git clone <git-url>/drud-d8.git
$ cd drud-d8
$ ddev config
Name (drud-d8):
Type [drupal7, drupal8, wordpress]: drupal8
Docroot location: src
Your ddev configuration has been written to .ddev/config.yaml
Inspect contents of ddev.yaml and ddev-compose.yaml
$ pwd
/Users/username/Projects/drud-d8
$ # Renamed to config.yaml to avoid stuttering.
$ cat .ddev/config.yaml
---
version: 1
name: drud-d8
type: drupal8
docroot: src
webimage: drud/nginx-php-fpm7:0.1.0
dbimage: drud/mysql-local:5.6-0.1.0
$ # ddev-compose would use env vars to populate container names, as to preserve any user customizations.
$ cat .ddev/ddev-compose.yaml
version: '2'
services:
drud-d8-db:
container_name: drud-d8-db
image: $DRUD_DBIMAGE
volumes:
- "./data:/db"
restart: always
environment:
MYSQL_DATABASE: data
MYSQL_ROOT_PASSWORD: root
ports:
- "3306"
drud-d8-web:
container_name: drud-d8-web
image: $DRUD_WEBIMAGE
volumes:
- "./src:/var/www/html"
restart: always
depends_on:
- drud-d8-db
links:
- drud-d8-db:db
ports:
- "80"
- "8025"
working_dir: "/var/www/html/docroot"
environment:
# I'm pretty sure we don't actually need DEPLOY_NAME here, but I've left it in case existing containers may rely on it.
- DEPLOY_NAME=local
- VIRTUAL_HOST=drud-d8.ddev.local
networks:
default:
external:
name: ddev_default
Reconfigure an existing site
$ pwd
/Users/username/Projects/drud-d8
$ ddev config
Existing configuration detected. Using defaults from /Users/username/Projects/drud-d8/.ddev/config.yaml
Name (drud-d8):
Type [drupal7, drupal8, wordpress] (drupal8):
Docroot location (src): src
Your ddev configuration has been written to .ddev/config.yaml
Deal with bad configuration file.
$ pwd
/Users/username/Projects/drud-d8
$ ddev config
Existing configuration exists at /Users/username/Projects/drud-d8/.ddev/config.yaml but cannot be read. Please delete the file and re-run "ddev config".
Start Site
$ ddev start
Successfully added drud-d8
Your application can be reached at: http://drud-d8.ddev.local
You can run "ddev describe" to get additional information about your site, such as database credentials.
List Sites
$ ddev list
1 site found.
NAME DOCROOT TYPE URL STATUS
drud-d8 /Users/username/Projects/drud-d8/src drupal8 http://drud-d8.ddev.local running
Describe View
Global describe with sitename argument
$ pwd
/Users/username
$ ddev describe drud-d8
NAME DOCROOT TYPE URL STATUS
drud-d8 /Users/username/Projects/drud-d8/src drupal8 http://drud-d8.ddev.local running
MySQL Credentials
-----------------
Username: root
Password: root
Database name: data
Other Services
--------------
MailHog: http://drud-d8.ddev.local:8025
PHPMyAdmin: http://drud-d8.ddev.local:8026
From within the working directory
$ pwd
/Users/username/Projects/drud-d8
$ ddev describe
NAME DOCROOT TYPE URL STATUS
drud-d8 /Users/username/Projects/drud-d8/src drupal8 http://drud-d8.ddev.local running
MySQL Credentials
-----------------
Username: root
Password: root
Database name: data
Other Services
--------------
MailHog: http://drud-d8.ddev.local:8025
PHPMyAdmin: http://drud-d8.ddev.local:8026
Pull in data from an external source
Generate Import config
$ pwd
/Users/username/Projects/drud-d8
$ ddev import
No import configuration found, would you like to create one? (y/N): y
# This list gets defined by plugins
Import Source (local, pantheon, s3): pantheon
# Everything below here is defined by a plugin.
You have the following sites, please choose one to import from.
Selection NAME ID
1 techingyouout test
2 techingyouout dev
3 techingyouout live
Please selectthe import source [1-3]: 2
Please selectthe import destination directory [data]: data
Import config written to ddev.yaml
Would you like to import now? (y/N): y
Getting Resources......
Importing Data.........
Import successful. Your application can be reached at: http://drud-d8.ddev.local
Thoughts: this could be used between feature branches, or just periodically as needed by developers.
$ pwd
/Users/username/Projects/drud-d8/src/modules
$ ddev import
SOURCE NAME ID
pantheon techingyouout dev
Local data and file assets will be overwritten if you choose to continue. Perform import now (y/N)? y
Getting Resources......
Importing Data.........
Import successful. Your application can be reached at: http://drud-d8.ddev.local
The original intention of this ticket was to address the proposal to remove the "environment" concept. Ultimately, this surfaced many other fundamental issues and conversations regarding workflow, our roadmap, etc. These will likely get addressed or split off into different tickets, but we have a consensus/path forward on the "environment" discussion.
Ultimately, the concepts of "environments" helped address two needs:
The ability to run multiple instances of the same application.
The ability to specify the source files/code/db of the application.
Issues surrounding 1.
Unfortunately, the word "environments" was a bit restrictive (e.g. it's possible to pull a DB from a "staging" site while files from a "production" site) and confusing (e.g. end-users sometimes confused these labels with actually working on remote files on those environments). At a minimum, we need to use a different word (e.g. "identifier", "label", "instance") in order to still allow for users to run multiple copies. We could use a sane default (e.g. specifying nothing results in a "default" identifier or none at all) and simply using a naming convention of "project-identifier" when used. Actual implementation TBD and will be beyond version 0.5.
Issues surrounding 2.
When jumping between multiple projects, it's helpful to know where the code + db + files came from. And in the case of a PaaS like Pantheon, you can specify those components independently. Therefore, it makes sense to not necessarily call it an "environment" but to at least log the time and location of the last pull. Note that this only matters when tied into a provider plugin that allows you to pull these assets, because up until that time these syncs are done manually and there is no way to "log" the source. This would be a "beyond 1.0" feature.
Summarizing:
A. We're going to remove the requirement of an "environment" for local dev (0.1 - 0.2)
B. We'll need an optional identifier (actual name TBD) for specifying multiple versions (pre 1.0).
C. We'll need a means to log and surface the code/db/file sources both from the CLI and GUI versions (post 1.0).
A second issue that was surfaced in this ticket, but that needs a better home for milestone 0.2 (proposed #33). We created a flow diagram that specified a generic strategy for adding the archive by hand VERSUS a single button install that would likely need assumptions from a provider plugin (i.e. a one button install to Pantheon). In this scenario, we decided to simplify and require the user to git clone the repo and then specify a files and database location in order to fully initialize an application.
Later, we can use this generic/more flexible approach and create simplifications/assumptions that can make this a faster process. But for the purposes of the 0.2 milestone, we've agreed to adopt this approach.
Activity
beeradb commentedon Feb 27, 2017
Strongly relates to #27 and #2 in that it could likely be fixed alongside those two tickets.
frodopwns commentedon Feb 27, 2017
I disagree.
It does apply to local because people may want to have different versions of the same app to work on different branch at the same time ie. dev one and review the other.
Same as above the environment or whatever we want to call it makes it a unique local version of the site in question. If I want to have multiple running for some reason I need a unique identifier.
If the feature was confusing to newmedia devs then they have no clue because the environment situation came from the system they were using already.
I think this applies to any site and it applies to the local plugin just as easily. I don't think we should remove but reword to make it a more applicable word then environment.
tannerjfco commentedon Feb 27, 2017
my last bullet defines that use case and how we could satisfy it w/ a working directory approach. e.g. you have checkout for
sitename, spin up, make another checkout forsitename2, cd to it and spin up.same as above
if it confused the one group that should have understood it, i think it speaks even more to the potential for confusion outside of that system
short of requiring the developer to manually define environment in a config file or something, I don't really see how you make this apply to an arbitrary site whose original source environment is in no way determinable
frodopwns commentedon Feb 27, 2017
I suppose if we make the name be the unique value and then use a location flag then people could add as many as they want
frodopwns commentedon Feb 27, 2017
I reject any claim that something so simple could be confusing. Sounds like a training problem.
frodopwns commentedon Feb 27, 2017
@tannerjfco the drud hosting plugin uses environment too.
frodopwns commentedon Feb 27, 2017
It is important that the plugins share most of the same inputs or things will start to break down.
tannerjfco commentedon Feb 27, 2017
As a web developer using drud legacy, I myself found it confusing. There's simply no reason for me to be considering environment in any sense for the vast majority of work I'm performing. There's no reason I should think about it in typing a command, or seeing it in an url, or anything. If I ever had the one applicable use case, being able to just spin another copy of the checkout would satisfy it.
And again, ddev itself is an environment. If i spin up drudio production on my local machine, am I changing the production site? To us the answer is obviously no, but it's all too easy to see how confusion could arise. There is but one environment, it is the local environment, and that is what ddev is managing for me. I need not think of others.
frodopwns commentedon Feb 27, 2017
First of all you had plenty of opportunity to register your issue about the drud tool long before you joined the team and I don't remember that ever coming up. I know a lot of devs would forget to specify env but not much more than that.
The environment value applied to both legacy and drud. It made perfect sense because environment is a known quantity in both systems. In legacy it determined which branch to deploy. In DRUD it determined which deployment of an app you meant.
There was a default for environment and a
workoncommand that would set the default site and env so the user didn't have to type either.Ddev is not an environment. Ddev is a tool for creating local dev environments. If you have a repo and you need two or more versions of it locally for any reason you will have to supply a unique identifier. You could append things to the site name like "site1", "site2", "sitemaster" to make it unique or you could pass them both in as arguments. Like I said before maybe we change the wording to be something other than "environment" but I think it fills a role right now that isn't necessarily replaced by anything with your proposal.
rfay commentedon Feb 27, 2017
It seems this can relate to the link @beeradb shared this morning, https://betta.io/blog/2017/02/23/understanding-developers/ -
It's totally easy to understand why you accept this @frodopwns - but when you look around and find that others like @tannerjfco and I were baffled by it (and found it pretty rigid), I encourage you to accept that while it "makes sense" to you, it might not make sense to others. And really it's "others" we're after.
beeradb commentedon Feb 27, 2017
It's also worth noting that we got a lot of feedback that could easily be construed as related to this. Prime examples were from Ben and other 1Fee folks that words like "production" and "staging" in the site URLs were very confusing to them, and lead to some developers (particularly inexperienced ones) mistakingly thinking they were actually editing staging or production sites.
frodopwns commentedon Feb 27, 2017
Lets try to stay on topic guys. Think about why I have said I don't want to remove this value but am willing to rename it. Then tell me why it is not an issue or how you can solve it better.
@rfay You should stop to consider if I might be right. How much of what you saw here when you started were you not baffled by?
@beeradb ben and 1fee were all new....the drupal devs were the ones used to the legacy system...who trained the newbies?
This premise is preposterous. Tanner knew the legacy system better than any of us. He especially should know the environment value was inherited from the legacy system and chef. We didn't change it. We only implemented it in docker instead of vagrant. So how he was confused is confusing to me.
As I have said over and over. We need a unique value in order to keep multiple versions of the same site running. We can conflate both values into one and assume the user implements their own unique names or we can accept a unique id plus the name. I'm open to other options but rather than suggest them we are going on about nonsense.
rfay commentedon Feb 27, 2017
Time to think in terms of "What can we communicate successfully to our prospective users" instead of "What is right and what is wrong". Thanks.
frodopwns commentedon Feb 27, 2017
Success is usually gained through solutions that are right rather than wrong.
9 remaining items
beeradb commentedon Feb 27, 2017
I'm not trying to be snarky, but I'm not sure I follow your argument beyond what would normally be controlled via git branching. AFAIK every site in Pantheon is controlled via a different branch, so you can easily check out a
feature-1branch, commit and push to that, and then move on to to work onfeature-2. This doesn't feel like something that necessitates a life for the idea of environment (as applied to local dev at least) beyond pulling in file/db assets.On the contrary, it feels like we should assume devs will use normal git workflows and move away from the initially checked out branch, after which the idea of a local environment which maps to dev/staging/production gets severed (outside of saying where the initial import came from, anyway)
frodopwns commentedon Feb 27, 2017
@beeradb except the system is built for concurrent sites not changing existing ones. If you use the local plugin and decide you want to cd into your repo and git checkout that is fine by me. My plan for any 3rd party plugins is to provide a fully automated setup which means we will be git cloning for any new site and git pulling for existing ones.
beeradb commentedon Feb 28, 2017
My goal is always to be able to come to agreement on issues like this based on discussing the technical merits and/or user experience of the issue at hand. Until now I've avoided interjecting myself into architectural decisions because I'd much prefer an environment where the entire team contributes perspective and works together to find solutions to technical challenges. However, when consensus can't be reached and team members are unwilling to compromise then it falls to me, as the team lead, to make those decisions. There is no one else on the team that is empowered to break these deadlocks or act unilaterally.
In this case, several team members and end users have expressed that the way this is working now is contributing to confusion. Sometimes complexity or confusion cannot be avoided, but it actively does us harm to pretend it doesn't exist.
I'd love for us to focus this conversation on finding solutions to the issues raised here that still achieve our goals (multiple versions of a site running locally, dealing with remote archives) while removing complexity and avoiding developer confusion to the extent possible. If that's not something we're able to do, then I'll make a call as needed.
frodopwns commentedon Feb 28, 2017
"In this case, several team members and end users have expressed that the way this is working now is contributing to confusion. Sometimes complexity or confusion cannot be avoided, but it actively does us harm to pretend it doesn't exist."
Link me to the list of complaints from our last end user meeting. If its there its there.
beeradb commentedon Feb 28, 2017
https://newmediadenver.atlassian.net/browse/DRUD-444 would be the main one.
Anecdotally I've also heard other developers on the 1fee/templatefit side say they found the hostnames confusing.
frodopwns commentedon Feb 28, 2017
Have anything else? That complaint is about hostnames which I don't think applies to this conversation.
frodopwns commentedon Mar 1, 2017
Here is my current thinking as I'm prototyping this:
ddev addsrcanddatasrcanddatain the DRUD_WORKSPACEsrcanddatainto the DRUD_WORKSPACE/siteIDddev add siteNamesrcanddatasrcanddatainto the DRUD_WORKSPACE/siteIDddev add siteName deployIDsrcanddatasrcanddatainto the DRUD_WORKSPACE/siteID+deplyIDddev add siteName --src=/path/to/src --data=/path/to/datasrcanddatainto the DRUD_WORKSPACE/siteIDddev add siteName --in-placesrcanddatasrcanddatafrom current dirbeeradb commentedon Mar 1, 2017
I went ahead and took the time to put together a stab at the architecture and workflow for what we've been talking about on several issues. Parts of this discussion have taken place here, some in #8, and of course #27 #26 and #33 all pertain to this at various levels. Currently, we're just talking about isolated pieces, but not addressing workflow as a whole.
In an attempt to address that, I took the time to consolidate input and feedback from those discussions and put together a document outlining my interpretation of what the ddev workflow should be.
I attempted to be as detailed as possible and include sample commands, but as such I'm sure there are mistakes. I'm hoping (to start) we can look past those and talk about the workflow as a whole, before diving in and focusing too much on the minutia.
For the import related stuff, I took a stab at what a pantheon platform could potentially look like, and used the example output from https://github.com/drud/general/issues/71 to inform some of the commands. I'd also be happy to take a stab and what a local importer might look like for comparison if it would be helpful.
All of these commands assume that no prior configuration files exist. I strongly advocate documenting any configuration formats we develop so that configs can be hand generated and prompting can avoided by advanced users. I also feel strongly that we should avoid flags and arguments to the extent possible, in an attempt to keep commands as simple and straightforward as we can.
Brace yourself, this is long.
Creating a fresh ddev site without a local import
Check out the git repository and config a ddev site.
Inspect contents of ddev.yaml and ddev-compose.yaml
Reconfigure an existing site
$ pwd /Users/username/Projects/drud-d8 $ ddev config Existing configuration detected. Using defaults from /Users/username/Projects/drud-d8/.ddev/config.yaml Name (drud-d8): Type [drupal7, drupal8, wordpress] (drupal8): Docroot location (src): src Your ddev configuration has been written to .ddev/config.yamlDeal with bad configuration file.
Start Site
$ ddev start Successfully added drud-d8 Your application can be reached at: http://drud-d8.ddev.local You can run "ddev describe" to get additional information about your site, such as database credentials.List Sites
Describe View
Global describe with sitename argument
$ pwd /Users/username $ ddev describe drud-d8 NAME DOCROOT TYPE URL STATUS drud-d8 /Users/username/Projects/drud-d8/src drupal8 http://drud-d8.ddev.local running MySQL Credentials ----------------- Username: root Password: root Database name: data Other Services -------------- MailHog: http://drud-d8.ddev.local:8025 PHPMyAdmin: http://drud-d8.ddev.local:8026From within the working directory
$ pwd /Users/username/Projects/drud-d8 $ ddev describe NAME DOCROOT TYPE URL STATUS drud-d8 /Users/username/Projects/drud-d8/src drupal8 http://drud-d8.ddev.local running MySQL Credentials ----------------- Username: root Password: root Database name: data Other Services -------------- MailHog: http://drud-d8.ddev.local:8025 PHPMyAdmin: http://drud-d8.ddev.local:8026Pull in data from an external source
Generate Import config
Inspect import config
Import again
Thoughts: this could be used between feature branches, or just periodically as needed by developers.
frodopwns commentedon Mar 1, 2017
I was under the impression we were going to make it work basically the way it does now and release it. You are talking about other types of changes.
TopherGopher commentedon Mar 6, 2017
Consider adding a ddev ps which would wrap
docker psrickmanelius commentedon Mar 6, 2017
The original intention of this ticket was to address the proposal to remove the "environment" concept. Ultimately, this surfaced many other fundamental issues and conversations regarding workflow, our roadmap, etc. These will likely get addressed or split off into different tickets, but we have a consensus/path forward on the "environment" discussion.
Ultimately, the concepts of "environments" helped address two needs:
Issues surrounding 1.
Unfortunately, the word "environments" was a bit restrictive (e.g. it's possible to pull a DB from a "staging" site while files from a "production" site) and confusing (e.g. end-users sometimes confused these labels with actually working on remote files on those environments). At a minimum, we need to use a different word (e.g. "identifier", "label", "instance") in order to still allow for users to run multiple copies. We could use a sane default (e.g. specifying nothing results in a "default" identifier or none at all) and simply using a naming convention of "project-identifier" when used. Actual implementation TBD and will be beyond version 0.5.
Issues surrounding 2.
When jumping between multiple projects, it's helpful to know where the code + db + files came from. And in the case of a PaaS like Pantheon, you can specify those components independently. Therefore, it makes sense to not necessarily call it an "environment" but to at least log the time and location of the last pull. Note that this only matters when tied into a provider plugin that allows you to pull these assets, because up until that time these syncs are done manually and there is no way to "log" the source. This would be a "beyond 1.0" feature.
Summarizing:
A. We're going to remove the requirement of an "environment" for local dev (0.1 - 0.2)
B. We'll need an optional identifier (actual name TBD) for specifying multiple versions (pre 1.0).
C. We'll need a means to log and surface the code/db/file sources both from the CLI and GUI versions (post 1.0).
We'll need to split up new tickets for each.
rickmanelius commentedon Mar 6, 2017
A second issue that was surfaced in this ticket, but that needs a better home for milestone 0.2 (proposed #33). We created a flow diagram that specified a generic strategy for adding the archive by hand VERSUS a single button install that would likely need assumptions from a provider plugin (i.e. a one button install to Pantheon). In this scenario, we decided to simplify and require the user to git clone the repo and then specify a files and database location in order to fully initialize an application.
Later, we can use this generic/more flexible approach and create simplifications/assumptions that can make this a faster process. But for the purposes of the 0.2 milestone, we've agreed to adopt this approach.
beeradb commentedon Mar 10, 2017
I suggest this be closed, as at this point I think the issue has run it's course and tickets have been broken out as appropriate. cc @rickmanelius
rfay commentedon Mar 10, 2017
Environment concept is now officially deprecated.