Fixes #39694 - Rake task that generates list of settings - #11205
Open
lzap wants to merge 2 commits into
Open
Conversation
Closed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Also uploads them as individual pages prefixed with Setting (child of page named Settings) into our wiki. The list is merged with existing settings, so anyone can run the rake task and only new settings will be added:
https://projects.theforeman.org/projects/foreman/wiki/Settings
This gives us stable URLs we can refer to and very easy workflow to add missing settings. Any plugin maintainer can add their own settings easily.
To test this:
Or:
The only limitation is that individual pages are generated, changes will be overwritten. I can add a link to the every page something like
SettingNotesXXXwhich will create a (red) link to non-existing page with additional notes we can optionally fill in for some if we want.Edit: I also pushed a second commit that updates the existing error page generator, it now directly pushes this to the wiki. I want more automation so we can plugin this to the release process.
https://projects.theforeman.org/projects/foreman/wiki/ErrorCodes
Discussion:
https://community.theforeman.org/t/proposal-remove-app-c-from-administering-foreman-guide/45550