Switching activity while creating it from PlasmaScript
ClosedPublic

Authored by ivan on Jul 18 2016, 4:16 PM.

Details

Summary

Containment creation relies on the current activity, so
we need to change the current activity when creating one
from PlasmaScript in order for the Containment to be created
correctly.

Test Plan

Tested with:

print(currentActivity());
var id = currentActivity();
var desktops = desktopsForActivity(id);
print(desktops.length);
for (var i = 0; i < desktops.length; ++i) {
    print(desktops[i].id);
}

var id = createActivity("Day 4 - Test 1 - " + activities().length);
var desktops = desktopsForActivity(id);
for (var i = 0; i < desktops.length; ++i) {
    print(desktops[i].id);
}

Diff Detail

Repository
R120 Plasma Workspace
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
ivan updated this revision to Diff 5280.Jul 18 2016, 4:16 PM
ivan retitled this revision from to Switching activity while creating it from PlasmaScript.
ivan updated this object.
ivan edited the test plan for this revision. (Show Details)
ivan added reviewers: Plasma, mart.
Restricted Application added a project: Plasma. · View Herald TranscriptJul 18 2016, 4:16 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
ivan edited the test plan for this revision. (Show Details)Jul 18 2016, 4:18 PM
mart accepted this revision.Jul 18 2016, 9:12 PM
mart edited edge metadata.
This revision is now accepted and ready to land.Jul 18 2016, 9:12 PM
This revision was automatically updated to reflect the committed changes.