-
Notifications
You must be signed in to change notification settings - Fork 230
fix: warn formula users ng states will be promoted in v1.0.0
#185
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
myii
merged 6 commits into
saltstack-formulas:master
from
sticky-note:fix/non-ng-deprecation
Aug 1, 2019
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
d033381
fix: warn formula users ng states will be promoted in `v1.0.0`
e97eeae
fix: change message to warn about upcoming deprecation
myii 8e7471e
fix: allow muting deprecation warning via. pillar/config entry
myii d45bae8
fix: add warning message for ng states
1a5d734
fix(pillar_from_files): use `{}` pillar files to ensure tests pass
myii 3ac59e4
fix(readme): add warning in docs/README.rst
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{%- from "php/map.jinja" import php with context %} | ||
|
||
include: | ||
- php.deprecated | ||
- php | ||
|
||
php-adodb: | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{%- from "php/map.jinja" import php with context %} | ||
|
||
include: | ||
- php.deprecated | ||
- php | ||
|
||
php-apc: | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{%- from "php/map.jinja" import php with context %} | ||
|
||
include: | ||
- php.deprecated | ||
- php | ||
|
||
php-apcu: | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{%- from "php/map.jinja" import php with context %} | ||
|
||
include: | ||
- php.deprecated | ||
- php | ||
|
||
php-bcmath: | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{%- from "php/map.jinja" import php with context %} | ||
|
||
include: | ||
- php.deprecated | ||
- php | ||
|
||
php-cgi: | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{%- from "php/map.jinja" import php with context %} | ||
|
||
include: | ||
- php.deprecated | ||
- php | ||
|
||
php-cli: | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{%- from "php/map.jinja" import php with context %} | ||
|
||
include: | ||
- php.deprecated | ||
- php | ||
|
||
php-curl: | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# -*- coding: utf-8 -*- | ||
# vim: ft=sls | ||
|
||
{#- Evaluating as `False` by default, using this method since `defaults.yaml` not available in this repo #} | ||
{%- if not salt['config.get']('php').get('warning_messages', {}).get('v1.0.0', {}).get('mute_critical', False) %} | ||
php-deprecated-in-v1.0.0-test-succeed: | ||
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. # | ||
# # | ||
# To prevent this message being displayed again, set the pillar/config value: # | ||
# # | ||
# ``` # | ||
# php: # | ||
# warning_messages: # | ||
# v1.0.0: # | ||
# mute_critical: True # | ||
# ``` # | ||
# # | ||
################################################################################ | ||
# - failhard: True | ||
n-rodriguez marked this conversation as resolved.
Show resolved
Hide resolved
|
||
{%- endif %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{%- from "php/map.jinja" import php with context %} | ||
|
||
include: | ||
- php.deprecated | ||
- php | ||
|
||
php-dev: | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{%- from "php/map.jinja" import php with context %} | ||
|
||
include: | ||
- php.deprecated | ||
- php | ||
|
||
php-gd: | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{%- from "php/map.jinja" import php with context %} | ||
|
||
include: | ||
- php.deprecated | ||
- php | ||
|
||
php-imagick: | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{%- from "php/map.jinja" import php with context %} | ||
|
||
include: | ||
- php.deprecated | ||
- php | ||
|
||
php-imap: | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{%- from "php/map.jinja" import php with context %} | ||
|
||
include: | ||
- php.deprecated | ||
- php | ||
|
||
php-intl: | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{%- from "php/map.jinja" import php with context %} | ||
|
||
include: | ||
- php.deprecated | ||
- php | ||
|
||
php-json: | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{%- from "php/map.jinja" import php with context %} | ||
|
||
include: | ||
- php.deprecated | ||
- php | ||
|
||
php-ldap: | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{%- from "php/map.jinja" import php with context %} | ||
|
||
include: | ||
- php.deprecated | ||
- php | ||
|
||
php-mail: | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{%- from "php/map.jinja" import php with context %} | ||
|
||
include: | ||
- php.deprecated | ||
- php | ||
|
||
php-mbstring: | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{%- from "php/map.jinja" import php with context %} | ||
|
||
include: | ||
- php.deprecated | ||
- php | ||
|
||
php-mcrypt: | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{%- from "php/map.jinja" import php with context %} | ||
|
||
include: | ||
- php.deprecated | ||
- php | ||
|
||
php-memcache: | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{%- from "php/map.jinja" import php with context %} | ||
|
||
include: | ||
- php.deprecated | ||
- php | ||
|
||
php-memcached: | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{%- from "php/map.jinja" import php with context %} | ||
|
||
include: | ||
- php.deprecated | ||
- php | ||
|
||
php-mysql: | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{%- from "php/map.jinja" import php with context %} | ||
|
||
include: | ||
- php.deprecated | ||
- php | ||
|
||
php-mysqlnd: | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# -*- coding: utf-8 -*- | ||
# vim: ft=sls | ||
|
||
{#- Evaluating as `False` by default, using this method since `defaults.yaml` not available in this repo #} | ||
{%- if not salt['config.get']('php').get('warning_messages', {}).get('v1.0.0', {}).get('mute_upcoming', False) %} | ||
php-deprecated-in-v1.0.0-test-succeed: | ||
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. # | ||
# # | ||
# To prevent this message being displayed again, set the pillar/config value: # | ||
# # | ||
# ``` # | ||
# php: # | ||
# warning_messages: # | ||
# v1.0.0: # | ||
# mute_upcoming: True # | ||
# ``` # | ||
# # | ||
################################################################################ | ||
{%- endif %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.