/srv/irclogs.ubuntu.com/2014/01/08/#ubuntu-unity.txt

kdubcould anyone take a look over? https://code.launchpad.net/~kdub/platform-api/mir-deb-bump-0.1.3/+merge/20043000:00
kdubshould be pretty simple, just bumping ABI00:00
=== duflu_ is now known as duflu
Akiva-MobileSo I am thinking of contributing a feature to unity, patch and everything, about an idea that I just thought of. I'd like to pass the idea around here first03:05
Akiva-MobileIts actually pretty mundane and simple, and has to do with moving windows with the mouse03:05
Akiva-MobileWhen an application is full screen, and you go to the top screen bar, on the white space where no menu actions are currently situated, and then HoldLeftClick, you can move the window around03:08
Akiva-MobileI basically want to extend this function to when windows are not full screen03:09
Akiva-MobileOne of the reasons why this is, is that I often find while using spaces, that my top menu bar is stuck on another virtual desktop03:10
Akiva-Mobileand I thus have to switch workspaces, or press alt+click the window to drag down.03:11
RAOFHm. I was wondering where that was going; that's an actual use-case :)03:26
RAOFOn the other hand, might this not be better solved by ensuring that the top bar is always visible?03:26
Akiva-MobileRAOF: http://discourse.ubuntu.com/t/unity-five-suggestions-for-global-menu-bar-whitespace/1392 << sorry, library closed, and now im at the coffee shop :P. Anyways, I extended my suggestion to five05:51
Akiva-MobileRAOF: The top bar being always visible... how would the logic work with vertical spaces?05:52
RAOFAkiva-Mobile: You'd just move the window down when you switched workspaces.05:52
Akiva-MobileRAOF: wouldnt that be annoying if you were trying to escape that application, and it just happened to slightly be leaking into the next workspace?05:53
Akiva-MobileRAOF: Gnome 3 doesnt have this issue though, does it...?05:54
RAOFAkiva-Mobile: Yeah, that would be awkward I guess. GNOME 3 gets around this by not having workspaces in a coherent space.05:55
Akiva-MobileRAOF: If Gnome3 had HUD, I'd definitely consider using it.05:55
Akiva-MobileRAOF: Sorry again :P06:02
Akiva-MobileRAOF: I think my idea is reasonable, and it would be neat trying to get a patch accepted by the ubuntu project. Maybe then someone will hire me as a programmer once I have that on my mantle :)06:03
RAOF:)06:03
RAOFI'd give it a go.06:03
Akiva-MobileRAOF: Any suggestion what file to start looking into? Save myself some time~06:04
RAOFSorry, no.06:04
Akiva-MobileRAOF: I'll expose my ignorance here, but will I have to do this on mir?06:05
Akiva-Mobileor will the code be transferable?06:05
RAOFNo; the Unity 8 codebase is entirely distinct.06:05
RAOFThere's not currently any window management in Unity 8 anyway :)06:05
Akiva-MobileRAOF: For mir, how much needs to be rewritten?06:05
RAOFWe're rewriting everything; using Qt5 rather than compiz, etc.06:06
MirvSaviq: FYI test failing https://bugs.launchpad.net/unity-scopes-shell/+bug/126702609:07
ubot5Ubuntu bug 1267026 in unity-scopes-shell "1 test failing resulting in FTBFS" [Critical,New]09:07
Saviqmhr3, ↑09:07
SaviqMirv, the unity-api issue is tricky :/ in theory we've identified the commit where it got better, but that one commit wasn't enough09:08
SaviqMirv, it's working fine on the stable branch, after https://bugreports.qt-project.org/browse/QTBUG-35721 has been fixed09:08
tsdgeosand the tabbar was merged, let's see all the complains :D09:09
MirvSaviq: is stable = upcoming 5.2.1? please don't say 5.3 :)09:09
tsdgeosyes09:09
Mirvok, yes I'd be planning to get qtbase and qtdeclarative snapshots (or maybe just qtdeclarative for starters)09:09
tsdgeos"Target for Qt 5.2.1 release is at the end of January \ early February."09:10
tsdgeoshttp://lists.qt-project.org/pipermail/releasing/2013-December/001557.html09:10
Mirvlarsu: if you could check (or delegate) gsettings-qt bug #1259145 at some point, it would be nice. maybe some tests shouldn't be run under xvfb? SDK team might have encountered something similar earlier, also09:12
ubot5bug 1259145 in gsettings-qt "gsettings-qt fails to build (run tests) against Qt 5.2" [Critical,New] https://launchpad.net/bugs/125914509:12
tsdgeosMirv: as said i fixed that09:12
tsdgeosit's nothing about xvfb09:12
tsdgeosit's just that the test was failing09:12
larsuMirv: I already did, it's fixed in qt09:12
larsutsdgeos: thanks again for that :)09:13
tsdgeosMirv: i.e. the x error we get we were getting before (afaics)09:13
Mirvtsdgeos: larsu: oh right I might be confused, there was the another bug report that was filed during RC1. the latest gsettings-qt build from 2012-12-19 failed still: https://launchpadlibrarian.net/160186213/buildlog_ubuntu-trusty-amd64.gsettings-qt_1%3A0.0%2B13.10.20130902.1-0~42.1~ubuntu14.04.1_FAILEDTOBUILD.txt.gz09:13
tsdgeosMirv: a recent enough snapshot of qtdeclarative stable branch should fix it09:13
Mirvtsdgeos: aha, aha, so that's also one of those that needs newer qtdeclarative?09:14
tsdgeosyes09:14
tsdgeosthey totally from QQmlPropertyMap in 5.2.009:14
tsdgeosit's far from salvageable09:14
Mirvright, in that case that's the first priority now (well aside from my ir testing)09:14
tsdgeosyou need 5.2.109:14
MirvMir09:14
Mirvthanks. I'll skip qtbase updating for now until there's a known need for a snapshot.09:15
SaviqMirv, so - we're targeting 5.2.1 then?09:16
MirvSaviq: we're targeting anything that can get all FTBFS:s fixed and image results as good as with 5.0.x. preferably it would have been 5.2.0 already.09:17
SaviqMirv, i.e. if stuff works with 5.2.1 but not 5.2.0, are we sad?09:17
SaviqMirv, yeah, that isn't working apparently :/09:17
MirvSaviq: I think it doesn't matter what we use, as long as we can use it without regressions and the 100 source packages all compile neatly against it and everything is full of flowers :)09:17
mhr3:/ seen that bug already09:18
mhr3it's some kind of race09:18
MirvI hope the qtdeclarative will resolve some of the build failures at https://launchpad.net/~canonical-qt5-edgers/+archive/qt5-beta2/+packages (gsettings-qt is one pre-requirement to move forward)09:18
SaviqMirv, so you're snapshotting qtdeclarative from the stable branch (5.2.1) now? awesome.09:18
Saviqelopio_, crap, sorry for yanking the bottom bar out from under your feet... :/09:20
Saviqelopio_, didn't know you were working on that emulator09:20
Saviqelopio_, hopefully this new emulator will be able to use one from the sdk? is there an emulator for tabs in sdk already?09:20
MirvSaviq: yes09:20
Saviqelopio_, ah, already done! ;)09:21
mhr3Saviq, mind if we start the preview meeting 15minutes later?09:21
Saviqmhr3, sure09:22
Saviqmhr3, I don't09:22
mhr3:) moving09:22
mzanettiSaviq: hey, did you come to a conclusion regarding the qml in cmake?09:24
Saviqmzanetti, I don't think I did ;)09:25
Saviqmzanetti, /me looks at the branch09:25
mzanettiSaviq: want me to summarize the possible options again?09:25
Saviqmzanetti, no, I think the only last beef I had was moving it into src/ or something09:26
mhr3Mirv, you can try to just rebuild, it might just work09:26
mzanettiah ok. yeah, gerry had the same opinion. I still think qml sources are sources too but I don't really mind as long as I don't have to open 2 project files all the time09:27
Mirvmhr3: well we don't allow flaky tests anyway, so it wouldn't change much even if it would work. but it seems to have failed every time on armhf: https://launchpad.net/~ubuntu-unity/+archive/daily-build/+builds?build_text=unity-scopes-shell&build_state=all09:28
Saviqmzanetti, I think file(GLOB_RECURSE ../qml/*.qml ../qml/*.js) will do what you need09:30
mhr3Mirv, seeing when it started happening actually helps, thx09:30
mzanettiSaviq: ok. I'll change it09:31
Saviqmzanetti, so leave qml/ be, and just do the GLOB again in src/09:31
mzanettiSaviq: yep09:31
Saviqmzanetti, and drop .qmlproject then, I think?09:33
mzanettiyep09:33
Saviqmzanetti, http://paste.ubuntu.com/6713876/09:34
Saviqmzanetti, that works for me09:34
Saviqmzanetti, might want to add .png / .svg etc.09:34
Saviqmzanetti, stuff that qmlproject itself does :/09:35
Mirvmhr3: ok, great, indeed there is a certain point09:35
mzanettiSaviq: on a first thought I'd say that's not needed, given that we can't really do much with them in the IDE anyways. But I'm not opposed to it09:36
Saviqmzanetti, you can view them at least09:37
Saviqmzanetti, and see a list of them in the project explorer09:37
Saviqmzanetti, which is useful09:37
mzanettiok09:37
Saviqmzanetti, .png, .svg, .sci09:38
Saviqmzanetti, and see if we have any other09:38
mzanettiack09:38
Saviqmzanetti, http://paste.ubuntu.com/6713935/ is probably enough... after all we want all files from under qml/ to show up09:47
mzanettiSaviq: true... any idea how to make the importPaths statement work?09:48
mzanettiI tried this, but doesn't seem to work: add_definitions(-DQML_IMPORT_PATH=builddir/plugins:builddir/modules:builddir/tests/plugins:builddir/tests/utils/modules)09:48
Saviqmzanetti, do we actually need that?09:49
mzanettiits not totally essential. but for some plugins we'd get code completion09:49
Saviqmzanetti, that's *if* QtCreator would actually honor that09:49
mzanetti:D09:49
Saviqmzanetti, which I doubt it would09:50
mzanettifor qmake based projects apparently setting QML_IMPORT_PATH should work09:50
MirvSaviq: would you have some time to test qtdeclarative stable head compilation? at least when combined with our packaging + patches, I'm getting http://pastebin.ubuntu.com/6713954/ (git hash used is there in the directory)09:52
SaviqMirv, sure, sec09:53
Mirvthis is with normal qt 5.2.0 otherwise (qtbase + qtxmlpatterns)09:54
SaviqMirv, I imagine this says "you need newer qtbase"09:55
MirvSaviq: I wish even stable branch would be safe from the interdependencies :)09:57
Mirvbut sure, I wouldn't be surprised. the referrals failing are to qtdeclarative's own sources, but maybe something in qtbase changed about finding sources.09:58
mzanettiSaviq: https://code.launchpad.net/~mzanetti/unity8/qml-in-cmake-take2/+merge/20079310:13
mzanettithanks :)10:15
Saviqmzanetti, still not using colocated branches, btw? ;)10:16
mzanettinope10:16
mzanettibut my disk space would appreciate it I guess10:17
SaviqMirv, actually10:18
SaviqMirv, qtdeclarative compiled fine here10:18
SaviqMirv, clean chroot with qt5-beta210:18
mzanettiSaviq: where did you get the plugin from?10:20
Saviqmzanetti, lp:~fboucault/bzr-colo/colo-push/ for some reason10:20
Saviqmzanetti, but lp:bzr-colo is probably a better source10:21
dandradertsdgeos, about the horizontalJournal Q_ASSERt10:22
dandradertsdgeos, I thought that the signal would only be emitted if the operation was async10:22
tsdgeosnope10:22
dandradertherefore that slot would only be called in the async case10:22
mhr3Saviq, you in a call already?10:22
Saviqmhr3, no10:22
tsdgeosdandrader: nope10:22
tsdgeosdandrader: which Q_ASSERT in horizontalJournal ?10:23
tsdgeosignore me10:23
tsdgeoscan't read10:23
tsdgeosok10:23
tsdgeos:D10:23
dednickis s-jenkins down?10:28
mzanettidednick: works for me10:29
dednickmh.10:29
dandradertsdgeos, that one in itemCreated slot10:30
tsdgeosyes yes10:30
dednickstupid dns thing again... sigh10:31
tsdgeosdandrader: was lost in the way you built the sentence and how my brain read it10:31
* mzanetti wishes we could wake up the screen by double tapping it10:49
MirvSaviq: hrm!11:11
=== daek_ is now known as Daekdroom
dednickmzanetti: any idea? https://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-trusty/832/console11:39
mzanettidednick: I've seen the same in one of my branches. So far I hoped it's temporary woes... seems not :/11:39
mzanettiSaviq: ^ ?11:40
Saviqhmmmpf11:41
mhr3isn't that debian saying "you really need to bump the version"?11:41
Saviqmzanetti, why does qmluitests build the package at all?11:41
Saviqmhr3, yeah it kind of is11:41
Saviqmhr3, but why would it suddenly start now?11:42
SaviqTBH I never understood when dpkg starts complaining about that11:42
mhr3error: ...  binary file contents changed11:42
mzanettiSaviq: we've always built the package for qmltests11:43
Saviqmhr3, ah, so you're saying it doesn't care until you change a binary file?11:43
=== _salem is now known as salem_
mhr3Saviq, i'm no debian pro, but seems that way11:43
Saviqinteresting...11:44
=== dandrader is now known as dandrader|afk
dednickwtf. my character map just changed, but it's still showing correct layout in region settings11:46
Saviqmzanetti, so what we're missing probably is bumping the version before building the package11:46
Saviqmzanetti, but why do we build the package at all?11:46
mzanettiSaviq: that was the most straight forward way to get it done in jenkins11:46
dednickfunny thing is, i only have uk english installed... weird11:46
Saviqmzanetti, but that doesn't build the mocks etc. does it?11:47
mzanettiSaviq: sure it does. it's installed into the unity8-fake-env package11:47
Saviqmzanetti, I'm not sure that's true - not for *all* the mocks at least11:49
Saviqmzanetti, anyway11:49
mzanettihmm, ok. I might miss something11:49
Saviqmzanetti, do you have access to the job?11:49
mzanettiyes, I do11:49
Saviqmzanetti, the pbuilderjenkins command11:50
Saviqmzanetti, doesn't use the hooks as defined in the job11:50
Saviqmzanetti, if that's on purpose, add H05set_package_version there and we should be good11:51
mzanettiSaviq: added11:51
Saviqmzanetti, dednick restarted the job, will be at http://s-jenkins.ubuntu-ci:8080/job/unity-phablet-qmluitests-trusty/83411:52
mzanettidednick: I restarted your job. lets see what happens11:52
mzanettioh11:52
dednickta11:52
=== dandrader|afk is now known as dandrader
mzanettilooks better, yes12:00
mzanettiSaviq: I've changed the job to inherit hooks from upstream jobs and just add the B09qmltests etc12:03
Saviqmzanetti, yup12:03
mzanettilets hope I didn't break it. You'll know where to find me in that case12:03
Saviqmzanetti, I DO KNOW WHERE TO FIND YOU!12:04
mzanetti:D12:04
* mzanetti hides12:04
Saviqmzanetti, http://s-jenkins.ubuntu-ci:8080/job/unity-phablet-qmluitests-trusty/834/console12:11
SaviqStarted by user Saviq12:11
SaviqStarted by user mzanetti12:11
Saviqinteresting ;D12:11
Saviqmust be we triggered the exact same configuration and jenkins combined that into one12:12
mzanettiheh12:13
mzanettiI'd rather bet on a bug in jenkins :D12:13
Saviq/food12:22
Saviqtsdgeos, hJournal ready for merging or are you searching for the assert?12:43
tsdgeosSaviq: ready for merging12:43
tsdgeosi forgot to check the failure and reapprove12:43
Saviqtsdgeos, k12:44
tsdgeostest_show_hud_button_appears ?12:44
tsdgeosweird12:44
tsdgeoslet's see next run12:44
Saviqtsdgeos, yeah, it does fail sometimes12:45
=== alan_g is now known as alan_g|afk
=== alan_g|afk is now known as alan_g|lunch
MirvSaviq: one of these days I learn to attribute all mysterious immediate failures to syncqt when snapshot builds don't work13:22
mzanettideleting the hud-service binary wasn't such a good idea :/13:24
SaviqMirv, ;)13:25
Saviqmzanetti, btw, we've missed ../tests/*qml ../tests/*js :/13:25
mzanettiSaviq: true. I'll fix13:26
=== alan_g|lunch is now known as alan_g
tsdgeoskgunn: you increased the dependency of unity-mir to mir* 0.1.3 but that's still not out, no?14:02
tsdgeosgreyback: ok, https://code.launchpad.net/~aacid/unity-mir/application_manager_tests/+merge/180898 should be ready14:07
tsdgeosCI is failing to compile because the ↑↑↑ change14:07
greybacktsdgeos: \o/ thanks!!14:07
tsdgeosif you want to try now in the phone14:08
tsdgeosjust do14:08
tsdgeos-               libmirserver-dev (>= 0.1.3),14:08
tsdgeos-               libmirclient-dev (>= 0.1.3),14:08
tsdgeos+               libmirserver-dev (>= 0.1.2),14:08
tsdgeos+               libmirclient-dev (>= 0.1.2),14:08
tsdgeoson the control file14:08
tsdgeosit worked for me14:08
greybacktsdgeos: ok14:13
elopio_Saviq: I was trying to use the tab bar from ubuntu ui toolkit, but it causes a couple of problems. The biggest is that when trying to open the files & folders scope, it tries to click on the right border of the screen and nothing happens there.14:17
elopio_I need to make a workaround on the toolkit emulator before it's usable by unity.14:17
=== elopio_ is now known as elopio
kgunntsdgeos: yes...release team is testing new mir, so they had to approve and push the bump14:19
kgunnit should be over soon (and hopefully mir out soon)14:20
tsdgeosgreat14:20
tsdgeos;)14:20
Saviqelopio, ack14:21
elopioSaviq: but I need help from my branch, on mako there are failures that don't seem related to my branch. I was hoping to find aacid here today.14:21
Saviqelopio, tsdgeos === aacid14:22
Saviqhe's crypto, we know14:22
Saviq;)14:22
* tsdgeos hides behind his nicks14:22
tsdgeoselopio: need help?14:22
tsdgeosSaviq: remember we talked about the "Please enter SIM PIN" text a while ago?14:22
Saviqtsdgeos, not really, wassup?14:23
tsdgeosSaviq: basically you said "it should come from the indicator"14:23
tsdgeosbut it's still there14:23
elopiotsdgeos: \o/ I found you!14:23
Saviqtsdgeos, right14:23
elopiolet me get something to drink and wake up a little, and I'll start bothering you :)14:23
Saviqtsdgeos, file a bug please?14:23
tsdgeosSaviq: shall i open a bug or something so someone maybe acts on it14:23
Saviqtsdgeos, ↑ that14:24
tsdgeosSaviq: against what? unity8? or?14:24
Saviqtsdgeos, affects unity8 and indicator-network14:24
tsdgeosokidoki14:24
tsdgeosman i ate too much of my fake chocolate cava bottle :D :( :-S14:26
* mzanetti googles chocolate cava bottle14:29
tsdgeoshttp://www.badamelos.com/1177-large_default/botellas-cava-benjamin-chocolate.jpg14:30
tsdgeosmzanetti: ↑↑14:30
mzanettilol14:30
mzanettileftover from new years eve?14:30
tsdgeosyep14:31
Saviqgreyback, mterry_, standup14:31
greybackmzanetti: thanks :) When I reboot, or suspend/resume, PA thinks sound is at the usual place, but is actually 0. If I wiggle the mic volume, it then works14:37
mzanettigreyback: yeah... try a "asoundctl store" with non-muted settings14:38
=== dandrader is now known as dandrader|lunch
tsdgeosSaviq: https://bugs.launchpad.net/indicator-network/+bug/126713514:42
ubot5Ubuntu bug 1267135 in Unity 8 "network-indicator should provide the "Please enter SIM PIN" text" [Undecided,New]14:42
elopioI'm back. tsdgeos, please let me know when you have some time, it seems I'll need more help than what I thought.14:44
tsdgeoselopio: now is a good moment14:45
elopiotsdgeos: the dashContentList has a currentIndex property. My problem is that the QQuickLoader and the GenericScopeViews don't have an index.14:47
elopioso I have no way to tell which is the currently selected scope.14:47
elopioI was assuming that the order of the list would give me the right index, but on mako where the music scope is to the left, my assumption breaks.14:47
tsdgeoselopio: the current scope is the one of the currentIndex?14:48
tsdgeosdashContent.model list the order of them14:49
tsdgeoswhich is actually the list of visible scopes14:50
tsdgeosas returned by Scopes14:50
elopiolet me see if autopilot can access that.14:50
tsdgeoselopio: what do you want to find out actually? name? or something else?14:50
elopiotsdgeos: well, what I need is a way to know what's the index of a scope. On the toolkit tabs I had the same problem, and they fixed it adding the a new tabIndex property to every tab.14:51
tsdgeoselopio: as said the index of a scope is it's index in the list of visible scopes14:52
tsdgeosi.e. whatever is sorting scopes it's not the ui14:52
elopiotsdgeos: right. The problem seems to be that the list of scopes returned by autopilot is not on the same order.14:55
elopio(Pdb) p self.dash.dash_content_list.currentIndex14:55
elopio114:55
elopio(Pdb) p self.scope_loaders[1].scopeId14:55
elopiou'music.scope'14:55
elopiothere's the problem, because the selected scope at this moment is 'home.scope'14:56
elopioso we shouldn't rely on the order of elements that autopilot returns.14:56
tsdgeoswhat's scope_loaders ?14:57
tsdgeosi.e. who provides that info?14:57
tsdgeosand is self.scope_loaders[0] marked as visible or not?14:58
elopiotsdgeos: self.scope_loaders = self.dash.dash_content_list.select_many('QQuickLoader')14:58
tsdgeosok14:59
elopiotsdgeos: and all of them always have visible=True, we can't rely on the visible property.14:59
tsdgeosso select_many is not giving you stuff in the corect order14:59
elopio(Pdb) p self.scope_loaders[1].visible14:59
elopioTrue14:59
elopio(Pdb) p self.scope_loaders[0].visible14:59
elopioTrue14:59
tsdgeoswhich given the name seems even reasonable14:59
elopioyes. But according to thomi, autopilot just returns the elements on the same order of the QML tree it sees.15:02
elopioas we have seen before, and now again, it seems a bad idea to rely on the order of the elements of the tree.15:02
tsdgeosso again, what do you need?15:02
tsdgeosknow the current scope?15:02
tsdgeosmaybe match it against the name of the selected tab?15:03
tsdgeosor that is what you're trying to test?15:03
elopiotsdgeos: not just know the current scope, I could use the isCurrent property for that.15:04
elopioI need to know the order of them, so I scroll to the left if the index I need is lower than the currently selected one, and scroll to the right if the index is higher.15:04
tsdgeoswell then you can use the tabs?15:07
tsdgeosi think the tabs has getters15:07
tsdgeoslet me see15:07
tsdgeosmaybe not15:07
elopiotsdgeos: I found the bug and branch for the same problem on the toolkit:15:07
elopiohttps://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/123340215:07
ubot5Ubuntu bug 1233402 in Ubuntu UI Toolkit "The Tab needs a tabIndex property" [Critical,Fix released]15:07
tsdgeosbooo15:07
tsdgeosok15:07
tsdgeos:D15:07
elopiotsdgeos: I could use the tabs instead of scrolling, but first I need to implement some changes on its emulator.15:07
tsdgeoselopio: so you want to do the change by swiping i guess, it's not ok that we add a switchToScope function15:08
elopiotsdgeos: sorry, I didn't get that last part.15:09
tsdgeoselopio: Dash.qml has a "function setCurrentScope"15:10
tsdgeoscan you use that?15:10
elopiotsdgeos: no, with autopilot it all should be black box.15:10
tsdgeosor you want to trigger the change "emulating the user touch presses"?15:10
tsdgeosok15:10
elopioI need to set the current scope only using the pointer.15:10
tsdgeosdoes autopilot know how to query models?15:11
tsdgeosif so i think that querying filteredScopes would be useful to get the order of things15:11
tsdgeosif not, someone should make autopilot able to introspect the models :D15:12
elopiotsdgeos: I think that's not possible. That's information that QML doesn't expose through the testability feature, that's what autopilot uses.15:14
elopiotsdgeos: but if you look at zsombi's branch: https://code.launchpad.net/~zsombi/ubuntu-ui-toolkit/tab-index/+merge/18876915:14
elopioit doesn't seem like a big change on the model15:14
elopioI don't know enough QML to do it myself on this case, though.15:14
mzanettigreyback: could we sort the appmanager model in a way that the focused one is at index 0?15:16
tsdgeoselopio: i'm understanding you can't access the attached properties of the listview deleagtes, no?15:16
tsdgeoselopio: i.e. i can use "index" inside a QML listview item15:16
tsdgeosand it'll give me the index15:16
elopiotsdgeos: I can access things like isCurrent and scopeId, but no, index doesn't seem to be available.15:18
elopiotsdgeos: have you used autopilot vis?15:18
greybackmzanetti: that should be the case already15:18
tsdgeosi used it once when all the stars aligned15:18
elopioit shows the QML tree as autopilot sees it. So those are the only things we can use.15:18
mzanettigreyback: seems not...15:18
tsdgeoserrrrr, is everybody getting the tabs to show in unity8?15:18
mzanettigreyback: the first app I launch is always at 015:18
greybackmzanetti: but I don't see the code to do it either15:18
tsdgeosthey don't show here :-S15:18
* tsdgeos does a clean build15:18
greybackmzanetti: suspect unity8 doing it15:19
elopiotsdgeos: I can see them. They work nicely here.15:19
mzanettignaaa15:19
mzanettigreyback: ok... I'll try to change it in my screenshotting-focusing branch15:19
greybackmzanetti: no objection here15:20
tsdgeosok, tabs are here now, maybe needed a clean build15:21
tsdgeoselopio: let me try to run the visualizer15:21
elopiothanks tsdgeos. Take a look at the TabBar inside the PageHeader. It has a selectedIndex property. And then the AbstractButtons children of that TabBar have a buttonIndex property.15:22
elopiothat's what I need. With those properties, I don't need to rely on the order of the children as autopilot sees them.15:23
tsdgeossure15:25
tsdgeosadding the property is trivial15:25
tsdgeosit's just that i'd prefer not to add extra code just for the testing15:25
tsdgeoselopio: maybe you can use the "x" property of the loaders to sort them?15:25
elopiotsdgeos: I could use that. Let me try to see if it gets ugly.15:30
=== alan_g is now known as alan_g|tea
=== rachelliu_ is now known as rachelliu
=== alan_g|tea is now known as alan_g
elopiotsdgeos: that will work nicely :) thank you.15:49
elopiowhen is your EOD?15:49
tsdgeoscool \o/15:50
tsdgeosin 1:10h aprox15:50
tsdgeos6pm spain time15:50
elopiotsdgeos: I have a meeting now, so I probably won't be able to finish my branch by then. Can you please take a look tomorrow?15:58
elopiohttps://code.launchpad.net/~elopio/unity8/open_scope/+merge/20042615:59
tsdgeossure16:00
tsdgeosSaviq: so i was thinking about the organic grid for the Dash vs the one in the gallery. Ours is always visible in full width and is designed to scrolls vertically while the one in the gallery is always full height and designed to scroll horizontally. That's not a radical problem, but introduces a few else/ifs here and there, want me to code directly for both or just catter our needs at first stage and improve later?16:05
=== dandrader|lunch is now known as dandrader
=== boiko_ is now known as boiko
kgunnmterry_: ping17:06
mterry_kgunn, hello17:06
kgunnmterry_: hey hope you're feeling better....17:06
kgunngot a question for you that i should already know :)17:06
mterry_kgunn, OK17:06
kgunnso i was cleaning up some wiki stuff....for unity817:06
kgunnand greeter section referenced17:07
kgunnhttps://launchpad.net/unity-greeter17:08
kgunnbut isn't the greeter in unity8 now ?17:08
kgunnmterry_: ^17:08
mterry_kgunn, yes.  The phablet greeter is in unity817:08
mterry_kgunn, unity-greeter is the old greeter17:08
mterry_"old"17:08
kgunnmterry_: ok...that's what i tho17:09
kgunnt17:09
kgunnmterry_: so even after you land the split...it'll still be the phablet greeter in use right ?17:09
mterry_kgunn, yes17:10
kgunnmterry_: thanks...i'll make it match17:11
mterry_kgunn, same source package (unity8) but new binary package (unity8-greeter)17:11
kgunn;)17:11
kgunnmterry_: curious...why is it delivered in a bin like that ?17:11
kgunnat least the unity-greeter17:11
mterry_kgunn, I don't follow17:11
kgunnoh nvmd...i see...17:12
kgunnmterry_: ignore me17:12
mhall119Saviq: has there been any progress on building Unity 8 on Saucy?17:18
=== jhodapp is now known as jhodapp|bbiab
=== jasoncwarner__ is now known as jasoncwarner
Saviqmhall119, there's more data on the failures, so hopefully it'll get better soon17:38
greybackfginther: hey, can I book some CI expert time for unity-mir. We've a branch that adds tests, which must run in an environment where Mir can execute. We need a hand to set up CI to deal with that18:06
=== alan_g is now known as alan_g|EOD
=== jhodapp|bbiab is now known as jhodapp
fginthergreyback, I can help but I'll need to get back to you later, I have some fires to put out19:12
greybackfginther: sure, it's far from urgent19:13
karni_Saviq: If there are any conventions on the team I didn't follow, just lemme know :) https://code.launchpad.net/~unity-team/unity8/new-scopes-horizontal-card-layout/+merge/20091020:54
=== karni_ is now known as karni
Saviqkarni, cheers21:03
Saviqkarni, jest już test "test_art_size_data"21:04
Saviqooh english ;)21:04
Saviqkarni, there's already test_art_size_data21:05
* karni paczy ;D21:05
Saviqkarni, would make sense to build test_art_image_size into it21:05
Saviqkarni, "card-size": "medium" is unsupported (and ignored, for that matter) in horizontal layout - not sure we should test that... or maybe we should, but add a "small" one, too21:06
karniSaviq: oh okay. I needed any size, I can replace that with small, as all sizes are covered in previous tests, right?21:07
Saviqkarni, why did you need a size?21:07
=== salem_ is now known as _salem
Saviqkarni, what I mean is: in horizontal layout, the card-size setting is ignored - so we should either test that setting it doesn't matter, or not set it at all21:08
karniSaviq: I looked at the code, seems I could have gone with the default21:08
karniSaviq: I'll remove that, yes21:09
Saviqkarni, for test_card_horizontal_layout, you're only checking for width, so integrating into test_card_size should work21:09
karniSaviq: I think I wanted it to test the width/height of the artImage, but we decided that need not to be tested21:09
karniSaviq: agreed on first and last comment, too. fixing.21:10
Saviqkarni, I'd rename test_*_anchors into test_*_layout, as we're not actually checking the anchors21:11
karniSaviq: agree :)21:11
Saviqkarni, and now... .left/right/top/bottom are anchor lines21:12
Saviqkarni, not pixel values21:12
Saviqkarni, so test_header_anchors should actually fail21:12
* karni looks21:12
karniSaviq: the last test? I'm not actually using anchors, the test name was confusing.21:13
Saviqkarni, that's the thing - you are ;)21:13
karnilet me do the art test refactor, and I'll push, so we're on the same page :)21:14
Saviqkarni, header.top, header.left are anchor lines (not anchors, but something that can be attach to anchors)21:14
Saviqor something that anchors can attach to21:14
* karni nods21:14
Saviqkarni, so in the last test you're comparing header.top to art.bottom, for example21:15
karnimay have gone blindfolded a bit21:15
karni+            top: template && template["card-layout"] === "horizontal" ? artShape.top : artShape.bottom21:16
Saviqkarni, that's header.anchors.top, not header.top21:16
Saviqwhich are two distinct anchor lines - what I mean is that if you revert the changes to Card.qml, the test will still pass (assuming it passes now)21:16
karniooooh right!21:16
karniSaviq: lemme fix that :) thanks for the super fast review :D21:16
Saviqkarni, so yeah, you can't compare anchor lines of different objects21:16
Saviqkarni, so you should look at x/y/width/height instead21:17
Saviqadding where necessary21:17
karniyes, all tests pass, but I obviously failed there with that anchor bit21:17
Saviqkarni, shelve changes to qml/ and run your tests suite again - make sure that all tests that should fail - do21:18
karniSaviq: regarding your first/second comment about integrating test_art_image_size into test_art_size, I'd have to name properties like "imageWidth" and "imageHeight" because most of test_art_size concerns art, while I'm testing artImage21:19
karniSo.. does it in fact make sense to pull this test into test_art_size?21:19
karnitest_art_size tests width/height of testCase.art, while test_art_image_size tests width/height of testCase.artImage21:20
karni(FWIW, bit confusing terminology ;D)21:20
karnigood suggestion. it did feel weird to write tests after the code ;D21:20
Saviqkarni, I know, sorry for that ;)21:22
Saviqkarni, was easier to write the code than tests ;D21:22
karniSaviq: no worries, I know how fun it is to improve/fix things :D21:22
karnihaha, happy I can help (and learn!)21:22
Saviqkarni, you shouldn't be testing artImage's size at all, as that component isn't even visible - the UbuntuShape around it is what we care for21:23
karniSaviq: may have gone overboard trying to cover every line of your code ;D21:24
Saviqkarni, so yeah, there's only one additional entry to test_card_size_data that should be added21:25
karniSaviq: yes, fixed that21:25
Saviqkarni, yeah, coverage for QML (or UI, for that matter) is unfortunately an arbitrary thing21:25
karnihaven't pushed yet, want to fix those anchors/pixels thing you noticed21:25
Saviqkarni, cheers21:25
karni:)21:25
karniThank you!21:25
Saviqkarni, aren't you past EOD yourself, btw?21:25
karniSaviq: You working from Poland?21:26
Saviqkarni, we're not talking about me here, are we now :P21:26
karniSaviq: I wonder, why would you ask hahahahah21:26
* karni laughs21:26
* Saviq → food21:26
Saviqkarni, just leave it here if you have more, will reply when around the keyboard later21:27
karniSaviq: thanks! :)21:27
karniSaviq: updated the MP. Left one 'XXX', can't get that line in test_header_layout to pass. I'll get something to eat and will try the shelves that you suggested to make sure stuff would fail where it should.21:52
Saviqkarni, a) test_art_layout is bad, tryCompare takes three arguments: object, propertyName, timeout22:04
Saviqso tryCompare(testCase.header.x, data.headerLeft, data.value); is bad22:04
Saviqnot to mention data.headerLeft and data.value are undefined22:05
Saviqkarni, as for the other thing... the problem is that the card is laid out only when the test is executed, the _data() function is called before that, on the default layout, so art.width is 148 then, but when you select index 5, it becomes 8022:06
Saviqbut data.left is already evaluated with 148, so the test fails22:07
Saviqkarni, http://paste.ubuntu.com/6717510/ fixes22:22
Saviqkarni, actually make that http://paste.ubuntu.com/6717513/22:23
karniSaviq: wow.. I'm surprized I wasn't thrown at that .headerLeft was not defined (I did change the name, missed that one). and tests still passed. not reassuring :(22:59
karniSaviq: fixed along your diff, appreciated https://code.launchpad.net/~unity-team/unity8/new-scopes-horizontal-card-layout/+merge/20091023:33

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!