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
{{ message }}
Repository navigation
Create Strategy for Pre/Post Hook Functionality #183
@rfay@beeradb@tannerjfco Given the larger implications, I wanted to at least draw your attention to this ticket because it will likely a lot of input from one or more of you before this can get to an actionable state. Nothing to do at this moment, but something we'll likely discuss at tomorrow's planning meeting.
IMHO, a proper solution will require addressing the following areas:
Jurisdiction: What portion of ddev OR the ddev plugins are responsible for the managing the metadata?
Storage: Where is the metadata and business logic stored?
Structure: What pattern should we adopt for the metadata and business logic to make this repeatable and extendable?
Workflow: How does an end-user install, update, and otherwise interact with this information.
And beyond a philosophical discussion, we should provide mock examples to help illustrate the points listed above.
If we can agree on the 4 items above and the necessity of examples, I would like to put forth a proposal to help push this conversation along.
Jurisdiction
Given that it’s been years since I’ve developed in an OO language like C++/Java and given that I’m not familiar with how Golang provides extensibility, I may be making an incorrect assumption or two here. In an ideal scenario, each plugin would be responsible for extending the base ddev functionality as well as managing its own metadata required to power these additions. For example, if we had a plugin for drud hosting and wanted to extend the default ddev import-db command, the plugin might provide default keys in the YML file to target the remote server information.
business logic: I don’t have a preference here, but I’m assuming that if we rely on each plugin to control the metadata that it makes sense for it to also control the business logic. In essence, if we had a “drud hosting” plugin, we would require this plugin to extend the default ddev commands and/or provide its own commands.
Structure
This is where things might get a little more controversial. Namespacing is going to be important, and this might add what appears to be unnecessary levels of hierarchy for simple scenarios. My vote might be something akin to the following:
Things get trick here and we need to work through the user journeys. Once a user has gone through the default ddev config step, we now have a key piece of information (the application type). At that point we can either prolong the ddev config process by asking questions from each plugin related to that site type. Example: a pantheon plugin could have questions specific to a wordpress site versus a Drupal site. Alternatively, we could not require ddev config to handle that and simply export a series of sane defaults and then prompt the user to visit the config file to modify. I prefer the questions through a wizard, but that could be a heavy lift.
Activity
rickmanelius commentedon Apr 25, 2017
@rfay @beeradb @tannerjfco Given the larger implications, I wanted to at least draw your attention to this ticket because it will likely a lot of input from one or more of you before this can get to an actionable state. Nothing to do at this moment, but something we'll likely discuss at tomorrow's planning meeting.
rickmanelius commentedon May 4, 2017
This is an extension of the work previously done by @beeradb here https://gist.github.com/beeradb/e67995bed62f8d9b823c2bc89caac6ea#pull-in-data-from-an-external-source.
IMHO, a proper solution will require addressing the following areas:
And beyond a philosophical discussion, we should provide mock examples to help illustrate the points listed above.
If we can agree on the 4 items above and the necessity of examples, I would like to put forth a proposal to help push this conversation along.
Jurisdiction
Given that it’s been years since I’ve developed in an OO language like C++/Java and given that I’m not familiar with how Golang provides extensibility, I may be making an incorrect assumption or two here. In an ideal scenario, each plugin would be responsible for extending the base
ddevfunctionality as well as managing its own metadata required to power these additions. For example, if we had a plugin for drud hosting and wanted to extend the defaultddev import-dbcommand, the plugin might provide default keys in the YML file to target the remote server information.Storage
ddevcommands and/or provide its own commands.Structure
This is where things might get a little more controversial. Namespacing is going to be important, and this might add what appears to be unnecessary levels of hierarchy for simple scenarios. My vote might be something akin to the following:
An example:
Workflow
Things get trick here and we need to work through the user journeys. Once a user has gone through the default
ddev configstep, we now have a key piece of information (the application type). At that point we can either prolong the ddev config process by asking questions from each plugin related to that site type. Example: a pantheon plugin could have questions specific to a wordpress site versus a Drupal site. Alternatively, we could not requireddev configto handle that and simply export a series of sane defaults and then prompt the user to visit the config file to modify. I prefer the questions through a wizard, but that could be a heavy lift.rickmanelius commentedon May 4, 2017
Updated summary. I now consider this actionable from the perspective of driving this to a completion point.
16 remaining items
rickmanelius commentedon Jul 7, 2017
Functionality is merged. Great job, @tannerjfco!