2.0.0
Added
- New
plan:listcommand lists the plans available to a site. (#1901) - New
plan:setcommand sets a site's plan. (#1901) - New
Planscollection interacts with plans available to a Site. (#1901) - New
Planmodel represents a plan available to a Site or set on a site. (#1901) - New
Site::getPlan()function to retrieve a model representing the Site's present plan. (#1901) - New
Site::getPlans()function to retrieve a collection representing all available plans for the Site. (#1901) backup:listnow emits a warning when its list is empty. (#1906)branch:listnow emits a warning when its list is empty. (#1906)domain:listnow emits a warning when its list is empty. (#1906)env:listnow emits a warning when its list is empty. (#1906)plan:listnow emits a warning when its list is empty. (#1906)site:team:listnow emits a warning when its list is empty. (#1906)upstream:listnow emits a warning when its list is empty. (#1906)- A progress bar has been added to the workflow processing portion of
backup:restore. (#1907) - A progress bar has been added to the workflow processing portion of
connection:set. (#1907) - A progress bar has been added to the workflow processing portion of
env:clear-cache. (#1907) - A progress bar has been added to the workflow processing portion of
env:clone-content. (#1907) - A progress bar has been added to the workflow processing portion of
env:commit. (#1907) - A progress bar has been added to the workflow processing portion of
env:deploy. (#1907) - A progress bar has been added to the workflow processing portion of
env:wipe. (#1907) - A progress bar has been added to the workflow processing portion of
https:remove. (#1907) - A progress bar has been added to the workflow processing portion of
https:set. (#1907) - A progress bar has been added to the workflow processing portion of
import:complete. (#1907) - A progress bar has been added to the workflow processing portion of
import:database. (#1907) - A progress bar has been added to the workflow processing portion of
import:files. (#1907) - A progress bar has been added to the workflow processing portion of
import:site. (#1907) - A progress bar has been added to the workflow processing portion of
lock:disable. (#1907) - A progress bar has been added to the workflow processing portion of
lock:enable. (#1907) - A progress bar has been added to the workflow processing portion of
multidev:create. (#1907) - A progress bar has been added to the workflow processing portion of
multidev:delete. (#1907) - A progress bar has been added to the workflow processing portion of
multidev:merge-from-dev. (#1907) - A progress bar has been added to the workflow processing portion of
multidev:merge-to-dev. (#1907) - A progress bar has been added to the workflow processing portion of
new-relic:disable. (#1907) - A progress bar has been added to the workflow processing portion of
new-relic:enable. (#1907) - A progress bar has been added to the workflow processing portion of
org:people:add. (#1907) - A progress bar has been added to the workflow processing portion of
org:people:remove. (#1907) - A progress bar has been added to the workflow processing portion of
org:people:role. (#1907) - A progress bar has been added to the workflow processing portion of
org:site:remove. (#1907) - A progress bar has been added to the workflow processing portion of
owner:set. (#1907) - A progress bar has been added to the workflow processing portion of
payment-method:add. (#1907) - A progress bar has been added to the workflow processing portion of
payment-method:remove. (#1907) - A progress bar has been added to the workflow processing portion of
plan:set. (#1907) - A progress bar has been added to the workflow processing portion of
redis:disable. (#1907) - A progress bar has been added to the workflow processing portion of
redis:enable. (#1907) - A progress bar has been added to the workflow processing portion of
service-level:set. (#1907) - A progress bar has been added to the workflow processing portion of
site:create. (#1907) - A progress bar has been added to the workflow processing portion of
site:org:add. (#1907) - A progress bar has been added to the workflow processing portion of
site:org:remove. (#1907) - A progress bar has been added to the workflow processing portion of
site:team:add. (#1907) - A progress bar has been added to the workflow processing portion of
site:team:remove. (#1907) - A progress bar has been added to the workflow processing portion of
site:team:role. (#1907) - A progress bar has been added to the workflow processing portion of
site:upstream:clear-cache. (#1907) - A progress bar has been added to the workflow processing portion of
site:upstream:set. (#1907) - A progress bar has been added to the workflow processing portion of
solr:disable. (#1907) - A progress bar has been added to the workflow processing portion of
solr:enable. (#1907) - A progress bar has been added to the workflow processing portion of
upstream:updates:apply. (#1907) - New const
TERMINUS_TIMEOUTadded to extend the timeout maximum for remote commands. (#1908) - A progress bar has been added to the process portion of
remote:drush. (#1910) - A progress bar has been added to the process portion of
remote:wp. (#1910) - A progress bar has been added to the workflow processing portion of
site:delete. (#1922) - Added the TerminusConfig::formatDatetime() function in order to use the configuration to format datetimes. (#1923)
- Added the --region flag to
site:create. (#1932) - Add site region to site:info and site:list (#1933)
- Added options array parameter to
Environment::cloneDatabaseacceptingclear_cacheandupdatedb. (#1940) - Added options to
env:clone-contentacceptingccandupdatedbboth defaulting to false. (#1940) - Added
--planoption tosite:listto filter the site list by plan name. (#1944) - Added
--planoption toorg:site:listto filter the organizational site list by plan name. (#1944) - Added
Sites::filterByPlanName(string)function to filter the site models by theirplan_nameattribute. (#1944) - Added
Environment::hasUncommittedChanges()to determine whether SFTP-mode environments have changes which have not been committed. (#1948) - Added
--upstreamoption tosite:listto filter the site list by their upstream UUID. (#1946) - Added
--upstreamoption toorg:site:listto filter the organizational site list by their upstream UUID. (#1946) - Added
Sites::filterByUpstream(string)function to filter the site models by theirproduct_idattribute. (#1946) - Added
is_ownerfield to the output ofsite:team:listin order to indicate which user is the site owner. (#1949) - Added boolean
is_ownerfield to the output ofSiteUserMemberships::serialize()in order to indicate which user is the site owner. (#1949) - Added
SiteUserMemberships::isOwner()function in order to ascertain whether the user is the site's owner. (#1949) - A
--progressoption has been added toremote:drushandremote:wpto enable progress for remote commands. (#1947)
Changed
org:site:listnow displays aPlan/plan_namefield to replaceService Level/service_level. (#1901)site:infonow displays aPlan/plan_namefield to replaceService Level/service_level. (#1901)site:listnow displays aPlan/plan_namefield to replaceService Level/service_level. (#1901)- Collections' and Models'
$pretty_namestatic property has become constPRETTY_NAME. (#1906) - The empty-list notice on
org:people:listhas become a warning. (#1906) - The empty-list notice on
org:site:listhas become a warning. (#1906) - The empty-list notice on
payment-method:listhas become a warning. (#1906) - The empty-list notice on
site:listhas become a warning. (#1906) - The empty-list notice on
site:org:listhas become a warning. (#1906) - Slashes are no longer escaped when converting the body of requests to JSON before cURL. (#1909)
- Moved the
sendCommandViaSshfunction fromEnvironmenttoSSHBaseCommand. (#1910) - Moved the
useTtyfunction fromSSHBaseCommandtoLocalMachineHelper. (#1910) site:deletenow uses a workflow. (#1922)Site::delete()now returns a Workflow object. (#1922)upstream:updates:listnow orders the pending updates in chronological order. (#1852)- TerminusConfig::setSource() changed from public to now protected. (#1923)
- The
started_atdata returned byworkflow:listis now formatted using TERMINUS_DATE_FORMAT. (#1923) - The
finished_atdata returned byworkflow:listis now formatted using TERMINUS_DATE_FORMAT. (#1923) - Site::serialize() 'frozen' attribute has changed from string to boolean. (#1923)
- Site::serialize() 'created' attribute has changed to a Unix timestamp. (#1923)
- Site::serialize() 'last_frozen_at' attribute has changed to a Unix timestamp. (#1923)
- Environment::serialize() 'environment_created' attribute has changed to a Unix timestamp. (#1923)
- Environment::serialize() 'initialized' attribute has changed from string to boolean. (#1923)
- Environment::serialize() 'locked' attribute has changed from string to boolean. (#1923)
- Environment::serialize() 'onseverdev' attribute has changed from string to boolean. (#1923)
- Domain::serialize() 'deletable' attribute has changed from string to boolean. (#1923)
- Lock::serialize() 'locked' attribute has changed from string to boolean. (#1923)
Pantheon\Terminus\Friends\RowsOfFieldsTraithas becomePantheon\Terminus\Commands\StructuredDataTrait. (#1923)Backup::getUrl()has been changed toBackup::getArchiveURL(). (#1923)- Changed Environment::cloneDatabase() to accept an Environment object. (#1930)
- Changed Environment::cloneFiles() to accept an Environment object. (#1930)
- The target environment used in
env:clone-contentis now checked for initialization prior to cloning. (#1930) - Updated Plans collection URL
accounts/site-account-forwarding/{site_id}/plans. (#1936) connection:setwill emit a warning if you are attempting to switch out of SFTP mode while the environment has uncommitted changes. (#1948)connection:setwill ask for confirmation before switching out of SFTP mode with uncommitted changes as it destroys those changes. (#1948)connection:setwill emit an error if the requested mode is invalid. (#1948)Environment::changeConnectionMode(string)never returns a string, only a Workflow. (#1948)Environment::changeConnectionMode(string)will throw a TerminusException if the mode is neither "git" nor "sftp". (#1948)Environment::changeConnectionMode(string)will throw a TerminusException if the requested mode is the current one. (#1948)- The help text for
upstream:updates:statusnow litanizes the possible results. (#1951)
Deprecated
service-level:setis now deprecated. Please useplan:set. (#1901)Site::updateServiceLevel()is now deprecated. Please usePlans::set(). (#1901)
Fixed
- Fixed
Environment::importDatabase()by switching from using theimport_databaseworkflow todo_import. (#1909) - Fixed
Environment::importFiles()by switching from using theimport_filesworkflow todo_import. (#1909) - Fixed
import:databaseby switching from using theimport_databaseworkflow todo_import. (#1909) - Fixed
import:filesby switching from using theimport_filesworkflow todo_import. (#1909) - Fixed
site:upstream:setto appropriately reject attempted changes by unauthorized users. (#1913) - Fixed
site:team:removewhen removing oneself from the team an error is no longer thrown upon success. (#1914) - Fixed
TERMINUS_ENVenvironment var. (#1917) - Fixed
TERMINUS_SITEenvironment var. (#1917)
Removed
- Removed final, redundant 'Applied upstream updates to "dev"' notice from
upstream:updates:apply. (#1851) - Removed
TerminusConfig::fromArray(). Use the inheritedTerminusConfig::combine(). (#1923) - Removed
TerminusConfig::toArray(). Use the inheritedTerminusConfig::export(). (#1923) - Removed
Pantheon\Terminus\Friends\RowsOfFieldsInterface(#1923) - Removed deprecated
Workflow::wait(#1937) - Removed const
Workflow::POLLING_PERIOD. Please useTERMINUS_HTTP_RETRY_DELAY_MS(#1937) - Removed the often-inaccurate
php_version/PHP Versioninfo from the result ofsite:info. (#1952) - Removed the often-inaccurate
php_versionproperty from the hash returned by `Site::serialize(). (#1952) - Removed
Site::getPHPVersion(). It is preferable to useEnvironment::getPHPVersion()for more accurate info. (#1952)