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 support for positional arguments (deprecated on v2) #2576

Merged
merged 1 commit into from
Oct 5, 2022

Conversation

mauromorales
Copy link
Contributor

@mauromorales mauromorales commented Oct 4, 2022

Summary

This PR removes the deprecation warnings added on #1698 plus any newer ones that were added after that.

Fixes #2573

@stefannibrasil
Copy link
Contributor

hi @mauromorales thank you for your contribution! Could you mind pushing an empty commit to trigger the CI? For some reason, your commit didn't trigger any actions.

Copy link
Contributor

@stefannibrasil stefannibrasil left a comment

Choose a reason for hiding this comment

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

Looking good! I am not sure why the CI didn't run, but could you try pushing an empty commit to attempt that? Thanks!

@mauromorales
Copy link
Contributor Author

@stefannibrasil did an empty commit, but it didn't trigger the pipeline either, maybe related to project config?

Wanted to try to see if adding pull_request_target on the workflow would help, but it needs to be reviewed, can you have a look? And of course feel free to remove the commit if it doesn't help

@Zeragamba
Copy link
Contributor

sometimes it needs someone to approve and run the pipeline. Let me get that going for ya

@mauromorales
Copy link
Contributor Author

awesome thanks! yup that seems to have triggered it :)

@mauromorales mauromorales requested review from stefannibrasil and removed request for thdaraujo and Zeragamba October 5, 2022 11:39
@stefannibrasil
Copy link
Contributor

thanks @Zeragamba I think it was because we needed to point the CI to main instead of master. It looks good now, so feel free to revert the latest two commits @mauromorales thanks!

Co-authored-by: mauromorales <contact@mauromorales.com>
Co-authored-by: chimpanstache <elias.hafidi7@gmail.com>
@mauromorales
Copy link
Contributor Author

@stefannibrasil dropped the last two commits but doesn't seem to be picked 🧐

@stefannibrasil
Copy link
Contributor

could you fetching your upstream branch and rebasing your branch? This commit should fix that 0581eff

Copy link
Contributor

@thdaraujo thdaraujo left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for working on this! @mauromorales

Should we bump the major version as well? I'd say yes because this PR introduces breaking changes (see item 8).

We can bump the version in a different PR though.

@thdaraujo thdaraujo changed the title Remove deprecation API for positional arguments Remove support for positional arguments (deprecated on v2.2.0) Oct 5, 2022
@thdaraujo thdaraujo changed the title Remove support for positional arguments (deprecated on v2.2.0) Remove support for positional arguments (deprecated on v2.0) Oct 5, 2022
@thdaraujo
Copy link
Contributor

thdaraujo commented Oct 5, 2022

Well, it looks like v2.0 added the breaking changes. Then v2.2.0 restored the positional arguments but added the deprecation warnings. And now we would be back to removing the functionality. 🤷‍♂️

So not sure if we should bump the major version or not. What are your thoughts @stefannibrasil @Zeragamba ?

@thdaraujo thdaraujo changed the title Remove support for positional arguments (deprecated on v2.0) Remove support for positional arguments (deprecated on v2) Oct 5, 2022
@Zeragamba
Copy link
Contributor

I'd call this a breaking change, and thus a v3.0 release. And since v2 was very vocal about not using positional arugments and letting people know they were deprecated, we shouldn't have to add them back in like in v2.2

@Zeragamba Zeragamba merged commit ecb9695 into faker-ruby:main Oct 5, 2022
@stefannibrasil
Copy link
Contributor

@vbrazo we need another release 👀

@koic
Copy link
Member

koic commented Oct 7, 2022

I agree with @Zeragamba. A release containing this breaking change would mean Faker 3.0.
#1692 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove deprecation API for positional arguments
5 participants