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 Update deprecations #10525

Merged
merged 8 commits into from
Oct 13, 2022

Conversation

emteknetnz
Copy link
Member

@emteknetnz emteknetnz commented Oct 6, 2022

Blocked by #10530

Issue #10500

There are 3 commits in this (will be only 2 after another PR is merged):

@emteknetnz emteknetnz force-pushed the pulls/4/deprecated branch 7 times, most recently from 5a505ae to 0c8782a Compare October 7, 2022 02:57
@emteknetnz emteknetnz marked this pull request as ready for review October 7, 2022 02:57
@emteknetnz emteknetnz changed the title [WIP] API Update deprecations API Update deprecations Oct 7, 2022
@emteknetnz emteknetnz force-pushed the pulls/4/deprecated branch 4 times, most recently from 56b9647 to 9f89241 Compare October 10, 2022 01:01
@GuySartorelli
Copy link
Member

Why did you do #10530 as a separate PR? And why then include it in this PR? That's confusing.

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.

There's at least one non-standard deprecation that hasn't been touched: Module::getCIConfig() has the wrong version number, is missing a deprecation message in the phpdoc, and has an unhelpful message in the notice.

There are also bound to be cases which I missed where the phpdoc is missing the deprecation message. It needs to be in the notice and in the phpdoc.

I'm guessing based on what I have seen that you just ran some code writer over this and didn't look too closely at the output?

src/Control/Controller.php Outdated Show resolved Hide resolved
src/Control/CookieJar.php Show resolved Hide resolved
src/Control/Email/SwiftMailer.php Show resolved Hide resolved
src/Control/Director.php Outdated Show resolved Hide resolved
src/Control/Email/SwiftMailer.php Show resolved Hide resolved
src/View/Shortcodes/EmbedShortcodeProvider.php Outdated Show resolved Hide resolved
src/View/Shortcodes/EmbedShortcodeProvider.php Outdated Show resolved Hide resolved
src/View/ViewableData.php Outdated Show resolved Hide resolved
src/i18n/Messages/Symfony/FlushInvalidatedResource.php Outdated Show resolved Hide resolved
src/i18n/Messages/Symfony/FlushInvalidatedResource.php Outdated Show resolved Hide resolved
@emteknetnz emteknetnz force-pushed the pulls/4/deprecated branch 5 times, most recently from cf46483 to eeaeed8 Compare October 12, 2022 03:53
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.

There are some cases where the "Use [something else] instead" message is missing the word "instead" - but that doesn't materially change the message so asking you to change that would be nitpicking at this point - I'm just pointing it out to satisfy my brain but no change is required for that.

src/Control/Controller.php Outdated Show resolved Hide resolved
src/Control/RequestProcessor.php Show resolved Hide resolved
src/Dev/FunctionalTest.php Outdated Show resolved Hide resolved
src/Dev/FunctionalTest.php Outdated Show resolved Hide resolved
src/Dev/TestKernel.php Show resolved Hide resolved
src/Dev/CsvBulkLoader.php Show resolved Hide resolved
src/Dev/CsvBulkLoader.php Show resolved Hide resolved
src/Dev/CsvBulkLoader.php Show resolved Hide resolved
src/ORM/FieldType/DBClassName.php Outdated Show resolved Hide resolved
src/Security/Group.php Outdated Show resolved Hide resolved
@GuySartorelli GuySartorelli merged commit d6b3f4d into silverstripe:4 Oct 13, 2022
@GuySartorelli GuySartorelli deleted the pulls/4/deprecated branch October 13, 2022 02:25
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