mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
MNT Remove TODO comments
This commit is contained in:
parent
58a2d58173
commit
c1eaaaabfa
@ -32,7 +32,6 @@ ShortcodeParser::get('default')->register(
|
|||||||
[SiteTree::class, 'link_shortcode_handler']
|
[SiteTree::class, 'link_shortcode_handler']
|
||||||
);
|
);
|
||||||
|
|
||||||
// TODO Remove once we can configure CMSMenu through static, nested configuration files
|
|
||||||
CMSMenu::remove_menu_class(CMSMain::class);
|
CMSMenu::remove_menu_class(CMSMain::class);
|
||||||
CMSMenu::remove_menu_class(CMSPageEditController::class);
|
CMSMenu::remove_menu_class(CMSPageEditController::class);
|
||||||
CMSMenu::remove_menu_class(CMSPageSettingsController::class);
|
CMSMenu::remove_menu_class(CMSPageSettingsController::class);
|
||||||
|
@ -80,8 +80,6 @@ use SilverStripe\View\Requirements;
|
|||||||
* This class creates a 2-frame layout - left-tree and right-form - to sit beneath the main
|
* This class creates a 2-frame layout - left-tree and right-form - to sit beneath the main
|
||||||
* admin menu.
|
* admin menu.
|
||||||
*
|
*
|
||||||
* @todo Create some base classes to contain the generic functionality that will be replicated.
|
|
||||||
*
|
|
||||||
* @mixin LeftAndMainPageIconsExtension
|
* @mixin LeftAndMainPageIconsExtension
|
||||||
*/
|
*/
|
||||||
class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionProvider, Flushable, MemberCacheFlusher
|
class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionProvider, Flushable, MemberCacheFlusher
|
||||||
@ -702,7 +700,6 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
|
|||||||
$markingSet->markUnexpanded($record);
|
$markingSet->markUnexpanded($record);
|
||||||
|
|
||||||
// Find the next & previous nodes, for proper positioning (Sort isn't good enough - it's not a raw offset)
|
// Find the next & previous nodes, for proper positioning (Sort isn't good enough - it's not a raw offset)
|
||||||
// TODO: These methods should really be in hierarchy - for a start it assumes Sort exists
|
|
||||||
$prev = null;
|
$prev = null;
|
||||||
|
|
||||||
$className = $this->config()->get('tree_class');
|
$className = $this->config()->get('tree_class');
|
||||||
@ -1372,7 +1369,6 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO Can't merge $FormAttributes in template at the moment
|
|
||||||
$form->addExtraClass('center ' . $this->BaseCSSClasses());
|
$form->addExtraClass('center ' . $this->BaseCSSClasses());
|
||||||
// Set validation exemptions for specific actions
|
// Set validation exemptions for specific actions
|
||||||
$form->setValidationExemptActions([
|
$form->setValidationExemptActions([
|
||||||
@ -1768,7 +1764,6 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
|
|||||||
return Security::permissionFailure($this);
|
return Security::permissionFailure($this);
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO Coupling to SiteTree
|
|
||||||
$record->HasBrokenLink = 0;
|
$record->HasBrokenLink = 0;
|
||||||
$record->HasBrokenFile = 0;
|
$record->HasBrokenFile = 0;
|
||||||
|
|
||||||
|
@ -132,10 +132,6 @@ class CMSPageAddController extends CMSPageEditController
|
|||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
|
|
||||||
// TODO Re-enable search once it allows for HTML title display,
|
|
||||||
// see http://open.silverstripe.org/ticket/7455
|
|
||||||
// $parentField->setShowSearch(true);
|
|
||||||
|
|
||||||
$parentModeField->addExtraClass('parent-mode');
|
$parentModeField->addExtraClass('parent-mode');
|
||||||
|
|
||||||
// CMSMain->currentPageID() automatically sets the homepage,
|
// CMSMain->currentPageID() automatically sets the homepage,
|
||||||
|
@ -45,7 +45,6 @@ use SilverStripe\View\SSViewer;
|
|||||||
* Subclasses of ContentController are generally instantiated by ModelAsController; this will create
|
* Subclasses of ContentController are generally instantiated by ModelAsController; this will create
|
||||||
* a controller based on the URLSegment action variable, by looking in the SiteTree table.
|
* a controller based on the URLSegment action variable, by looking in the SiteTree table.
|
||||||
*
|
*
|
||||||
* @todo Can this be used for anything other than SiteTree controllers?
|
|
||||||
*/
|
*/
|
||||||
class ContentController extends Controller
|
class ContentController extends Controller
|
||||||
{
|
{
|
||||||
@ -303,8 +302,6 @@ class ContentController extends Controller
|
|||||||
/**
|
/**
|
||||||
* Returns the default log-in form.
|
* Returns the default log-in form.
|
||||||
*
|
*
|
||||||
* @todo Check if here should be returned just the default log-in form or
|
|
||||||
* all available log-in forms (also OpenID...)
|
|
||||||
* @return \SilverStripe\Security\MemberAuthenticator\MemberLoginForm
|
* @return \SilverStripe\Security\MemberAuthenticator\MemberLoginForm
|
||||||
*/
|
*/
|
||||||
public function LoginForm()
|
public function LoginForm()
|
||||||
@ -449,7 +446,6 @@ HTML;
|
|||||||
$this->httpError(410);
|
$this->httpError(410);
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO Allow this to work when allow_url_fopen=0
|
|
||||||
if (isset($_SESSION['StatsID']) && $_SESSION['StatsID']) {
|
if (isset($_SESSION['StatsID']) && $_SESSION['StatsID']) {
|
||||||
$url = 'http://ss2stat.silverstripe.com/Installation/installed?ID=' . $_SESSION['StatsID'];
|
$url = 'http://ss2stat.silverstripe.com/Installation/installed?ID=' . $_SESSION['StatsID'];
|
||||||
@file_get_contents($url ?? '');
|
@file_get_contents($url ?? '');
|
||||||
|
@ -164,7 +164,6 @@ class RedirectorPage extends Page
|
|||||||
$this->HasBrokenLink = true;
|
$this->HasBrokenLink = true;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// TODO implement checking of a remote site
|
|
||||||
$this->HasBrokenLink = false;
|
$this->HasBrokenLink = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1958,7 +1958,6 @@ class SiteTree extends DataObject implements PermissionProvider, i18nEntityProvi
|
|||||||
*/
|
*/
|
||||||
public function BackLinkTracking()
|
public function BackLinkTracking()
|
||||||
{
|
{
|
||||||
// @todo - Implement PolymorphicManyManyList to replace this
|
|
||||||
$list = ArrayList::create();
|
$list = ArrayList::create();
|
||||||
|
|
||||||
$siteTreelinkTable = SiteTreeLink::singleton()->baseTable();
|
$siteTreelinkTable = SiteTreeLink::singleton()->baseTable();
|
||||||
|
@ -46,7 +46,7 @@ class BrokenFilesReport extends Report
|
|||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
"Title" => [
|
"Title" => [
|
||||||
"title" => "Title", // todo: use NestedTitle(2)
|
"title" => "Title",
|
||||||
"link" => true,
|
"link" => true,
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
@ -39,7 +39,7 @@ class BrokenRedirectorPagesReport extends Report
|
|||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
"Title" => [
|
"Title" => [
|
||||||
"title" => "Title", // todo: use NestedTitle(2)
|
"title" => "Title",
|
||||||
"link" => true,
|
"link" => true,
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
@ -39,7 +39,7 @@ class BrokenVirtualPagesReport extends Report
|
|||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
"Title" => [
|
"Title" => [
|
||||||
"title" => "Title", // todo: use NestedTitle(2)
|
"title" => "Title",
|
||||||
"link" => true,
|
"link" => true,
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
@ -43,7 +43,7 @@ class EmptyPagesReport extends Report
|
|||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
"Title" => [
|
"Title" => [
|
||||||
"title" => "Title", // todo: use NestedTitle(2)
|
"title" => "Title",
|
||||||
"link" => true,
|
"link" => true,
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
@ -38,7 +38,7 @@ class RecentlyEditedReport extends Report
|
|||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
"Title" => [
|
"Title" => [
|
||||||
"title" => "Title", // todo: use NestedTitle(2)
|
"title" => "Title",
|
||||||
"link" => true,
|
"link" => true,
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
@ -19,10 +19,6 @@ Feature: Preview a page
|
|||||||
And the preview contains "About Us"
|
And the preview contains "About Us"
|
||||||
Then I set the CMS mode to "Edit mode"
|
Then I set the CMS mode to "Edit mode"
|
||||||
|
|
||||||
# TODO:
|
|
||||||
# - Only tests correctly on fresh database
|
|
||||||
# - We should continue testing against it after we have fixtures ready
|
|
||||||
@javascript
|
|
||||||
Scenario: I can see an updated preview when editing content
|
Scenario: I can see an updated preview when editing content
|
||||||
And I go to "/admin/pages"
|
And I go to "/admin/pages"
|
||||||
Then I should see "About Us" in the tree
|
Then I should see "About Us" in the tree
|
||||||
|
@ -12,10 +12,6 @@ use SilverStripe\SiteConfig\SiteConfig;
|
|||||||
use SilverStripe\Subsites\Extensions\SiteTreeSubsites;
|
use SilverStripe\Subsites\Extensions\SiteTreeSubsites;
|
||||||
use SilverStripe\Versioned\Versioned;
|
use SilverStripe\Versioned\Versioned;
|
||||||
|
|
||||||
/**
|
|
||||||
* @todo Test canAddChildren()
|
|
||||||
* @todo Test canCreate()
|
|
||||||
*/
|
|
||||||
class SiteTreePermissionsTest extends FunctionalTest
|
class SiteTreePermissionsTest extends FunctionalTest
|
||||||
{
|
{
|
||||||
protected static $fixture_file = "SiteTreePermissionsTest.yml";
|
protected static $fixture_file = "SiteTreePermissionsTest.yml";
|
||||||
|
@ -21,9 +21,6 @@ use SilverStripe\Versioned\Versioned;
|
|||||||
use TractorCow\Fluent\Extension\FluentSiteTreeExtension;
|
use TractorCow\Fluent\Extension\FluentSiteTreeExtension;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @todo Fix unpublished pages check in testPublishedPagesMatchedByTitle()
|
|
||||||
* @todo All tests run on unpublished pages at the moment, due to the searchform not distinguishing between them
|
|
||||||
*
|
|
||||||
* Because this manipulates the test database in severe ways, I've renamed the test to force it to run last...
|
* Because this manipulates the test database in severe ways, I've renamed the test to force it to run last...
|
||||||
*/
|
*/
|
||||||
class ZZZSearchFormTest extends FunctionalTest
|
class ZZZSearchFormTest extends FunctionalTest
|
||||||
|
Loading…
Reference in New Issue
Block a user