Merge lp:~dandrader/unity-api/removeApplicationStage into lp:unity-api

Proposed by Daniel d'Andrada
Status: Merged
Approved by: Michael Zanetti
Approved revision: no longer in the source branch.
Merged at revision: 246
Proposed branch: lp:~dandrader/unity-api/removeApplicationStage
Merge into: lp:unity-api
Diff against target: 185 lines (+9/-38)
8 files modified
debian/changelog (+7/-0)
include/unity/shell/application/ApplicationInfoInterface.h (+0/-10)
include/unity/shell/application/ApplicationManagerInterface.h (+0/-2)
include/unity/shell/application/CMakeLists.txt (+1/-1)
test/qmltest/mocks/plugins/Unity/Application/Mocks/MockApplicationInfo.cpp (+1/-16)
test/qmltest/mocks/plugins/Unity/Application/Mocks/MockApplicationInfo.h (+0/-4)
test/qmltest/mocks/plugins/Unity/Application/Mocks/MockApplicationManager.cpp (+0/-2)
test/qmltest/unity/shell/application/tst_Application.qml (+0/-3)
To merge this branch: bzr merge lp:~dandrader/unity-api/removeApplicationStage
Reviewer Review Type Date Requested Status
Michael Zanetti (community) Approve
Unity8 CI Bot continuous-integration Approve
Review via email: mp+297764@code.launchpad.net

Commit message

Remove ApplicationInfoInterface.stage property

And remove "stage" role from ApplicationManagerInterface accordingly

To post a comment you must log in.
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :

FAILED: Continuous integration, rev:236
https://unity8-jenkins.ubuntu.com/job/lp-unity-api-ci/89/
Executed test runs:
    FAILURE: https://unity8-jenkins.ubuntu.com/job/build/2009/console
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/2037
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=vivid+overlay/1954
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=xenial+overlay/1954
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=yakkety/1954
    FAILURE: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/1945/console
    FAILURE: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/1945/console
    FAILURE: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=yakkety/1945/console
    FAILURE: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/1945/console
    FAILURE: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/1945/console
    FAILURE: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=yakkety/1945/console
    FAILURE: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/1945/console
    FAILURE: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/1945/console
    FAILURE: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=yakkety/1945/console

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-unity-api-ci/89/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Michael Zanetti (mzanetti) wrote :

+1 in general, but:

* There's a "Stage" enum in ApplicationInfoInterface.h. Can that go away too?

* You forgot to update test/qmltest/unity/shell/application/tst_Application.qml

review: Needs Fixing
Revision history for this message
Daniel d'Andrada (dandrader) wrote :

On 20/06/2016 08:43, Michael Zanetti wrote:
> * There's a "Stage" enum in ApplicationInfoInterface.h. Can that go away too?

That enum is still used in the code. We could move it to Mir.h...

Revision history for this message
Michael Zanetti (mzanetti) wrote :

> On 20/06/2016 08:43, Michael Zanetti wrote:
> > * There's a "Stage" enum in ApplicationInfoInterface.h. Can that go away
> too?
>
> That enum is still used in the code. We could move it to Mir.h...

ok then. I don't require you to do that in this merge. Just clean up the failing tests and we're good.

239. By CI Train Bot Account

MirSurfaceInterface: add inputBounds property

240. By CI Train Bot Account

Releasing 7.116+16.10.20160620-0ubuntu1

Revision history for this message
Daniel d'Andrada (dandrader) wrote :

On 20/06/2016 08:43, Michael Zanetti wrote:
> * You forgot to update test/qmltest/unity/shell/application/tst_Application.qml

Done.

Revision history for this message
Daniel d'Andrada (dandrader) wrote :

On 20/06/2016 11:12, Michael Zanetti wrote:
>> On 20/06/2016 08:43, Michael Zanetti wrote:
>>> * There's a "Stage" enum in ApplicationInfoInterface.h. Can that go away
>> too?
>>
>> That enum is still used in the code. We could move it to Mir.h...
> ok then. I don't require you to do that in this merge. Just clean up the failing tests and we're good.

Actually it doesn't belong to Mir.h as "stage" is a unity8 concept.

Tried removing it but in unity8 there's both qml and cpp code refering
to it. Also from multiple qml files. So having it in
ApplicationInfoInterface.h is quite handy. To remove it from there I
would have to add it to another header file in unity8. Or maybe turn it
into a "bool sideStage" property. Yeah, that sideStage boolean would
solve it. But then it would be an API change in unity8, making it a more
complex branch tha also modifies code instead of simply removing unused
stuff.

Fixed the qml test.

Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :

PASSED: Continuous integration, rev:239
https://unity8-jenkins.ubuntu.com/job/lp-unity-api-ci/91/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/2090
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/2118
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=vivid+overlay/2029
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=xenial+overlay/2029
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=yakkety/2029
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/2020
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/2020/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/2020
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/2020/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=yakkety/2020
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=yakkety/2020/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/2020
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/2020/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/2020
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/2020/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=yakkety/2020
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=yakkety/2020/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/2020
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/2020/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/2020
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/2020/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=yakkety/2020
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=yakkety/2020/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-unity-api-ci/91/rebuild

