flux-framework / flux-accounting

bank/accounting interface for the Flux resource manager
https://flux-framework.readthedocs.io/projects/flux-accounting/en/latest/index.html
GNU Lesser General Public License v3.0
3 stars 10 forks source link

`edit-user`: unify reset behavior, `**kwargs` for editable fields #535

Closed cmoussa1 closed 10 hours ago

cmoussa1 commented 1 week ago

Problem

The edit_user() function is clunky and could stand to undergo some improvements. Namely:


This PR changes the function's signature to use **kwargs for the editable fields and removes "bank" as an editable field for an association. It also unifies the reset behavior for any of the editable fields by making -1 the keyword to reset the field to its default value.

Finally, I've added a function docstring description.