Merge lp:~sylvain-pineau/checkbox/gui_filter_testplan_by_id into lp:checkbox
Proposed by
Sylvain Pineau
Status: | Merged |
---|---|
Approved by: | Zygmunt Krynicki |
Approved revision: | 3598 |
Merged at revision: | 3593 |
Proposed branch: | lp:~sylvain-pineau/checkbox/gui_filter_testplan_by_id |
Merge into: | lp:checkbox |
Diff against target: |
80 lines (+28/-11) 3 files modified
checkbox-gui/checkbox-gui/WhiteListModelFactory.cpp (+16/-4) checkbox-gui/gui-engine/gui-engine.cpp (+4/-4) checkbox-ng/checkbox_ng/service.py (+8/-3) |
To merge this branch: | bzr merge lp:~sylvain-pineau/checkbox/gui_filter_testplan_by_id |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Zygmunt Krynicki (community) | Approve | ||
Sylvain Pineau (community) | Needs Resubmitting | ||
Review via email: mp+251080@code.launchpad.net |
Description of the change
This MR allow gui launchers to work correctly with testplans since the whitelist_filter settings have to matching patterns again testplan id instead of testplan names.
Only checkbox-gui is patched, the existing launchers will continue to work.
To post a comment you must log in.
14:56 <@zyga> spineau: revno 3593 does two logical changes, could you
split it please 14:56 <@zyga> spineau: specifically it doesn't say why
you use partial_id instead of the test plan name 14:57 <@zyga>
spineau: I think that using partial_id is asking for dbus path is
asking for trouble, could you use a hash of the full id insteda?
partial_id *will* clash and we'll spend a lot of time trying to debug
weird bugs from CE-QA 14:58 <@zyga> spineau: as for the second patch,
why are you ding the isValid() check there?
On Thu, Feb 26, 2015 at 2:20 PM, Sylvain Pineau /code.launchpad .net/~sylvain- pineau/ checkbox/ gui_filter_ testplan_ by_id/+ merge/251080 gui/checkbox- gui/WhiteListMo delFactory. cpp' gui/checkbox- gui/WhiteListMo delFactory. cpp 2014-03-18 16:21:43 +0000 gui/checkbox- gui/WhiteListMo delFactory. cpp 2015-02-26 13:19:17 +0000 www.gnu. org/licenses/>. engine/ PBNames. h" Factory. h" actory: :CreateWhiteLis tModel( ListModel *model, const QString &filter) names.end( ) ) { iter.value( ))) { appendRow( new WhiteListItem( iter.value( ), \ iface(PBBusName , \ p.DBus. Properties" , \ ::sessionBus( )); iface.isValid( )) { QVariant> reply = introspect_ iface.call( "Get", \ certification. PlainBox. WhiteList1" , \ toString( )); appendRow( new WhiteListItem(name, \ gui/gui- engine/ gui-engine. cpp'
<email address hidden> wrote:
> Sylvain Pineau has proposed merging lp:~sylvain-pineau/checkbox/gui_filter_testplan_by_id into lp:checkbox.
>
> Requested reviews:
> Checkbox Developers (checkbox-dev)
>
> For more details, see:
> https:/
>
> This MR allow gui launchers to work correctly with testplans since the whitelist_filter settings have to matching patterns again testplan id instead of testplan names.
>
> Only checkbox-gui is patched, the existing launchers will continue to work.
> --
> You are subscribed to branch lp:checkbox.
>
> === modified file 'checkbox-
> --- checkbox-
> +++ checkbox-
> @@ -19,6 +19,8 @@
> * along with this program. If not, see <http://
> */
>
> +#include <QtDBus/QtDBus>
> +#include "../gui-
> #include "WhiteListModel
>
> ListModel* WhiteListModelF
> @@ -58,10 +60,22 @@
> while(iter != paths_and_
> if (rx.exactMatch(
> qDebug() << iter.key().path();
> - qDebug() << " Name: " << iter.value();
> - model->
> - iter.key().path(), \
> - model));
> + // Connect to the introspectable interface
> + QDBusInterface introspect_
> + iter.key().path(), \
> + "org.freedeskto
> + QDBusConnection
> + if (introspect_
> + QDBusReply<
> + "com.canonical.
> + "name");
> + QVariant var(reply);
> + QString name(var.
> + qDebug() << " Name: " << name;
> + model->
> + iter.key().path(), \
> + model));
> + }
> }
> iter++;
> }
>
> === modified file 'checkbox-
> --- ch...