8000 deprecated consistency by a14n · Pull Request #75903 · flutter/flutter · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

deprecated consistency #75903

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

Merged
merged 2 commits into from
Feb 17, 2021
Merged

Conversation

a14n
Copy link
Contributor
@a14n a14n commented Feb 12, 2021

Follow up on #75813 with an (unpublished) lint to catch more places where deprecations are not consistently applied.

/cc @Piinks

@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat.

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@flutter-dashboard flutter-dashboard bot added f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels. labels Feb 12, 2021
@google-cla google-cla bot added the cla: yes label Feb 12, 2021
@a14n a14n requested a review from Piinks February 12, 2021 08:57
@@ -195,6 +195,10 @@ class PluginRegistry extends Registrar {
/// Creates a [Registrar].
///
/// The argument is ignored.
@Deprecated(
'Use Registrar instead. '
'This feature was deprecated after v1.24.0-7.0.pre.'
Copy link
Contributor
@Abhishek01039 Abhishek01039 Feb 12, 2021

Choose a reason for hiding this comment

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

Hello @a14n,
I think here should be v1.26.0-18.0.pre.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I used the same deprecation notice as the one on the class. They should be consistent.

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for your explanation.

Copy link
Contributor

Choose a reason for hiding this comment

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

Since this is not being removed soon (like typematcher), we should reset the deprecation clock like we did for those that were missing in #75813.
Typematcher has already been announced on multiple channels over the last few months as being on the way out so folks are aware. :)

@@ -258,23 +258,6 @@ class GlobalObjectKey<T extends State<StatefulWidget>> extends GlobalKey<T> {
}
}

/// This class is a work-around for the "is" operator not accepting a variable value as its right operand.
Copy link
Contributor

Choose a reason for hiding this comment

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

This is not ready for removal. I just tried to get this out in #73751 but it was reverted (#75734) due to internal test failures. I'm working on migrating those after which point this can be removed.

@@ -195,6 +195,10 @@ class PluginRegistry extends Registrar {
/// Creates a [Registrar].
///
/// The argument is ignored.
@Deprecated(
'Use Registrar instead. '
'This feature was deprecated after v1.24.0-7.0.pre.'
Copy link
Contributor

Choose a reason for hiding this comment

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

Since this is not being removed soon (like typematcher), we should reset the deprecation clock like we did for those that were missing in #75813.
Typematcher has already been announced on multiple channels over the last few months as being on the way out so folks are aware. :)

@a14n
Copy link
Contributor Author
a14n commented Feb 17, 2021

PTAL

Copy link
Contributor
@Piinks Piinks left a comment

Choose a reason for hiding this comment

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

Flutter_LGTM
Thank you! 🥳

@Piinks Piinks added c: contributor-productivity Team-specific productivity, code health, technical debt. waiting for tree to go green labels Feb 17, 2021
@fluttergithubbot fluttergithubbot merged commit b54d72c into flutter:master Feb 17, 2021
@a14n a14n deleted the deprecated_consistency branch February 17, 2021 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: contributor-productivity Team-specific productivity, code health, technical debt. f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0