Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MNT Remove TODO comments #2898

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion _config.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
[SiteTree::class, 'link_shortcode_handler']
);

// TODO Remove once we can configure CMSMenu through static, nested configuration files
GuySartorelli marked this conversation as resolved.
Show resolved Hide resolved
CMSMenu::remove_menu_class(CMSMain::class);
CMSMenu::remove_menu_class(CMSPageEditController::class);
CMSMenu::remove_menu_class(CMSPageSettingsController::class);
Expand Down
5 changes: 0 additions & 5 deletions code/Controllers/CMSMain.php
GuySartorelli marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@
* This class creates a 2-frame layout - left-tree and right-form - to sit beneath the main
* admin menu.
*
* @todo Create some base classes to contain the generic functionality that will be replicated.
*
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Open ticket: #2896

* @mixin LeftAndMainPageIconsExtension
*/
class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionProvider, Flushable, MemberCacheFlusher
Expand Down Expand Up @@ -702,7 +700,6 @@ public function updatetreenodes(HTTPRequest $request): HTTPResponse
$markingSet->markUnexpanded($record);

// 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;

$className = $this->config()->get('tree_class');
Expand Down Expand Up @@ -1372,7 +1369,6 @@ public function getEditForm($id = null, $fields = null)
}
}

// TODO Can't merge $FormAttributes in template at the moment
$form->addExtraClass('center ' . $this->BaseCSSClasses());
// Set validation exemptions for specific actions
$form->setValidationExemptActions([
Expand Down Expand Up @@ -1768,7 +1764,6 @@ public function save(array $data, Form $form): HTTPResponse
return Security::permissionFailure($this);
}

// TODO Coupling to SiteTree
$record->HasBrokenLink = 0;
$record->HasBrokenFile = 0;

Expand Down
4 changes: 0 additions & 4 deletions code/Controllers/CMSPageAddController.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,6 @@ public function AddForm()
]);
});

// 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');

// CMSMain->currentPageID() automatically sets the homepage,
Expand Down
4 changes: 0 additions & 4 deletions code/Controllers/ContentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
* 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.
*
* @todo Can this be used for anything other than SiteTree controllers?
GuySartorelli marked this conversation as resolved.
Show resolved Hide resolved
*/
class ContentController extends Controller
{
Expand Down Expand Up @@ -303,8 +302,6 @@ public function Menu($level)
/**
* 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...)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Open ticket: #2897

* @return \SilverStripe\Security\MemberAuthenticator\MemberLoginForm
*/
public function LoginForm()
Expand Down Expand Up @@ -449,7 +446,6 @@ public function successfullyinstalled()
$this->httpError(410);
}

// TODO Allow this to work when allow_url_fopen=0
if (isset($_SESSION['StatsID']) && $_SESSION['StatsID']) {
$url = 'http://ss2stat.silverstripe.com/Installation/installed?ID=' . $_SESSION['StatsID'];
@file_get_contents($url ?? '');
Expand Down
1 change: 0 additions & 1 deletion code/Model/RedirectorPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ public function syncLinkTracking()
$this->HasBrokenLink = true;
}
} else {
// TODO implement checking of a remote site
$this->HasBrokenLink = false;
}
}
Expand Down
1 change: 0 additions & 1 deletion code/Model/SiteTree.php
Original file line number Diff line number Diff line change
Expand Up @@ -1958,7 +1958,6 @@ public function getLiveURLSegment()
*/
public function BackLinkTracking()
{
// @todo - Implement PolymorphicManyManyList to replace this
$list = ArrayList::create();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Open ticket: #2895


$siteTreelinkTable = SiteTreeLink::singleton()->baseTable();
Expand Down
2 changes: 1 addition & 1 deletion code/Reports/BrokenFilesReport.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function columns()
{
return [
"Title" => [
"title" => "Title", // todo: use NestedTitle(2)
"title" => "Title",
"link" => true,
],
];
Expand Down
2 changes: 1 addition & 1 deletion code/Reports/BrokenRedirectorPagesReport.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function columns()
{
return [
"Title" => [
"title" => "Title", // todo: use NestedTitle(2)
"title" => "Title",
"link" => true,
],
];
Expand Down
2 changes: 1 addition & 1 deletion code/Reports/BrokenVirtualPagesReport.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function columns()
{
return [
"Title" => [
"title" => "Title", // todo: use NestedTitle(2)
"title" => "Title",
"link" => true,
],
];
Expand Down
2 changes: 1 addition & 1 deletion code/Reports/EmptyPagesReport.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function columns()
{
return [
"Title" => [
"title" => "Title", // todo: use NestedTitle(2)
"title" => "Title",
"link" => true,
],
];
Expand Down
2 changes: 1 addition & 1 deletion code/Reports/RecentlyEditedReport.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function columns()
{
return [
"Title" => [
"title" => "Title", // todo: use NestedTitle(2)
"title" => "Title",
"link" => true,
],
];
Expand Down
4 changes: 0 additions & 4 deletions tests/behat/features/preview-a-page.feature
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ Feature: Preview a page
And the preview contains "About Us"
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
And I go to "/admin/pages"
Then I should see "About Us" in the tree
Expand Down
4 changes: 0 additions & 4 deletions tests/php/Model/SiteTreePermissionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@
use SilverStripe\Subsites\Extensions\SiteTreeSubsites;
use SilverStripe\Versioned\Versioned;

/**
* @todo Test canAddChildren()
* @todo Test canCreate()
*/
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New ticket: #2893

class SiteTreePermissionsTest extends FunctionalTest
{
protected static $fixture_file = "SiteTreePermissionsTest.yml";
Expand Down
3 changes: 0 additions & 3 deletions tests/php/Search/ZZZSearchFormTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@
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...
GuySartorelli marked this conversation as resolved.
Show resolved Hide resolved
*/
class ZZZSearchFormTest extends FunctionalTest
Expand Down