Skip to content

2.0.0

Compare
Choose a tag to compare
@TeslaDethray TeslaDethray released this 20 Feb 19:32
4469aba

Added

  • New plan:list command lists the plans available to a site. (#1901)
  • New plan:set command sets a site's plan. (#1901)
  • New Plans collection interacts with plans available to a Site. (#1901)
  • New Plan model 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:list now emits a warning when its list is empty. (#1906)
  • branch:list now emits a warning when its list is empty. (#1906)
  • domain:list now emits a warning when its list is empty. (#1906)
  • env:list now emits a warning when its list is empty. (#1906)
  • plan:list now emits a warning when its list is empty. (#1906)
  • site:team:list now emits a warning when its list is empty. (#1906)
  • upstream:list now 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_TIMEOUT added 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::cloneDatabase accepting clear_cache and updatedb. (#1940)
  • Added options to env:clone-content accepting cc and updatedb both defaulting to false. (#1940)
  • Added --plan option to site:list to filter the site list by plan name. (#1944)
  • Added --plan option to org:site:list to filter the organizational site list by plan name. (#1944)
  • Added Sites::filterByPlanName(string) function to filter the site models by their plan_name attribute. (#1944)
  • Added Environment::hasUncommittedChanges() to determine whether SFTP-mode environments have changes which have not been committed. (#1948)
  • Added --upstream option to site:list to filter the site list by their upstream UUID. (#1946)
  • Added --upstream option to org:site:list to filter the organizational site list by their upstream UUID. (#1946)
  • Added Sites::filterByUpstream(string) function to filter the site models by their product_id attribute. (#1946)
  • Added is_owner field to the output of site:team:list in order to indicate which user is the site owner. (#1949)
  • Added boolean is_owner field to the output of SiteUserMemberships::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 --progress option has been added to remote:drush and remote:wp to enable progress for remote commands. (#1947)

Changed

  • org:site:list now displays a Plan/plan_name field to replace Service Level/service_level. (#1901)
  • site:info now displays a Plan/plan_name field to replace Service Level/service_level. (#1901)
  • site:list now displays a Plan/plan_name field to replace Service Level/service_level. (#1901)
  • Collections' and Models' $pretty_name static property has become const PRETTY_NAME. (#1906)
  • The empty-list notice on org:people:list has become a warning. (#1906)
  • The empty-list notice on org:site:list has become a warning. (#1906)
  • The empty-list notice on payment-method:list has become a warning. (#1906)
  • The empty-list notice on site:list has become a warning. (#1906)
  • The empty-list notice on site:org:list has become a warning. (#1906)
  • Slashes are no longer escaped when converting the body of requests to JSON before cURL. (#1909)
  • Moved the sendCommandViaSsh function from Environment to SSHBaseCommand. (#1910)
  • Moved the useTty function from SSHBaseCommand to LocalMachineHelper. (#1910)
  • site:delete now uses a workflow. (#1922)
  • Site::delete() now returns a Workflow object. (#1922)
  • upstream:updates:list now orders the pending updates in chronological order. (#1852)
  • TerminusConfig::setSource() changed from public to now protected. (#1923)
  • The started_at data returned by workflow:list is now formatted using TERMINUS_DATE_FORMAT. (#1923)
  • The finished_at data returned by workflow:list is 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\RowsOfFieldsTrait has become Pantheon\Terminus\Commands\StructuredDataTrait. (#1923)
  • Backup::getUrl() has been changed to Backup::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-content is now checked for initialization prior to cloning. (#1930)
  • Updated Plans collection URL accounts/site-account-forwarding/{site_id}/plans. (#1936)
  • connection:set will emit a warning if you are attempting to switch out of SFTP mode while the environment has uncommitted changes. (#1948)
  • connection:set will ask for confirmation before switching out of SFTP mode with uncommitted changes as it destroys those changes. (#1948)
  • connection:set will 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:status now litanizes the possible results. (#1951)

Deprecated

  • service-level:set is now deprecated. Please use plan:set. (#1901)
  • Site::updateServiceLevel() is now deprecated. Please use Plans::set(). (#1901)

Fixed

  • Fixed Environment::importDatabase() by switching from using the import_database workflow to do_import. (#1909)
  • Fixed Environment::importFiles() by switching from using the import_files workflow to do_import. (#1909)
  • Fixed import:database by switching from using the import_database workflow to do_import. (#1909)
  • Fixed import:files by switching from using the import_files workflow to do_import. (#1909)
  • Fixed site:upstream:set to appropriately reject attempted changes by unauthorized users. (#1913)
  • Fixed site:team:remove when removing oneself from the team an error is no longer thrown upon success. (#1914)
  • Fixed TERMINUS_ENV environment var. (#1917)
  • Fixed TERMINUS_SITE environment var. (#1917)

Removed

  • Removed final, redundant 'Applied upstream updates to "dev"' notice from upstream:updates:apply. (#1851)
  • Removed TerminusConfig::fromArray(). Use the inherited TerminusConfig::combine(). (#1923)
  • Removed TerminusConfig::toArray(). Use the inherited TerminusConfig::export(). (#1923)
  • Removed Pantheon\Terminus\Friends\RowsOfFieldsInterface (#1923)
  • Removed deprecated Workflow::wait (#1937)
  • Removed const Workflow::POLLING_PERIOD. Please use TERMINUS_HTTP_RETRY_DELAY_MS (#1937)
  • Removed the often-inaccurate php_version/PHP Version info from the result of site:info. (#1952)
  • Removed the often-inaccurate php_version property from the hash returned by `Site::serialize(). (#1952)
  • Removed Site::getPHPVersion(). It is preferable to use Environment::getPHPVersion() for more accurate info. (#1952)