-
Notifications
You must be signed in to change notification settings - Fork 230
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
fix: warn formula users ng states will be promoted in v1.0.0
#185
fix: warn formula users ng states will be promoted in v1.0.0
#185
Conversation
@sticky-note Thanks for starting this. One important change to make right now: we don't want to remove any of the states at the moment. We're just going to show a warning. So just include the new |
9ef9fad
to
10513fd
Compare
@myii Is that part ok now ? |
Excellent, @sticky-note. Now we're going to need to modify the actual |
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.
These are the next steps so that these changes are ready to be tested before merging.
10513fd
to
3dd529b
Compare
@sticky-note Don't worry about it now but the commit message should be changed to match what's actually being done. We'll figure out that part at the end when we see where this PR ends up! |
3dd529b
to
d033381
Compare
v1.0.0
v1.0.0
@sticky-note So you did it anyway! I've also changed the title of this PR before I noticed that you pushed again. You may want to use your commit message as the title instead. |
v1.0.0
v1.0.0
@sticky-note I've added another commit to this PR, for changing the message. Let's leave it for the time being, while others comment on this PR. We can squash the commits before merging. Here's the output of the warning of deprecation: ID: php-deprecated-in-v1.0.0-test-succeed
Function: test.succeed_without_changes
Name:
################################################################################
# #
# WARNING: BREAKING CHANGES IN UPCOMING VERSION `v1.0.0` #
# #
################################################################################
# #
# This formula currently provides two methods for managing PHP; the old method #
# under `php` and the new method under `php.ng`. In upcoming `v1.0.0`, the old #
# method will be removed and `php.ng` will be promoted to `php` in its place. #
# #
# If you are not in a position to migrate, you will need to pin your repo to #
# the final release tag before `v1.0.0`, which is expected to be `v0.37.1`. #
# #
# If you are currently using `php.ng`, there is nothing to do until `v1.0.0` #
# is released. #
# #
# To migrate from the old `php`, the first step is to convert to `php.ng`, #
# before `v1.0.0` is released. #
# #
################################################################################
Result: True
Comment: Success! To all:
|
thanks for moving this forward, keep your commit, don't want to squash this |
@n-rodriguez @daks @johnkeates Drawing this to your attention since you were involved in #183. Are you happy with the method used here? How about the output message and the questions at the bottom of #185 (comment)? |
If the question is about adding the warning on both ng and non-ng, then yes, both would be a good way of informing users because it is practically a bi-directional migration for all users. (ng to non-ng and the other way around) The message itself is fine. |
I agree |
@johnkeates Just to be clear, it's not "the other way around" -- the current |
Yes, that is correct. What I meant was that the current users of the old php states get a deprecation warning and the current users of the php.ng states get a warning about the name change (or that second part comes in later, which would also be fine). |
@johnkeates So the same message would be OK, no fine tweaking required? We could do that as @sticky-note Once we resolve this question above, would you be OK to add this to the |
Yes, that would work just fine. As long as both the groups users know what is going to happen we should be good to go. |
@johnkeates Great, this can be merged pretty soon, then. My only remaining concern is that we could end up spamming the output quite significantly. Not so much as a problem for the |
@myii While the output would be clogged, that's probably better than having a single message people could miss. Perhaps clog it but add a pillar option to silence the message? |
@johnkeates Having a configuration option sounds like a good idea. But we'd have to distinguish between critical warnings (action required now) and standard warnings (action required after some future event). |
@myii we could remove the configuration option in the release where it's no longer optional |
@johnkeates No problem, I was just thinking out loud, really. I'll push something here shortly to allow this message muting, including adding the muting instruction to the warning message. By differentiating between types of warning, even if the One other distinction (thinking out loud again): the pillar value should be specific to this |
@myii Yeah, a version specific, and also perhaps a flashrom or rm type of very obvious do-not-ignore type of name for such a variable would be a nice touch. (flashrom uses something like --yes-i-want-a-brick to override safety, just like rm has --no-preserve-root as a very clear message that it's perhaps not a good idea) Maybe we could call it something like php: ng:yes_i_read_the_1_0_0_deprecation_warning or php:yes_i_will_upgrade_my_php_formula_references_for_the_1_0_0_release |
No php:
warning_messages:
v1.0.0:
mute_critical: False
mute_standard: False @johnkeates Isn't overriding that in the pillar punishment enough?! I could make them even harder to type but I don't think that adds much value. If a person goes out of their way to modify the pillar (setting either/both to It looks like I'll have to simulate the defaults instead (where the pillar value doesn't exist), rather than edit |
@sticky-note That's the right idea but that's the message based on |
7f6b18e
to
5088124
Compare
5088124
to
3ac59e4
Compare
@myii Modified |
Excellent @sticky-note, I believe this PR is ready to go now. @n-rodriguez @johnkeates Are you OK with this being merged now? |
Let's go! 🚀 |
Congratulations, this is merged! Thanks all for the input. Great job @sticky-note! |
🎉 This PR is included in version 0.37.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Thanks to you all, I really like to contribute with you |
@sticky-note We already started discussing that here: #175 (comment). @sticky-note @n-rodriguez Continuing that conversation here, I've been testing something in |
@sticky-note @n-rodriguez So I've finally shared |
* References: - saltstack-formulas/php-formula#175 (comment) - saltstack-formulas/php-formula#185 (comment) * Ensure this only runs until `v1.0.0` (done in the script)
# [0.2.0](v0.1.1...v0.2.0) (2019-08-03) ### Bug Fixes * **defaults:** update commit message version in `semantic-release` run ([9382692](9382692)) ### Features * **php:** update deprecation version number in `semantic-release` run ([8e2c546](8e2c546)), closes [/github.com/saltstack-formulas/php-formula/pull/175#issuecomment-517492613](https://github.com//github.com/saltstack-formulas/php-formula/pull/175/issues/issuecomment-517492613) [/github.com/saltstack-formulas/php-formula/pull/185#issuecomment-517603898](https://github.com//github.com/saltstack-formulas/php-formula/pull/185/issues/issuecomment-517603898)
👍 |
@n-rodriguez Almost done... |
* Semi-automated using `ssf-formula` (v0.2.0) * References: - saltstack-formulas#175 (comment) - saltstack-formulas#185 (comment) * Ensure this only runs until `v1.0.0` (done in the script)
## [0.38.1](v0.38.0...v0.38.1) (2019-08-03) ### Bug Fixes * update deprecation version number in `semantic-release` run ([a87fb91](a87fb91)), closes [/github.com//pull/175#issuecomment-517492613](https://github.com//github.com/saltstack-formulas/php-formula/pull/175/issues/issuecomment-517492613) [/github.com//pull/185#issuecomment-517603898](https://github.com//github.com/saltstack-formulas/php-formula/pull/185/issues/issuecomment-517603898)
@sticky-note So this ended up with a regression in as mentioned in #188 and with a fix in #189. When using this PR as a reference in the future, we must ensure we don't end up with more than one |
Deprecation Warning when using non-ng states with this php-formula.
@myii @n-rodriguez @daks
Is
v0.37.1
will be the correct release number for the warning message inphp.deprecated.sls
?