-
Notifications
You must be signed in to change notification settings - Fork 416
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
docs: remove obsolete CHANGELOG.rst file #233
docs: remove obsolete CHANGELOG.rst file #233
Conversation
Yeah, that file is dead. |
Commenting on my own comment: is there an official point at which rst was replaced by md as the preferred format? I know my own preference here, but I wonder if there is something I can point people to when I get that question. |
🎉 This PR is included in version 1.0.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
@noelmcloughlin There aren't any hard and fast rules at the moment but the general position at the current time is preferring |
Ironically, the repo has both md and rst. I wonder where the rst preference originally came from, especially considering the amount of projects that are documented using md rather than rst. Is it just because of the Python's official support? Or simply initial preference within saltstack and now historical usage. |
@johnkeates From the little digging around I did, |
@myii Most of the discussions make sense, and it seems to be pretty recent having the same thoughts. While RST (and Asciidoc) are technically superior to Markdown, I do see MD more often read and written than the others on the hipster side of development (slack, github, most web/electron development systems), while the technically better systems are more on the hardcore/real-deal side of projects (i.e. those that do their main work on mailing lists, using patches or gitweb etc). Perhaps it's a culture thing or a visible/invisible thing like an iceberg having MD visible on top. Since RST is Python's default inline-ascii documentation format that seems a good fit, but for self-hosted docs, asciidoc makes more sense, especially considering maintainability. While furthering integration with salt and formulas in diverse private devops shops, I've noticed most of them reading from the generated salt docs and writing to their internal documentation systems (mostly confluence, some mediawiki, and a few others). At this point this writing is becoming too much of a brain dump and not really suitable for this pull thread; I guess I could condense it into: MD is more popular for contributing (very low friction) but since documentation is often read much more than written, a better system (especially inside an ecosystem like saltstack-formulas) makes more sense, even if that means that some contributors might find it harder to build on. I guess I've made the conversation moot :) |
@johnkeates We sound like we're all on the same page, essentially. By the way, I've had an uneasy feeling that some users may get caught out by the |
TL;DR: no, wait a little |
@noelmcloughlin |
I agree. I get caught by it 2 hours ago ^^. I forgot that the Note: I say that because changing the states was easy. But don't forget to update your pillars |
Chiming in on the nginx.ng removal: I agree with both; while I don't know of a neat way to generate standard deprecation warnings from salt formulas (as in, consistent across multiple formulas as they will all be namespaced) it would be neat to have an alias with deprecation warning first, and then update to a version that errors out with a On the documentation side, adding a banner or warning is definitely a good idea. Looking over the fence at other tools, Terraform handles this in the deprecation->removal->fatal chain on a per-release basis. This eases transitions and means users will be informed, warned and directed towards a solution. This is what is generally done for stable API products as well, i.e. the Linux kernel, macOS and perhaps even Windows (but I don't know, I try to stay away from that one on the API level). Wat we can do now:
Wat we may want to figure out for similar changes:
|
So we've got the banner in place but I reckon we can go one step further based on a WIP PR we've been discussing in the |
We can block execution but we should throw a descriptive message for the user as to why. Any way to colorise or otherwise make such a message stand out? Most of the stuff I've tried either gets lost in automation (i.e. when only showing changed in output, or setting it to terse) or is logged but not displayed (i.e. python exceptions). @myii What is your take on this? Edit: I was specifically thinking of test.* like it is used in that WIP PR, it works great as long as full output is on or it's not hidden in an automation pipeline. Any ideas on how to get test.* or something similar to output a "better" message? |
@johnkeates The method I'm suggesting will prevent the execution of any of the deprecated states with a hard failure. The message there can be customised accordingly. I've noticed that none of the states overlap with the old |
@johnkeates So this is the only state that will "run" for all deprecated states (failing, red text):
|
I suppose it’s the best option we have right now. For future deprecations we should add a messenger state that warns the user ahead of upcoming releases, we could tack this on the same way as we do now, except the existing state will still be there and run. |
@johnkeates Initial testing is looking good. I'm a bit short on time but I'm going to try to push this out into a PR in a few minutes, so that it can at least be considered for inclusion, if not merged outright. |
@johnkeates So I've pushed PR #236 as the temporary workaround. We need to make sure that the tests pass first. It would be good if others could test these changes before merging. |
Last updated 2013 - not needed.