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

Remove deprecated code #311

Open
2 tasks done
GuySartorelli opened this issue Sep 10, 2024 · 0 comments
Open
2 tasks done

Remove deprecated code #311

GuySartorelli opened this issue Sep 10, 2024 · 0 comments

Comments

@GuySartorelli
Copy link
Member

GuySartorelli commented Sep 10, 2024

There are a bunch of deprecations across the kitchen sink. We should remove that deprecated code.

Notes

  • Not all deprecated code necessarily has a phpdoc with @deprecated annotation
  • It's possible we added Deprecation::notice() but forgot to add a phpdoc - in that case make sure to add the phpdoc in CMS 5.

Acceptance Criteria

  • All deprecated code is removed
  • Comments with the word "deprecated" or "deprecation" are checked

PRs

I'm going to do a few rounds of this - the first round is things that are just no-brainers.

The second (and potentially subsequent) round is for anything that seems a bit more complicated, so that complex things can be reasoned about and considered and checked without having a spam of unrelated stuff in the same PRs.

Simple stuff

CMS 5

Some of the things being removed weren't correctly deprecated, but should still be removed. These PRs add the correct deprecations.

After merging, reassign to Guy to merge-up to CMS 6

CMS 6

Kitchen sink CI run

vendor-plugin deprecations

Note the supported modules json already (incorrectly) listed the 3 major release line as being the CMS 6 equivalents so that doesn't need to be updated.

Kitchen sink CI run

i18n PRs

ArrayList case sensitivity

Kitchen Sink CI run

SearchContext $limit typing

CMS 5

After merging, reassign to Guy to merge up to CMS 6.

CMS 6

Kitchen Sink CI run

DataObject::get() $join param

CMS 5

After merging, reassign to Guy to merge up to CMS 6.

CMS 6

Kitchen Sink CI run

TransactionManager

getCMSValidator

CMS 5

After merging, reassign to Guy to merge up to CMS 6.

CMS 6

Kitchen sink CI run

SearchableDropdownField setEmptyString()

"... for backwards compatibility"

I found various things which were kept or added purely for keeping BC with older versions. Some of them I just ignored because the effort required to sort out what would need to happen to remove the BC code wasn't worthwhile. But there are some where the BC code is just pure obvious tech debt and easy to remove - so those are dealt with here.

CMS 5

After merging, reassign to Guy to merge up to CMS 6.

CMS 6

Kitchen sink CI run

Last set of changes

CMS 5

Note: The CMS 5 PR doesn't affect the CMS 6 PRs at all since the deprecated code isn't in framework anymore.

CMS 6

@GuySartorelli GuySartorelli added this to the Silverstripe CMS 6.0 milestone Sep 10, 2024
@GuySartorelli GuySartorelli self-assigned this Dec 16, 2024
This was referenced Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants