Skip to content

Upgrade silverstripe-gridfieldlimititems to SS4 with enforced limit#8

Open
MasseyIsaako wants to merge 8 commits intopatricknelson:masterfrom
silverstripe-superchargers:upgrade/ss4-with-enforced-limit
Open

Upgrade silverstripe-gridfieldlimititems to SS4 with enforced limit#8
MasseyIsaako wants to merge 8 commits intopatricknelson:masterfrom
silverstripe-superchargers:upgrade/ss4-with-enforced-limit

Conversation

@MasseyIsaako
Copy link

No description provided.

@MasseyIsaako MasseyIsaako force-pushed the upgrade/ss4-with-enforced-limit branch from ee65708 to e708f67 Compare October 16, 2018 02:58
@MasseyIsaako MasseyIsaako changed the title WIP: Upgrade to SS4 with enforced limit Upgrade to SS4 with enforced limit Oct 16, 2018
@MasseyIsaako MasseyIsaako changed the title Upgrade to SS4 with enforced limit Upgrade silverstripe-gridfieldlimititems to SS4 with enforced limit Oct 16, 2018
@@ -1,12 +1,25 @@
<?php

namespace MBIE\GridFieldLimitRelationEditor;
Copy link

Choose a reason for hiding this comment

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

The SS4 docs suggest a namespace root of vendor\package so I'd suggest we change the namespace on this file to something like PatrickNelson\GridFieldLimitItems'.

Copy link
Author

Choose a reason for hiding this comment

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

Done!

@MasseyIsaako MasseyIsaako force-pushed the upgrade/ss4-with-enforced-limit branch from e708f67 to 718b806 Compare October 17, 2018 00:04
// Not compatible with paginator.
if ($gridField->getConfig()->getComponentByType('GridFieldPaginator')) {
if ($gridField->getConfig()->getComponentByType(GridFieldPaginator::class)) {
$this->debug('GridFieldLimitItems is not compatible with GridFieldPaginator.');
Copy link

Choose a reason for hiding this comment

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

As discussed, we'll need to handle these debug messages - using LoggingInterface instead of SS_Log

Copy link
Author

Choose a reason for hiding this comment

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

Done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants