-
-
Notifications
You must be signed in to change notification settings - Fork 943
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
refactor(helpers): deprecate unique method #1790
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## next #1790 +/- ##
=======================================
Coverage 99.62% 99.62%
=======================================
Files 2464 2460 -4
Lines 240210 240160 -50
Branches 1278 1281 +3
=======================================
- Hits 239313 239268 -45
+ Misses 874 869 -5
Partials 23 23
|
Could you please explain the reason why you did it like this instead of our usual deprecation workflow? |
Yes, it is because I searched for alternatives, but didn't found one yet. Secondly I want to deprecate it like this right now so no further maintain request would come in like e.g. So, until we do not have an alternative we could point to, I wont like to annoy our userbase. |
It will not warn, but just |
IMO we should only consider removing this if there is already replacement for it somewhere. |
Please suggest a different approach to show users that this function is decided in last team meeting on 2023-01-26 that we as faker maintainer will not maintain this function anymore in the future |
Other than having an open issue? I only agree to this if there is an issue blocking v8.0 to document a replacement and the removal of the exclusion customization added by this PR. |
No, this is against what we decided here: #1785 (comment) |
Yes, currently it wouldn't be a blocking issue, but if you want to merge this PR in v8.0, then it would become one. |
ok 👌 I will do so |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While I personally don't like this deprecation.
This is what the team has decided on.
The change itself looks good to me.
Co-authored-by: Eric Cheng <ericcheng9316@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I want to publicly +1 @ST-DDT's statement.
I don't like deprecating this in the knowledge that there is no real alternative to this.
Nevertheless, this was decided in a team meeting and I respect the decisions (and arguments) made there.
For future read, please have a look first into #1785 before just visiting and complaining about this PR |
For now this is just a preparation for
and marks the method
helpers.unique
as a soft-deprecationThis means for now that we wont throw a warning at runtimebut just want to indicate in IDEs like VSCode that it is not safe anymore to rely on this function as it will not be maintained by us anymore and we want to remove it in the long run.This PR should not auto-close #1785