-
Notifications
You must be signed in to change notification settings - Fork 113
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
renamed pdb_delinsertion #92
Conversation
`delinsertion` was renamed to `renuminsertion`.
Codecov Report
@@ Coverage Diff @@
## master #92 +/- ##
==========================================
+ Coverage 82.00% 82.08% +0.07%
==========================================
Files 46 47 +1
Lines 3663 3679 +16
Branches 763 763
==========================================
+ Hits 3004 3020 +16
Misses 469 469
Partials 190 190
Continue to review full report at Codecov.
|
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.
Pretty straightforward. So green light from my side if you all think it is a good idea.
Perfect. I am fine with both ways also. If you prefer not to increase the major version we can duplicate the client so as to maintain both versions and backward compatibility. I don't know if What is your opinion @JoaoRodrigues ? |
We will change the server as needed if the name changes
|
I see what you mean by "delete". The idea here is that the tools delete insertion codes, thus the renumbering. I personally find As for semantic versioning etc, I would bump the minor version because we would add a new tool (whatever the name) and then add a deprecation warning on the current |
My vote goes then to pdb_fixinsert
|
Changed name. We should work on the other tool then, this doesn't cover all use cases! I added an error message to the old |
If you could review @joaomcteixeira that would be good! |
If the tool starts with What do you mean by "next two releases?" Drop it in You cannot drop an interface after X minor (feature) releases. We can decide, though, to increase the major version number after we accumulate a certain number of deprecation warnings. Until then, if you decide the maintain the Here are three possible deprecation policies. We keep deprecates until one of the following happens:
I am happy with any of those. |
What is fix? :) We should be more explicit in the docstring! Happy to have fix in the first line but have a better description in the paragraph below. As for deprecation, I thought we could do a rule like, N minor version releases (2.4, 2.5, ...) and then bundle the deprecation (effectively remove the tool) in now + N. My idea was to bump the minor version now since we "add" a tool anyway. |
Yes, that is what I meant in the docstring 👍 Your deprecation strategy is also very possible. But just think about the hypothetical case where the following N minor releases are also bundled to deprecations. Then, where and when you decide to set the deprecation timer for a major release becomes not obvious. Maybe all these thoughts don't apply to pdb-tools, but I know I like to think in abstract and general terms 😉 Also, if suddenly we add two more CLIs, we will be forced to drop de deprecated and bump the major maybe in a very short period of time. Or, the deprecation warning may remain there forever if it happens no more CLIs are added for the next four years. Hence, this policy may originate random events and there is no predictable rule for users to embrace. Considering the specific case of
I will review the code later today. I don't want to approve it without testing it locally a bit. Have a meeting now 😉 |
May-be good to add in the documentation what was the old name so that users can find it.
|
Documentation was updated in #97 But neither of the tools When running |
pdb_delinsertion
was renamed topdb_renuminsertion
.Closes #91
This change should upgrade
pdb-tools
to version 3 by definition of SV2. This PR breaks backward compatibility.