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

API Move various classes to more appropriate namespaces #11370

Merged

Conversation

GuySartorelli
Copy link
Member

@GuySartorelli GuySartorelli commented Sep 12, 2024

There are a bunch of classes in the ORM namespace that simply don't belong there, since they have nothing to do with storing or fetching data in the database.

In preparation for moving the template layer, I was already renaming SilverStripe\View\ViewableData to SilverStripe\Model\ModelData. It seems like a good time to clean up these other (mostly model-related) classes as well.

old FQCN new FQCN
SilverStripe\ORM\ArrayLib SilverStripe\Core\ArrayLib
SilverStripe\ORM\ValidationException SilverStripe\Core\Validation\ValidationException
SilverStripe\ORM\ValidationResult SilverStripe\Core\Validation\ValidationResult
SilverStripe\View\ArrayData SilverStripe\Model\ArrayData
SilverStripe\ORM\ArrayList SilverStripe\Model\List\ArrayList
SilverStripe\ORM\Filterable SilverStripe\Model\List\Filterable
SilverStripe\ORM\GroupedList SilverStripe\Model\List\GroupedList
SilverStripe\ORM\Limitable SilverStripe\Model\List\Limitable
SilverStripe\ORM\ListDecorator SilverStripe\Model\List\ListDecorator
SilverStripe\ORM\Map SilverStripe\Model\List\Map
SilverStripe\ORM\PaginatedList SilverStripe\Model\List\PaginatedList
SilverStripe\ORM\SS_List SilverStripe\Model\List\SS_List
SilverStripe\ORM\Sortable SilverStripe\Model\List\Sortable
SilverStripe\View\ViewableData SilverStripe\Model\ModelData
SilverStripe\View\ViewableData_Customised SilverStripe\Model\ModelDataCustomised
SilverStripe\View\ViewableData_Debugger SilverStripe\Model\ModelDataDebugger

Related test classes were also updated but aren't listed in the table.

Issue

@GuySartorelli GuySartorelli marked this pull request as draft September 12, 2024 00:26
@GuySartorelli GuySartorelli force-pushed the pulls/6/renaming-classes branch 4 times, most recently from b228945 to bd0068b Compare September 17, 2024 00:06
This was referenced Sep 17, 2024
@GuySartorelli GuySartorelli force-pushed the pulls/6/renaming-classes branch 3 times, most recently from 603e9f1 to d568740 Compare September 18, 2024 07:21
Also rename ViewableData to ModelData ahead of the template layer
lift-and-shift
@GuySartorelli GuySartorelli marked this pull request as ready for review September 18, 2024 09:45
@emteknetnz emteknetnz merged commit e2e3231 into silverstripe:6 Sep 23, 2024
5 of 13 checks passed
@emteknetnz emteknetnz deleted the pulls/6/renaming-classes branch September 23, 2024 02:31
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