Merge lp:~stolowski/unity8/shareData-rename into lp:unity8

Proposed by Paweł Stołowski on 2015-12-09
Status: Merged
Approved by: Michael Terry on 2016-01-05
Approved revision: 2081
Merged at revision: 2124
Proposed branch: lp:~stolowski/unity8/shareData-rename
Merge into: lp:unity8
Diff against target: 57 lines (+5/-5)
4 files modified
qml/Dash/Previews/PreviewSharing.qml (+1/-1)
qml/Dash/Previews/PreviewVideoPlayback.qml (+1/-1)
qml/Dash/Previews/PreviewZoomableImage.qml (+1/-1)
tests/qmltests/Dash/Previews/tst_PreviewSharing.qml (+2/-2)
To merge this branch: bzr merge lp:~stolowski/unity8/shareData-rename
Reviewer Review Type Date Requested Status
Michael Terry 2015-12-09 Approve on 2016-01-05
PS Jenkins bot continuous-integration Needs Fixing on 2015-12-18
Review via email: mp+280056@code.launchpad.net

Commit Message

Changes 'shareData' and 'contentType' attributes to 'share-data' and 'content-type', to match existing naming schema.

Description of the Change

Whilst documenting the new attributes related to content sharing with Content hub, I realized we were not consistent with the new names and should be following "foo-bar" naming, not camel case. This MR changes 'shareData' and 'contentType' attributes to match existing naming schema.

Note: I tested that nothing breaks after this change, but wasn't actually able to test actual functionality, cause it wasn't working already - see https://code.launchpad.net/~cimi/unity8/preview-sharing-fix-broken-binding/+merge/280875 which fixes it.

* Are there any related MPs required for this MP to build/function as expected? Please list.
n
 * Did you perform an exploratory manual test run of your code change and any related functionality?
n/a
 * Did you make sure that your branch does not contain spurious tags?
y
 * If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
n/a
 * If you changed the UI, has there been a design review?
n/a

To post a comment you must log in.
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:2081
http://jenkins.qa.ubuntu.com/job/unity8-ci/6978/
Executed test runs:
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-vivid-touch/5862
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-xenial-touch/393/console
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-vivid/1688
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/unity8-qmluitest-xenial-amd64/391
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-amd64-ci/1583
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-vivid-i386-ci/1583
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-xenial-amd64-ci/390
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-xenial-i386-ci/389
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-vivid-touch/4519
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/5873
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-vivid-armhf/5873/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/26214
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-xenial-touch/154/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-xenial-armhf/391
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-xenial-armhf/391/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/26215

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/unity8-ci/6978/rebuild

review: Needs Fixing (continuous-integration)
Michael Terry (mterry) wrote :

Is there a related content-hub branch that does the rename on that side? (Maybe I'm misunderstanding how this works, but I'd assume just renaming on our side isn't enough.)

review: Needs Information
Paweł Stołowski (stolowski) wrote :

> Is there a related content-hub branch that does the rename on that side?
> (Maybe I'm misunderstanding how this works, but I'd assume just renaming on
> our side isn't enough.)

No, there is no change needed in content-hub; this is just renaming of the attributes exposed by scopes and consumed by unity8. How they are futher exposed to content-hub remains unaffected.

Michael Terry (mterry) wrote :

Alright, looks good then. No scopes use this functionality yet either. So safe to rename in isolation.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'qml/Dash/Previews/PreviewSharing.qml'
2--- qml/Dash/Previews/PreviewSharing.qml 2015-10-26 18:32:19 +0000
3+++ qml/Dash/Previews/PreviewSharing.qml 2015-12-15 15:10:41 +0000
4@@ -25,7 +25,7 @@
5
6 property var shareData
7 readonly property bool isUrlExternal: url && url.indexOf("file:///") != 0 && url.indexOf("/") != 0
8- readonly property string contentType: shareData ? shareData["contentType"] : ""
9+ readonly property string contentType: shareData ? shareData["content-type"] : ""
10 readonly property var url: shareData ? shareData["uri"] : ""
11 readonly property Item rootItem: QuickUtils.rootItem(root)
12
13
14=== modified file 'qml/Dash/Previews/PreviewVideoPlayback.qml'
15--- qml/Dash/Previews/PreviewVideoPlayback.qml 2015-11-04 14:57:13 +0000
16+++ qml/Dash/Previews/PreviewVideoPlayback.qml 2015-12-15 15:10:41 +0000
17@@ -81,7 +81,7 @@
18 right: parent.right
19 bottom: parent.bottom
20 }
21- shareData: widgetData["shareData"]
22+ shareData: widgetData["share-data"]
23 }
24 }
25 }
26
27=== modified file 'qml/Dash/Previews/PreviewZoomableImage.qml'
28--- qml/Dash/Previews/PreviewZoomableImage.qml 2015-11-04 14:57:13 +0000
29+++ qml/Dash/Previews/PreviewZoomableImage.qml 2015-12-15 15:10:41 +0000
30@@ -72,7 +72,7 @@
31 right: parent.right
32 bottom: parent.bottom
33 }
34- shareData: widgetData["shareData"]
35+ shareData: widgetData["share-data"]
36 }
37 }
38
39
40=== modified file 'tests/qmltests/Dash/Previews/tst_PreviewSharing.qml'
41--- tests/qmltests/Dash/Previews/tst_PreviewSharing.qml 2015-10-26 18:32:19 +0000
42+++ tests/qmltests/Dash/Previews/tst_PreviewSharing.qml 2015-12-15 15:10:41 +0000
43@@ -32,12 +32,12 @@
44 "text here 2",
45 "text here 3"
46 ],
47- "contentType": "text"
48+ "content-type": "text"
49 }
50
51 property var shareDataNoUri: {
52 "uri": "",
53- "contentType": "text"
54+ "content-type": "text"
55 }
56
57 PreviewSharing {

Subscribers

People subscribed via source and target branches