Merge lp:~iahmad/unity-greeter/duplicate-entry-bug1092425 into lp:unity-greeter
Status: | Merged |
---|---|
Approved by: | Robert Ancell |
Approved revision: | 753 |
Merged at revision: | 761 |
Proposed branch: | lp:~iahmad/unity-greeter/duplicate-entry-bug1092425 |
Merge into: | lp:unity-greeter |
Diff against target: |
300 lines (+132/-16) 2 files modified
src/user-list.vala (+74/-2) tests/test.vala (+58/-14) |
To merge this branch: | bzr merge lp:~iahmad/unity-greeter/duplicate-entry-bug1092425 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Robert Ancell | Approve | ||
David Barth (community) | Approve | ||
Review via email: mp+147602@code.launchpad.net |
This proposal supersedes a proposal from 2013-02-06.
Description of the change
Fixed the comments form David and Robert, Also Added a unit test case to test the defect fix as well as fixed the existing remote login unit test cases broken due to the duplicate entry fix. Please see the results below
UBUNTU_MENUPROXY=0 top_srcdir=.. . xvfb-run ./unity-
/Simple Navigation: OK
/Remote Login: OK
/Remote Login duplicate entries: OK
/Remote Login with Servers Updated signal: OK
/Remote Login with Servers Updated signal and not in remote server: OK
/Remote Login with Login Servers Updated signal: OK
/Remote Login with Login Servers Updated signal and not in removed server: OK
/Remote Login with Remote Login Changed signal: OK
/Remote Login with Remote Login Changed signal and not in changed server: OK
/Remote Login authentication: OK
/Remote Login cancel authentication: OK
/Email Autocomplete: OK
/Greeter Communication: OK
/Unsupported server type: OK
The code looks fine, but i'd prefer to have a unit test to verify that the bug is indeed gone.
The foreach loop could also be factorized under a new function with a name explaining that it generates a unique id for the user + url combination.