Skip to content

Instantly share code, notes, and snippets.

@olivergs
Created April 13, 2021 09:00
Show Gist options
  • Save olivergs/7f77b4a186ae1fdae7dfd19de592fb23 to your computer and use it in GitHub Desktop.
Save olivergs/7f77b4a186ae1fdae7dfd19de592fb23 to your computer and use it in GitHub Desktop.
Profile editor feature

Use case

Right now, the gconf and libreoffice configuration keys on desktop profiles are not editable. You can overwrite settings with new values but you can not delete them from a profile, or set a custom value by hand.

This feature is intended to make possible to edit profiles directly from the Fleet Commander Admin interface.

Behavior

The editor will be a list of keys and values grouped by namespace (gconf and libreoffice). The user can select any key and then edit it by clicking on an edit button or delete it by clicking in a delete button.

The deletion command will ask the user for confirmation before removing the key.

The editing command will open a dialog with the key name and a field that will allow the user to change the value.

Implementation notes

All changes in the profile will be made client-side until the user saves the profile.

Schema validation for values could be implemented in a future so we can avoid the user to set incorrect values

Design interface with extra options in mind (setting enforcing in gconf)

We will need a policy editor in case of deletion of a value, so the Fleet Commander Client can "reset" that value to a default status if the user specifies that when deleting it.

Browsers support for editing is more complex due to multiple setting categories and bookmarks. Will be studied in a separate feature.

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