Skip to content

Extend users D-Bus API#451

Merged
dgdavid merged 4 commits intomasterfrom
extend-users-dbus-api
Mar 3, 2023
Merged

Extend users D-Bus API#451
dgdavid merged 4 commits intomasterfrom
extend-users-dbus-api

Conversation

@joseivanlopez
Copy link
Contributor

@joseivanlopez joseivanlopez commented Mar 3, 2023

Problem

There is no way to edit the first user without providing the password again. Although it may seem inconsequential, it's a bit annoying to have to retype the password and confirmation to fix a typo in the username.

Solution

Extend the D-Bus API for providing the already set password and to adapt the UI to send updated password only when the user has chosen to change it.

Testing

  • Added a new unit test
  • Tested manually

Related to #443 where the form to allow user edition was set.

@joseivanlopez joseivanlopez force-pushed the extend-users-dbus-api branch from 0dd8d51 to d11abf8 Compare March 3, 2023 12:47
@coveralls
Copy link

coveralls commented Mar 3, 2023

Coverage Status

Coverage: 79.9% (+0.1%) from 79.797% when pulling 69ede6d on extend-users-dbus-api into 06ba269 on master.

@joseivanlopez joseivanlopez force-pushed the extend-users-dbus-api branch from a2e2313 to 6013463 Compare March 3, 2023 13:07
dgdavid added 2 commits March 3, 2023 14:40
Once the user is defined, it can be edited changing or preserving the password.
This is convenient to allow changing the user data without having to retype the
password.
@dgdavid dgdavid marked this pull request as ready for review March 3, 2023 15:04
removeUser: removeUserFn,
getUser: jest.fn().mockResolvedValue(user),
removeUser: removeUserFn,
onUsersChange: onUsersChangeFn
Copy link
Contributor

Choose a reason for hiding this comment

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

Funny: no idea how I manage to do and send this change. Anyway, It does not hurt, so I'd keep it is there is no other change to send.

@dgdavid dgdavid merged commit 94cb1de into master Mar 3, 2023
@dgdavid dgdavid deleted the extend-users-dbus-api branch March 3, 2023 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Comments