review: Approve (continuous-integration)
Revision history for this message
Michael Zanetti (mzanetti) wrote :

yip yip

review: Approve
241. By Daniel d'Andrada

Remove ApplicationInfoInterface.stage property

And remove "stage" role from ApplicationManagerInterface accordingly

242. By Daniel d'Andrada

Update tests

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2016-06-20 14:39:15 +0000
3+++ debian/changelog 2016-07-25 18:44:12 +0000
4@@ -1,3 +1,10 @@
5+unity-api (7.117) UNRELEASED; urgency=medium
6+
7+ * ApplicationInfoInterface: remove "stage" property
8+ * ApplicationManagerInterface: remove "stage" role
9+
10+ -- Daniel d'Andrada <daniel.dandrada@canonical.com> Mon, 25 Jul 2016 10:55:56 -0300
11+
12 unity-api (7.116+16.10.20160620-0ubuntu1) yakkety; urgency=medium
13
14 * MirSurfaceInterface: add inputBounds property
15
16=== modified file 'include/unity/shell/application/ApplicationInfoInterface.h'
17--- include/unity/shell/application/ApplicationInfoInterface.h 2016-05-19 10:17:07 +0000
18+++ include/unity/shell/application/ApplicationInfoInterface.h 2016-07-25 18:44:12 +0000
19@@ -79,13 +79,6 @@
20 Q_PROPERTY(QUrl icon READ icon NOTIFY iconChanged)
21
22 /**
23- * @brief The application's stage.
24- *
25- * Holds the stage where this application is currently located.
26- */
27- Q_PROPERTY(Stage stage READ stage WRITE setStage NOTIFY stageChanged)
28-
29- /**
30 * @brief The application's state.
31 *
32 * Holds the current application state.
33@@ -296,8 +289,6 @@
34 virtual QString name() const = 0;
35 virtual QString comment() const = 0;
36 virtual QUrl icon() const = 0;
37- virtual Stage stage() const = 0;
38- virtual void setStage(Stage) = 0;
39 virtual State state() const = 0;
40 virtual RequestedState requestedState() const = 0;
41 virtual void setRequestedState(RequestedState) = 0;
42@@ -325,7 +316,6 @@
43 void nameChanged(const QString &name);
44 void commentChanged(const QString &comment);
45 void iconChanged(const QUrl &icon);
46- void stageChanged(Stage stage);
47 void stateChanged(State state);
48 void requestedStateChanged(RequestedState value);
49 void focusedChanged(bool focused);
50
51=== modified file 'include/unity/shell/application/ApplicationManagerInterface.h'
52--- include/unity/shell/application/ApplicationManagerInterface.h 2016-05-13 09:35:14 +0000
53+++ include/unity/shell/application/ApplicationManagerInterface.h 2016-07-25 18:44:12 +0000
54@@ -67,7 +67,6 @@
55 m_roleNames.insert(RoleName, "name");
56 m_roleNames.insert(RoleComment, "comment");
57 m_roleNames.insert(RoleIcon, "icon");
58- m_roleNames.insert(RoleStage, "stage");
59 m_roleNames.insert(RoleState, "state");
60 m_roleNames.insert(RoleFocused, "focused");
61 m_roleNames.insert(RoleIsTouchApp, "isTouchApp");
62@@ -92,7 +91,6 @@
63 RoleName,
64 RoleComment,
65 RoleIcon,
66- RoleStage,
67 RoleState,
68 RoleFocused,
69 RoleIsTouchApp,
70
71=== modified file 'include/unity/shell/application/CMakeLists.txt'
72--- include/unity/shell/application/CMakeLists.txt 2016-06-20 14:06:02 +0000
73+++ include/unity/shell/application/CMakeLists.txt 2016-07-25 18:44:12 +0000
74@@ -7,7 +7,7 @@
75
76 set(UNITY_API_LIB_HDRS ${UNITY_API_LIB_HDRS} ${headers} ${internal_headers} PARENT_SCOPE)
77
78-set(VERSION 19)
79+set(VERSION 20)
80 set(PKGCONFIG_NAME "unity-shell-application")
81 set(PKGCONFIG_DESCRIPTION "Unity shell Application APIs")
82 set(PKGCONFIG_REQUIRES "Qt5Core")
83
84=== modified file 'test/qmltest/mocks/plugins/Unity/Application/Mocks/MockApplicationInfo.cpp'
85--- test/qmltest/mocks/plugins/Unity/Application/Mocks/MockApplicationInfo.cpp 2016-05-18 13:35:36 +0000
86+++ test/qmltest/mocks/plugins/Unity/Application/Mocks/MockApplicationInfo.cpp 2016-07-25 18:44:12 +0000
87@@ -1,5 +1,5 @@
88 /*
89- * Copyright 2013 Canonical Ltd.
90+ * Copyright 2013,2016 Canonical Ltd.
91 *
92 * This program is free software; you can redistribute it and/or modify
93 * it under the terms of the GNU Lesser General Public License as published by
94@@ -27,7 +27,6 @@
95 m_name(name),
96 m_comment(comment),
97 m_icon(icon),
98- m_stage(MainStage),
99 m_state(Running),
100 m_focused(false),
101 m_exemptFromLifecycle(false)
102@@ -55,20 +54,6 @@
103 return m_icon;
104 }
105
106-ApplicationInfoInterface::Stage MockApplicationInfo::stage() const
107-{
108- return m_stage;
109-}
110-
111-void MockApplicationInfo::setStage(ApplicationInfoInterface::Stage stage)
112-{
113- if (m_stage != stage)
114- {
115- m_stage = stage;
116- Q_EMIT stageChanged(m_stage);
117- }
118-}
119-
120 ApplicationInfoInterface::State MockApplicationInfo::state() const
121 {
122 return m_state;
123
124=== modified file 'test/qmltest/mocks/plugins/Unity/Application/Mocks/MockApplicationInfo.h'
125--- test/qmltest/mocks/plugins/Unity/Application/Mocks/MockApplicationInfo.h 2016-05-19 10:17:07 +0000
126+++ test/qmltest/mocks/plugins/Unity/Application/Mocks/MockApplicationInfo.h 2016-07-25 18:44:12 +0000
127@@ -34,9 +34,6 @@
128 QString comment() const;
129 QUrl icon() const;
130
131- ApplicationInfoInterface::Stage stage() const;
132- void setStage(ApplicationInfoInterface::Stage stage);
133-
134 ApplicationInfoInterface::State state() const;
135 void setState(ApplicationInfoInterface::State state);
136
137@@ -71,7 +68,6 @@
138 QString m_name;
139 QString m_comment;
140 QUrl m_icon;
141- ApplicationInfoInterface::Stage m_stage;
142 ApplicationInfoInterface::State m_state;
143 bool m_focused;
144 bool m_exemptFromLifecycle;
145
146=== modified file 'test/qmltest/mocks/plugins/Unity/Application/Mocks/MockApplicationManager.cpp'
147--- test/qmltest/mocks/plugins/Unity/Application/Mocks/MockApplicationManager.cpp 2015-12-03 17:07:15 +0000
148+++ test/qmltest/mocks/plugins/Unity/Application/Mocks/MockApplicationManager.cpp 2016-07-25 18:44:12 +0000
149@@ -60,8 +60,6 @@
150 return item->comment();
151 case RoleIcon:
152 return item->icon();
153- case RoleStage:
154- return item->stage();
155 case RoleState:
156 return item->state();
157 case RoleFocused:
158
159=== modified file 'test/qmltest/unity/shell/application/tst_Application.qml'
160--- test/qmltest/unity/shell/application/tst_Application.qml 2015-12-03 17:07:15 +0000
161+++ test/qmltest/unity/shell/application/tst_Application.qml 2016-07-25 18:44:12 +0000
162@@ -66,7 +66,6 @@
163 { enum: "RoleName" },
164 { enum: "RoleComment" },
165 { enum: "RoleIcon" },
166- { enum: "RoleStage" },
167 { enum: "RoleState" },
168 { enum: "RoleFocused" },
169 { enum: "RoleIsTouchApp" },
170@@ -87,7 +86,6 @@
171 { tag: "ApplicationManager.roles[name]", role: "name", type: "string" },
172 { tag: "ApplicationManager.roles[comment]", role: "comment", type: "string" },
173 { tag: "ApplicationManager.roles[icon]", role: "icon", type: "object" },
174- { tag: "ApplicationManager.roles[stage]", role: "stage", type: "number" },
175 { tag: "ApplicationManager.roles[state]", role: "state", type: "number" },
176 { tag: "ApplicationManager.roles[focused]", role: "focused", type: "boolean" },
177 { tag: "ApplicationManager.roles[isTouchApp]", role: "isTouchApp", type: "boolean" },
178@@ -143,7 +141,6 @@
179 { tag: "ApplicationInfo.properties[name]", property: "name", type: "string" },
180 { tag: "ApplicationInfo.properties[comment]", property: "comment", type: "string" },
181 { tag: "ApplicationInfo.properties[icon]", property: "icon", type: "object" },
182- { tag: "ApplicationInfo.properties[stage]", property: "stage", type: "number" },
183 { tag: "ApplicationInfo.properties[state]", property: "state", type: "number" },
184 { tag: "ApplicationInfo.properties[requestedState]", property: "requestedState", type: "number" },
185 { tag: "ApplicationInfo.properties[focused]", property: "focused", type: "boolean" },

Subscribers

People subscribed via source and target branches

to all changes: