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

DOC Replace Extension subclasses #566

Conversation

emteknetnz
Copy link
Member

@emteknetnz emteknetnz commented Aug 20, 2024

Issue silverstripe/silverstripe-framework#11050

Note that re the changelog - this was also mentioned in the #563, and we don't normally repeat that in the 6.0.0 changelog, however Deprecation::withNoReplacement() was used in that CMS 5 PRs which will prevent the deprecation notices from showing in CMS 5, so I think we should at least mention this in the CMS 6 changelog

@emteknetnz emteknetnz force-pushed the pulls/6/replace-extension-subclasses branch from 539ee35 to 5f137c9 Compare August 20, 2024 04:31
@emteknetnz emteknetnz changed the title Pulls/6/replace extension subclasses DOC Replace Extension subclasses Aug 20, 2024
@emteknetnz emteknetnz force-pushed the pulls/6/replace-extension-subclasses branch from 5f137c9 to 5b3991e Compare August 20, 2024 04:31
@emteknetnz emteknetnz marked this pull request as ready for review August 25, 2024 22:52
@emteknetnz emteknetnz force-pushed the pulls/6/replace-extension-subclasses branch 2 times, most recently from 69af9c6 to c82b2af Compare August 28, 2024 02:17
@@ -338,6 +338,7 @@ Injector::inst()->load([
- [`DataObject::write()`](api:SilverStripe\ORM\DataObject::write()) has a new boolean `$skipValidation` parameter. This can be useful for scenarios where you want to automatically create a new record with no data initially without restricting how developers can set up their validation rules.
- [`FieldList`](api:SilverStripe\Forms\FieldList) is now strongly typed. Methods that previously allowed any iterable variables to be passed, namely [`FieldList::addFieldsToTab()`](api:SilverStripe\Forms\FieldList::addFieldsToTab()) and [`FieldList::removeFieldsFromTab()`](api:SilverStripe\Forms\FieldList::removeFieldsFromTab()), now require an array to be passed instead.
- [`BaseElement::getDescription()`](api:DNADesign\Elemental\Models\BaseElement::getDescription()) has been removed. If you had implemented this method in your custom elemental blocks, either set the [`description`](api:DNADesign\Elemental\Models\BaseElement->description) configuration property or override the [`getTypeNice()`](api:DNADesign\Elemental\Models\BaseElement::getTypeNice()) method.
- [`DataExtension`](api:SilverStripe\ORM\DataExtension), [`SiteTreeExtension`](api:SilverStripe\CMS\Model\SiteTreeExtension), and [`LeftAndMainExtension`](api:SilverStripe\Admin\LeftAndMainExtension) have been removed. If you subclass any of these classes, you must now subclass [`Extension`](api:SilverStripe\Core\Extension) instead.
Copy link
Member

Choose a reason for hiding this comment

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

I would almost suggest this gets its own heading, since these are exceptionally high traffic classes. But it's probably fine here like this.

Copy link
Member

Choose a reason for hiding this comment

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

Also, I just realised that the API links won't work for these - don't bother fixing that right now, there's a bunch of similar links that will stop working in this changelog. We can resolve that when we do the first alpha by giving it a once-over.

@emteknetnz emteknetnz force-pushed the pulls/6/replace-extension-subclasses branch from c82b2af to 334a9af Compare August 29, 2024 00:17
Copy link
Member

@GuySartorelli GuySartorelli left a comment

Choose a reason for hiding this comment

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

LGTM

@GuySartorelli GuySartorelli merged commit bbe3a9b into silverstripe:6 Aug 29, 2024
3 checks passed
@GuySartorelli GuySartorelli deleted the pulls/6/replace-extension-subclasses branch August 29, 2024 00:20
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