After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 702480 - Change password dialog for my account - spinner starts before I've finished typing
Change password dialog for my account - spinner starts before I've finished t...
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: User Accounts
git master
Other Linux
: Normal normal
: ---
Assigned To: Ondrej Holy
Control-Center Maintainers
Depends on:
Blocks: 702476
 
 
Reported: 2013-06-17 15:28 UTC by Allan Day
Modified: 2013-08-14 20:35 UTC
See Also:
GNOME target: ---
GNOME version: 3.7/3.8


Attachments
remove spinner from the dialog (5.43 KB, patch)
2013-07-23 10:42 UTC, Ondrej Holy
committed Details | Review

Description Allan Day 2013-06-17 15:28:58 UTC
I'm still typing the current password and the spinner appears. It's distracting.

We should only check the password once someone has stopped typing for a second. After that, only show the spinner if the password check has taken more than two seconds.
Comment 1 Ondrej Holy 2013-06-18 12:30:33 UTC
(In reply to comment #0)
> I'm still typing the current password and the spinner appears. It's
> distracting.
> 
> We should only check the password once someone has stopped typing for a second.
> After that, only show the spinner if the password check has taken more than two
> seconds.

Password check shouldn't take more than 2 seconds, so we can put the spinner out and password check may has same interval... is it ok?
Comment 2 Ondrej Holy 2013-07-23 10:42:06 UTC
Created attachment 249881 [details] [review]
remove spinner from the dialog
Comment 3 Stef Walter 2013-08-08 13:02:19 UTC
(In reply to comment #1)
> Password check shouldn't take more than 2 seconds, so we can put the spinner
> out and password check may has same interval... is it ok?

Hmmm, how do you know the password check shouldn't take more than two seconds?

I would suggest keeping this code, adding a timeout as allan suggests, because checking Enterprise passwords can arbitrarily take longer than that.
Comment 4 Ondrej Holy 2013-08-13 11:07:50 UTC
(In reply to comment #3)
> (In reply to comment #1)
> > Password check shouldn't take more than 2 seconds, so we can put the spinner
> > out and password check may has same interval... is it ok?
> 
> Hmmm, how do you know the password check shouldn't take more than two seconds?
> 
> I would suggest keeping this code, adding a timeout as allan suggests, because
> checking Enterprise passwords can arbitrarily take longer than that.

Good point, I wasn't thinking about the enterprise users, because password changing for enterprise accounts is currently disabled (see Bug 681866), isn't it? It looks like password changing for enterprise users isn't working yet according corresponding bugs, is it? So, in this case we don't need the spinner currently, do we?
Comment 5 Stef Walter 2013-08-13 14:04:52 UTC
So I guess we'll add all this code back once we fix the gotchas that prevent changing of Enterprise passwords? 

Your call. If that's the better approach code maintenance wise, then the patch makes sense.
Comment 6 Ondrej Holy 2013-08-13 15:32:53 UTC
(In reply to comment #5)
> So I guess we'll add all this code back once we fix the gotchas that prevent
> changing of Enterprise passwords? 

That's right.

> Your call. If that's the better approach code maintenance wise, then the patch
> makes sense.

I'd rather remove the spinner now due to the design changes which depends on, because we can't let the spinner at this place. We have to find the way, how to put the spinner inside GtkEntry (or put it at the different place), before enterprise password will be back.
Comment 7 Stef Walter 2013-08-14 13:18:28 UTC
Review of attachment 249881 [details] [review]:

Looks good.