Skip to content
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

edit: how should we handle states and comments #2646

Open
oliver-sanders opened this issue Nov 22, 2022 · 0 comments
Open

edit: how should we handle states and comments #2646

oliver-sanders opened this issue Nov 22, 2022 · 0 comments
Milestone

Comments

@oliver-sanders
Copy link
Member

Rose configurations support a couple of odd features which don't have direct mappings onto JSON Schema.

We need a proposal for how to support these in a schema driven GUI.

States

Rose configs have one of three orthogonal states:

  • Normal
  • Ignored (!) - Config has been ignored by the user (i.e. manual intervention)
  • Trigger Ignored (!!) - Config has been ignored by metadata logic (e.g. this config is not needed because another is set tox)

The current rose edit allows users to change the state of configs live.

Just to muddy the waters, sections can be ignored too with the ^ prefix.

Comments

In Rose comments are functional, they are displayed and are editable in the GUI.

Example of Rose comment for the configuration [env]FOO in a rose-app.conf file:

[env]
# bodge to keep the universe from collapsing in a puff of logic
ANSWER=42

Comments look like metadata, but they are part of the configuration.

@oliver-sanders oliver-sanders added this to the 2.gui milestone Nov 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

1 participant