Skip to content

Upgrade silverstripe-gridfieldlimititems to SS4#6

Open
MasseyIsaako wants to merge 7 commits intopatricknelson:masterfrom
silverstripe-superchargers:upgrade/ss4
Open

Upgrade silverstripe-gridfieldlimititems to SS4#6
MasseyIsaako wants to merge 7 commits intopatricknelson:masterfrom
silverstripe-superchargers:upgrade/ss4

Conversation

@MasseyIsaako
Copy link

…r as SS_Log is deprecated.

@MasseyIsaako MasseyIsaako changed the title WIP: Upgrade silverstripe-gridfieldlimititems to SS4 Upgrade silverstripe-gridfieldlimititems to SS4 Oct 16, 2018
$this->onAfterManipulate(function(GridField $grid, SS_List $list){
if ($list->count() == $this->getMaxItems()) {
// var_dump($grid->getConfig());
// die();
Copy link

Choose a reason for hiding this comment

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

Should probably tidy up and remove these lines :-)

Copy link
Author

Choose a reason for hiding this comment

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

Done!

Copy link
Owner

@patricknelson patricknelson left a comment

Choose a reason for hiding this comment

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

Hi, thank you so much for the work on this! I've yet to update my own instance of SS to v4 (on roadmap, long story). It's for this reason that there's been such a severe delay in following up on this since I haven't taken time to setup a separate instance of SS to test these changes, however, I'll do what I can to try and stay on top of this.

@@ -1,2 +1 @@
<?php
// Noop.
Copy link
Owner

Choose a reason for hiding this comment

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

This is here on purpose; the point is to reinforce the fact that this file is here and intentionally blank (hence the "noop", short for "no operation").

}
});
}

Copy link
Owner

Choose a reason for hiding this comment

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

I believe there's a separate pull request to address this feature. For cleanliness and organization, and since this is open source, could you update this particular PR branch to not include the enforceLimit feature? Particularly since there could be divergence between the two PR's (haven't checked yet).

Copy link
Owner

Choose a reason for hiding this comment

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

PR #8

@patricknelson
Copy link
Owner

patricknelson commented Nov 27, 2019

Also, documenting here for my reference 😄

TODO: Separate code into two major branches:

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.

3 participants