Merge lp:~diegosarmentero/ubuntuone-control-panel/new-share-design into lp:ubuntuone-control-panel
| Status: | Merged | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Approved by: | dobey on 2012-11-02 | ||||||||
| Approved revision: | 382 | ||||||||
| Merged at revision: | 376 | ||||||||
| Proposed branch: | lp:~diegosarmentero/ubuntuone-control-panel/new-share-design | ||||||||
| Merge into: | lp:ubuntuone-control-panel | ||||||||
| Prerequisite: | lp:~diegosarmentero/ubuntuone-control-panel/search-shared-files | ||||||||
| Diff against target: |
943 lines (+418/-114) 8 files modified
data/qt/images.qrc (+1/-0) data/qt/share_links.ui (+175/-20) data/qt/ubuntuone.qss (+1/-1) ubuntuone/controlpanel/gui/__init__.py (+7/-1) ubuntuone/controlpanel/gui/qt/share_links.py (+84/-15) ubuntuone/controlpanel/gui/qt/share_links_search.py (+52/-32) ubuntuone/controlpanel/gui/qt/tests/test_share_links.py (+51/-4) ubuntuone/controlpanel/gui/qt/tests/test_share_links_search.py (+47/-41) |
||||||||
| To merge this branch: | bzr merge lp:~diegosarmentero/ubuntuone-control-panel/new-share-design | ||||||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| dobey (community) | Approve on 2012-11-01 | ||
| Brian Curtin (community) | Approve on 2012-10-31 | ||
| Michał Karnicki (community) | 2012-10-25 | Approve on 2012-10-29 | |
|
Review via email:
|
|||
Description of the Change
As this branch has as prerequisite: p:~diegosarment
You will need to have ubuntuone-client up to date (with this change: https:/
And now this works like this (with a few ui improves that are not included in the video):
http://
If you see the following lint issue:
== Python Lint Notices ==
ubuntuone/
235: [E1101, SyncDaemonClien
You will need to add the u1-client branch mentioned to the path when running the tests.
| Brian Curtin (brian.curtin) wrote : | # |
420 + if len(results) > 0:
I think this if/else should go above the result iteration, not after it. If we have no results, do the hide, otherwise iterate over the results and then show them. It doesn't change the operation, it just reads a bit better IMO.
439 + def __init__(self, path, link, both_buttons=True, parent=None):
If we're adding an argument (both_buttons), shouldn't the new one go at the end?
I'm running IRL and tests on Windows right now.
| Mike McCracken (mikemc) wrote : | # |
This is a big improvement! I'd like to suggest that the string PUBLISH_THESE_FILES should be singular - you can only select one file to publish, right?
So "Publish these files" seems strange - maybe a better call to action is "Select a file to publish:" or something like that.
| Brian Curtin (brian.curtin) wrote : | # |
I reported https:/
Approved. Tests and IRL pass on Windows.
| dobey (dobey) wrote : | # |
I'm wondering if we should land this yet, as the changes in wording and such do present similar concerns as the ones I've raised on your other 2 related branches.
| Ubuntu One Auto Pilot (otto-pilot) wrote : | # |
Voting does not meet specified criteria. Required: Approve >= 1, Disapprove == 0, Needs Fixing == 0, Needs Information == 0, Resubmit == 0, Pending == 0. Got: 2 Approve, 1 Needs Information.
| dobey (dobey) wrote : | # |
21 + <string>Search and Share files</string>
281 +SEARCH_FILES = _('Search and Share files')
These need to be sentence case ('share' should be lowercase). http://
274 +PUBLISH_FILE = _('Publish file')
275 +PUBLISH_
Presumably we should not use the term 'publish' here.
684 + publicfiles = [
685 + {'path': '/home/file1', 'public_url': 'http:ubuntuone.
686 + {'path': '/home/file2', 'public_url': 'http:ubuntuone.
687 + ]
744 + results = ['/home/file1', '/home/file2']
934 + items = [
935 + '/home/
936 + '/home/
937 + '/home/
938 + ]
Should these 3 sets of filenames in tests not be created with os.path.join() instead, for cross-platform happiness? Should it also not use the $HOME (the user_home from dirspec), here?
| Diego Sarmentero (diegosarmentero) wrote : | # |
> 21 + <string>Search and Share files</string>
> 281 +SEARCH_FILES = _('Search and Share files')
>
> These need to be sentence case ('share' should be lowercase).
> http://
> capitalization
Fixed
>
> 274 +PUBLISH_FILE = _('Publish file')
> 275 +PUBLISH_
>
> Presumably we should not use the term 'publish' here.
Fixed
>
> 684 + publicfiles = [
> 685 + {'path': '/home/file1', 'public_url': 'http:ubuntuone.
> 686 + {'path': '/home/file2', 'public_url': 'http:ubuntuone.
> 687 + ]
>
> 744 + results = ['/home/file1', '/home/file2']
>
> 934 + items = [
> 935 + '/home/
> 936 + '/home/
> 937 + '/home/
> 938 + ]
>
> Should these 3 sets of filenames in tests not be created with os.path.join()
> instead, for cross-platform happiness? Should it also not use the $HOME (the
> user_home from dirspec), here?
I don't see the need, they are just dummy values to see that the ui is loaded properly when that data structure is received.
| Ubuntu One Auto Pilot (otto-pilot) wrote : | # |
The attempt to merge lp:~diegosarmentero/ubuntuone-control-panel/new-share-design into lp:ubuntuone-control-panel failed. Below is the output from the failed tests.
*** Running DBus test suite ***
ubuntuone.
BaseTestCase
runTest ... [OK]
DBusServiceMa
test_
test_
DBusServiceTe
test_
test_
test_
test_
test_
test_
test_
test_
FileSyncTestCase
test_
test_
test_
test_
test_
test_
test_
test_
test_
test_
test_
test_
OperationsAut
test_
test_
test_
test_
test_
test_
test_
test_
test_
test_
test_
test_
...
| Ubuntu One Auto Pilot (otto-pilot) wrote : | # |
The attempt to merge lp:~diegosarmentero/ubuntuone-control-panel/new-share-design into lp:ubuntuone-control-panel failed. Below is the output from the failed tests.
*** Running DBus test suite ***
ubuntuone.
BaseTestCase
runTest ... [OK]
DBusServiceMa
test_
test_
DBusServiceTe
test_
test_
test_
test_
test_
test_
test_
test_
FileSyncTestCase
test_
test_
test_
test_
test_
test_
test_
test_
test_
test_
test_
test_
OperationsAut
test_
test_
test_
test_
test_
test_
test_
test_
test_
test_
test_
test_
...
- 381. By Diego Sarmentero on 2012-11-02
-
merge
| Diego Sarmentero (diegosarmentero) wrote : | # |
Fixed merge problem.
- 382. By Diego Sarmentero on 2012-11-02
-
fixing pep8 issues


Hardcoded value at stacked_ widget. setCurrentIndex (2)
386 + self.ui.
could be replaced by a constant, that tells its meaning.
Hardcoded values at
515 + increment = 2 if current == 0 else 1
tell me little about what they mean. Unless this is obvious for Qt developers, fix with constants.
Quite a few constants in the tests make me think they are very sensitive to test data set changes.
Other than that, looks good.