Skip to content

Commit

Permalink
Merge pull request #2824 from creative-commoners/pulls/5/remove-legac…
Browse files Browse the repository at this point in the history
…y-upgrader

MNT Remove legacy upgrader config
  • Loading branch information
Maxime Rainville authored Jan 22, 2023
2 parents 37af732 + 30685c9 commit 081eea4
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 184 deletions.
154 changes: 0 additions & 154 deletions .upgrade.yml

This file was deleted.

8 changes: 0 additions & 8 deletions _config/legacy.yml

This file was deleted.

2 changes: 0 additions & 2 deletions code/Controllers/CMSMain.php
Original file line number Diff line number Diff line change
Expand Up @@ -984,7 +984,6 @@ public function getSearchForm()
);

// Create the form
/** @skipUpgrade */
$form = Form::create(
$this,
'SearchForm',
Expand Down Expand Up @@ -1336,7 +1335,6 @@ public function getEditForm($id = null, $fields = null)
}

// Added in-line to the form, but plucked into different view by LeftAndMain.Preview.js upon load
/** @skipUpgrade */
if (($record instanceof CMSPreviewable || $record->has_extension(CMSPreviewable::class))
&& !$fields->fieldByName('SilverStripeNavigator')
) {
Expand Down
1 change: 0 additions & 1 deletion code/Controllers/ContentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@ protected function init()
}

// Check page permissions
/** @skipUpgrade */
if ($this->dataRecord && $this->URLSegment != 'Security' && !$this->dataRecord->canView()) {
Security::permissionFailure($this);
return;
Expand Down
2 changes: 0 additions & 2 deletions code/Controllers/ModelAsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ protected function beforeHandleRequest(HTTPRequest $request)
{
parent::beforeHandleRequest($request);
// If the database has not yet been created, redirect to the build page.
/** @skipUpgrade */
if (!DB::is_active() || !ClassInfo::hasTable('SiteTree')) {
$this->getResponse()->redirect(Controller::join_links(
Director::absoluteBaseURL(),
Expand All @@ -81,7 +80,6 @@ public function handleRequest(HTTPRequest $request): HTTPResponse
}

// If the database has not yet been created, redirect to the build page.
/** @skipUpgrade */
if (!DB::is_active() || !ClassInfo::hasTable('SiteTree')) {
$this->getResponse()->redirect(Controller::join_links(Director::absoluteBaseURL(), 'dev/build?returnURL=' . (isset($_GET['url']) ? urlencode($_GET['url']) : null)));
$this->popCurrent();
Expand Down
2 changes: 0 additions & 2 deletions code/Controllers/RootURLController.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ protected function beforeHandleRequest(HTTPRequest $request)

self::$is_at_root = true;

/** @skipUpgrade */
if (!DB::is_active() || !ClassInfo::hasTable('SiteTree')) {
$this->getResponse()->redirect(Controller::join_links(
Director::absoluteBaseURL(),
Expand All @@ -91,7 +90,6 @@ public function handleRequest(HTTPRequest $request): HTTPResponse
$this->beforeHandleRequest($request);

if (!$this->getResponse()->isFinished()) {
/** @skipUpgrade */
if (!DB::is_active() || !ClassInfo::hasTable('SiteTree')) {
$this->getResponse()->redirect(Director::absoluteBaseURL() . 'dev/build?returnURL=' . (isset($_GET['url']) ? urlencode($_GET['url']) : null));
return $this->getResponse();
Expand Down
1 change: 0 additions & 1 deletion code/Model/SiteTree.php
Original file line number Diff line number Diff line change
Expand Up @@ -2460,7 +2460,6 @@ public function getCMSActions()
// "readonly"/viewing version that isn't the current version of the record
/** @var SiteTree $stageRecord */
$stageRecord = Versioned::get_by_stage(static::class, Versioned::DRAFT)->byID($this->ID);
/** @skipUpgrade */
if ($stageRecord && $stageRecord->Version != $this->Version) {
$moreOptions->push(FormAction::create('email', _t('SilverStripe\\CMS\\Controllers\\CMSMain.EMAIL', 'Email')));
$moreOptions->push(FormAction::create('rollback', _t('SilverStripe\\CMS\\Controllers\\CMSMain.ROLLBACK', 'Roll back to this version')));
Expand Down
1 change: 0 additions & 1 deletion code/Search/ContentControllerSearchExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ public function SearchForm()
$actions = FieldList::create(
FormAction::create('results', _t('SilverStripe\\CMS\\Search\\SearchForm.GO', 'Go'))
);
/** @skipUpgrade */
$form = SearchForm::create($this->owner, 'SearchForm', $fields, $actions);
$form->classesToSearch(FulltextSearchable::get_searchable_classes());
return $form;
Expand Down
1 change: 0 additions & 1 deletion code/Search/SearchForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ class SearchForm extends Form
];

/**
* @skipUpgrade
* @param RequestHandler $controller
* @param string $name The name of the form (used in URL addressing)
* @param FieldList $fields Optional, defaults to a single field named "Search". Search logic needs to be customized
Expand Down
12 changes: 0 additions & 12 deletions tests/php/Search/ZZZSearchFormTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,6 @@ protected function checkFulltextSupport()
return $supports;
}

/**
* @skipUpgrade
*/
public function testSearchFormTemplateCanBeChanged()
{
if (!$this->checkFulltextSupport()) {
Expand All @@ -114,9 +111,6 @@ public function testSearchFormTemplateCanBeChanged()
);
}

/**
* @skipUpgrade
*/
public function testPublishedPagesMatchedByTitle()
{
if (!$this->checkFulltextSupport()) {
Expand Down Expand Up @@ -147,9 +141,6 @@ public function testPublishedPagesMatchedByTitle()
);
}

/**
* @skipUpgrade
*/
public function testDoubleQuotesPublishedPagesMatchedByTitle()
{
if (!$this->checkFulltextSupport()) {
Expand Down Expand Up @@ -182,9 +173,6 @@ public function testDoubleQuotesPublishedPagesMatchedByTitle()
);
}

/**
* @skipUpgrade
*/
public function testUnpublishedPagesNotIncluded()
{
if (!$this->checkFulltextSupport()) {
Expand Down

0 comments on commit 081eea4

Please sign in to comment.