-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Difference between the onfail and onchanges requisites vs their new _any variants unclear #47015
Comments
@garethgreenaway can you take a look at this to clarify the docs? Thanks, |
Upon closer investigation it appears that |
@garethgreenaway providing the inversion would be useful (onfail_all, onchanges_all) |
I like the idea of |
@forty8bits other than onfail and onchanges, every other requisite is implicitly AND, alongside _any for its OR equivalent (ie, the require_all you mentioned is already what require is), its implemented and released. we're just missing the AND for onchanges/onfail to complete the set of possible situations. |
@mattp- I understand that, I just meant migrating all requisites to be fully qualified with |
@forty8bits aye, agreed. i think its pretty trivial to create aliases; will try to keep that in mind when I find some tuits to look at this 👍 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue. |
Hello. I think this should stay open. Regards. |
While the value added from the
require_any
andwatch_any
requisites introduced in v2018.3.0 is clear and useful, and the documentation explains this well, it's unclear to me how the behaviour ofonfail_any
andonchanges_any
is supposed to differ from the standardonfail
andonchanges
requisites?From the docs on
onfail
, confirming it uses OR logic:And for
onchanges
:Perhaps
onchanges
would fail if any of the states listed failed, whereasonchanges_any
wouldn't? It would be nice to have these ambiguities cleared up in the docs.The text was updated successfully, but these errors were encountered: