Skip to content

mgr/dashboard: add configuration setting browser - #20043

Merged
jcsp merged 1 commit into
ceph:masterfrom
rubabzs:configuration_setting_browser
Feb 9, 2018
Merged

jcsp merged 1 commit into
ceph:masterfrom
rubabzs:configuration_setting_browser

Conversation

@rubabzs

@rubabzs rubabzs commented Jan 22, 2018 •

Copy link
Copy Markdown
Contributor

@rubabzs
rubabzs force-pushed the configuration_setting_browser branch from 884dcf4 to 21bfa8c Compare January 22, 2018 04:11
@rubabzs

rubabzs commented Jan 22, 2018

Copy link
Copy Markdown
Contributor Author

config

Comment thread src/mgr/ActivePyModules.cc Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what.startswith("config") would be clearer

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I will have to add some C++ library for this. Should I use boost or something?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Silly me, I thought I was reading python. Never mind, this can stay as is!

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When someone selects a level, they should also get all the lower levels (i.e. if I select "advanced" then it should show both advanced and basic options)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Column headers should be full words where reasonable (i.e. Description rather than dec)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As we discussed, I think this table needs some constraints on the widths of columns so that really long names don't push the whole thing out too far.

Comment thread src/common/config.cc Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Option class has a dump method that you can use instead of dumping all fields explicitly here.

@rubabzs
rubabzs force-pushed the configuration_setting_browser branch from 21bfa8c to 14bb815 Compare January 29, 2018 04:23
@jcsp
jcsp merged commit 4e2748d into ceph:master Feb 9, 2018
@epuertat

epuertat commented Aug 3, 2018

Copy link
Copy Markdown
Member

@Rubab-Syed @jcsp @smithfarm, dashboard_v2 relies on config_options method for building the configuration doc. page.

This commit does not alter any behaviour to the existing Ceph components, it simply adds the new config_options method to src/common/config.{cc,h}, and exposes it by Mgr Python interface src/mgr/ActivePyModules.cc. It also implements the dashboard_v1 config page.

Any objection to this backporting to Luminous for the ongoing dashboard_v2 backporting #23271?

@jcsp

jcsp commented Aug 6, 2018

Copy link
Copy Markdown
Contributor

No objection from me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants