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

mgr/dashboard: Simplification of PoolForm method #24892

Merged
merged 1 commit into from Nov 5, 2018

Conversation

p-se
Copy link
Contributor

@p-se p-se commented Nov 2, 2018

Removes the attribute names and functions off the values in the transform variable, as this construct is unnecessarily complex. Also, the pool variable is available everywhere in the initEditFormData method, so no need to pass it as argument to functions. The result is an object which doesn't contain two different types of values, which would have to be parsed to get the real value. Instead they just contain the values without having to parse anything. This simplifies the addition of new and dynamic fields, which are about to be added for QoS management for pools and RBDs.

Does also contain name changes of variables.

Signed-off-by: Patrick Nawracay pnawracay@suse.com

Signed-off-by: Patrick Nawracay <pnawracay@suse.com>
Copy link

@Devp00l Devp00l left a comment

Choose a reason for hiding this comment

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

Like it 💯

@LenzGr LenzGr merged commit 7095dae into ceph:master Nov 5, 2018
@p-se p-se deleted the pna-cleanup-pool-form-simpl branch December 5, 2018 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants