/srv/irclogs.ubuntu.com/2016/03/08/#ubuntu-unity.txt

=== morphis__ is now known as morphis
tsdgeosgreyback: ping comment on https://code.launchpad.net/~gerboland/unity8/window-width-height-changes-acted-upon-always/+merge/28666509:56
greybacktsdgeos: thanks, will reply09:59
cimipstolowski, hi! can we have again a silo with the filters?10:34
pstolowskicimi, we do have it. i need to rebuild due to doc updates in scopes-api, but it works anyway10:42
cimipstolowski, # ?10:47
pstolowskicimi, 5410:48
pstolowskicimi, i'm testing silo 71 with a test scope but don't see social actions; they are supported by grid layout right?11:09
cimipstolowski, they should11:09
cimipstolowski, I will have a look11:09
pstolowskicimi, my scope is here: lp:~stolowski/+junk/scope-social_actions with click pkg included in click/11:11
=== sil2100_ is now known as sil2100
cimipstolowski, I haven't tried yet, but maybe we need to define them in the template like we do for attributes12:47
cimipstolowski, query.cpp12:47
pstolowskicimi, ah, you might by right, i forgot that, let me check12:48
pstolowski* be12:48
pstolowskicimi, that didn't help. here is a dump of a sample result if that helps: http://pastebin.ubuntu.com/15327498/13:13
pstolowskicimi, and category renderer is http://pastebin.ubuntu.com/15327504/13:14
=== alan_g is now known as alan_g|lunch
=== alan_g|lunch is now known as alan_g
cimipstolowski, can you try with "socialActions": { "max-count": 4 } ?14:53
pstolowskicimi, hmm ok14:56
cimipstolowski, or in your case 214:57
pstolowskicimi, these actions are supposed to be small buttons on top of the cards right? i don't think max-count should apply to them14:57
cimior actually one14:57
pstolowskicimi, i only have 1 at a time14:57
cimiwe need that14:57
pstolowskiwhy?14:58
cimiall cards in a category need to have the same amount of items14:58
cimiand same style14:58
cimiso we need to define that14:58
cimithat's why we have max count14:58
cimitsdgeos, can you confirm that what I said is correct please?14:59
cimitsdgeos, "why we need max-count for socialActions"14:59
tsdgeoscimi: can the social actions ever wrap in two columns?15:00
tsdgeoserr15:00
tsdgeostwo rows15:00
cimimmm not anymore I think15:00
* cimi checks15:00
cimitsdgeos, indeed not anymore15:00
cimitsdgeos, so we probably dont need that anymore15:01
tsdgeoscimi: if they can't wrap we don't need the max-count since it's always there or not there15:01
pstolowskicimi, shall i try that still?15:01
cimipstolowski, well, to see if that was the bug yes, put max-count 115:01
cimipstolowski, but I might be able to remove that and do a different check15:01
pstolowskiok15:02
cimitsdgeos, that is the code for the model in cardTool15:02
cimi        onNumOfActionsChanged: {15:02
cimi            model = []15:02
cimi            for (var i = 0; i < numOfActions; i++) {15:02
cimi                model.push( {"id":"text"+(i+1), "icon":"image://theme/ok" } );15:02
cimi            }15:02
cimi        }15:02
cimiops sorry for the pasting thought were less lines15:03
cimitsdgeos, shall we assume numOfActions is always 4 ?15:03
tsdgeosyou don't need numOfActions anymore, no?15:03
tsdgeosyou just need a bool "thereIsActions"15:03
cimitsdgeos, mmm we need for the model no?15:03
cimitsdgeos, fake model no?15:04
cimicardtool mock15:04
tsdgeosthat's a fake model, just add one15:04
tsdgeosif there is actions15:04
cimiok15:04
tsdgeoscimi: pstolowski: there will still be a socialActions entry in components when there is social actions, no?15:05
pstolowskicimi, i did http://pastebin.ubuntu.com/15328150/ but still don't see them15:06
cimitsdgeos, http://paste.ubuntu.com/15328157/15:06
pstolowskitsdgeos, yeah i think so, see the above pastebin; in the simple case i had just "social-actions":"social-actions"15:06
tsdgeoscimi: yeah something like that, you can probably make it readonly too15:07
cimiok15:07
=== dandrader is now known as dandrader|afk
Saviqcimi, here's an interesting one: bug #1554602, it seems to stop processing scope comm until images are loaded ¿?16:22
ubot5bug 1554602 in unity8 (Ubuntu) "Click scope image are not cached at the right size triggering reloads on every page" [Medium,Triaged] https://launchpad.net/bugs/155460216:22
Saviqtsdgeos, josharenson ↑ - not huge prio but just interesting16:22
tsdgeosi'd say that's the wrong bug :D16:23
tsdgeosthe bug is the preview model is reset16:23
tsdgeosand it'd be great if we got an update16:23
tsdgeosbut yes, meanwhile having them in a cache if possible would help i guess16:24
tsdgeosor i don't really understand what the bug means16:24
tsdgeosdavmor2: which images you exactly mean in https://bugs.launchpad.net/ubuntu/+source/unity8/+bug/1554602 ? you mean the screenshots shown below the install button?16:25
ubot5Launchpad bug 1554602 in unity8 (Ubuntu) "Click scope image are not cached at the right size triggering reloads on every page" [Medium,Triaged]16:25
Saviqtsdgeos, yes16:26
Saviqtsdgeos, a side effect of them taking long to load is that install progress isn't reported (it goes 0% → installed, for example for uTouch)16:26
davmor2tsdgeos: the screensots yes16:27
tsdgeosSaviq: i don't think that has any relation at all16:27
Saviqtsdgeos, it does seem like it16:27
Saviqtsdgeos, the thing changes as soon as all images load up16:27
Saviqtsdgeos, which is why I said it's interesting ;)16:28
tsdgeosSaviq: i would say that's coincidental on yout side, i pressed install, got all the images loaded, the thing stayed at 0% for a while after that and then went to 100%16:28
davmor2tsdgeos: and if the images are cached why do they take so long to load each time16:28
josharensonSaviq: gotcha.. also, whats the status on the greeter silo?16:29
tsdgeosdavmor2: i don't understand that last sentence16:29
davmor2tsdgeos: and if you try on a larger app like dekko you with see the installer on 0% till the images load then it jumps up to 30%16:29
Saviqtsdgeos, may very well be16:30
davmor2tsdgeos: the screenshots are meant to be cached locally right? so why does it seem to re-download the images for each page16:30
Saviqjosharenson, it's built, so I will try and test it out before tomorrow16:30
josharensonSaviq: cool thanks16:31
tsdgeosdavmor2: who said the screenshots are mean to cached locally?16:31
davmor2tsdgeos: assumption and dobey and Saviq16:31
Saviqtsdgeos, they are cached by the network cacher at least (so network requests, not actual image requests)16:32
Saviqor well, should be16:32
tsdgeosSaviq: you mean CachingNetworkManagerFactory.cpp ?16:33
Saviqtsdgeos, yes16:34
tsdgeosSaviq: that is a noop16:34
tsdgeosSaviq: it only does things when you don't have internet16:34
Saviqtsdgeos, oh duh, really? we never got it to do the right thing? <facepalm/>16:34
tsdgeosi may be wrong16:34
tsdgeosbut by looking at the code i think that it is what it does16:35
tsdgeospstolowski: i guess making the previews be updated instead of reset is a bit of work?16:40
Saviqtsdgeos, and we're not using thumbnailer there, either? (we are for ZoomableImage, so should be able to use for screenshots, too/)16:40
tsdgeosSaviq: no we don't use the thumbnailer16:41
tsdgeosSaviq: what do you mean "we are for ZoomableImage"?16:42
Saviqtsdgeos, AFAIK we are using for ZoomableImage (since there was a bug about us requesting a lot of (-1, -1) images)16:42
Saviqor ones much bigger than the screen16:42
pstolowskitsdgeos, yes. i plan to do this in near future16:43
tsdgeosSaviq: we do not mangle urls from what i can see16:43
tsdgeospstolowski: that'd be nice :)16:44
Saviqtsdgeos, ok well, we probably should :)16:44
pstolowskilet me actually create a card for this16:45
Saviqtsdgeos, bug #1536814 fwiw16:45
ubot5bug 1536814 in unity8 (Ubuntu) "thumbnailer called with wrong width in scope preview" [Medium,Fix released] https://launchpad.net/bugs/153681416:45
Saviqtsdgeos, aah that's because this was image://thumbnailer/ already coming from the scope16:46
tsdgeosSaviq: yes, but that's because he gives us thimbnailer urls16:46
tsdgeosand why we should be veeeeeeeeeeery careful about mangling urls from the scope16:46
tsdgeoswe could end up destroyign valid urls16:46
Saviqright, we should probably mangle them to be thumbnailer ones unless they are already thumbnailer :P16:46
tsdgeosbut yeah i guess we can check for starts with http:// or something16:46
Saviqor maybe simply if they're not image://16:46
Saviqsince that's the only thing thumbnailer won't be able to deal with16:47
tsdgeosnot sure how smart the thumbnailer is with regards to remote images being updated if at all16:47
Saviqin theory16:47
Saviqtsdgeos, however smart it is, it *should* be at least as smart as Qt is (and I believe it is)16:47
tsdgeoswell Qt doesn't save things on disk16:48
tsdgeosso at worst a reboot will for sure give you a new image16:48
tsdgeosbut yes, worth checking16:49
Saviqwell, yeah, in that sence thumbnailer should be smarter ;)16:49
tsdgeosa bit moot once pawel implements the model updating16:49
Saviqand then we can do away with BlahBlahBlahFactory16:49
tsdgeosbut still would help with going to previews you've already been16:49
Saviqtsdgeos, not really, still first-time load would be improved16:49
Saviqtsdgeos, as you go out and back in to a preview16:49
tsdgeosyes, but mentally that's "less bad"16:50
Saviqsure, less of an improvement, not moot ;)16:50
tsdgeosyes16:50
Saviqbut also - an easier one :)16:50
=== dandrader|afk is now known as dandrader
=== vrruiz_ is now known as rvr
cimiSaviq, on that bug, I know you discussed with albert but the reason for the refresh is simple: the previewmodel gets reset on action18:03
cimiSaviq, so we basically reload the preview - pawel is aware18:03
cimiiirc18:03
Saviqcimi, yes, I know, but it's orthogonal to us not caching the images, or seemingly waiting for the images to load before updating the installation progress18:25
cimiSaviq, even if we cache the images, the components will still be recreated18:30
cimisorry18:30
cimiif we unset the images from the model18:30
cimianyway, Ill discuss with pawel tomorrow18:30
cimimy random statements afte 6pm dont make sense :)18:31
Saviqcimi, it doesn't matter if they're recreated, I mean not for the issue we're discussing here - sure, they're reloaded, but wouldn't it be better for them to be reloaded from the cache? and to not block the rest of the dash while they load? it affects first-time load just as well as the unnecessary reload18:36
Saviqcimi, and Paweł knows, he said he wants to work on that soon18:37
josharensoncimi: you still there?19:34
Saviqjosharenson, can I help?19:36
josharensonSaviq: just some general dash architecture questions. I can send an e-mail19:37
Saviqkk19:37
josharensonI mean, I'll ask you too19:37
josharenson1 min19:37
josharenson... more like 5 min19:39
josharensonSaviq: e-mailed you something19:52
Saviqjosharenson, replied, I hope I've not muddied the waters even more20:15
josharensonSaviq: reading.. ive figured a little more out in the meantime as well20:16
josharensonSaviq: ah, dashcontent is the one place albert told me not to look as its being redone? The engineer in me should have known that the place you are told _not_ to look is the first place you should look...20:17
Saviqjosharenson, lol, yes, in the sense that the navigation model for this whole thing is going away soon20:17
josharensonok20:17
Saviqjosharenson, but to understand what it is today - yeah that's it20:18
Saviqjosharenson, I won't link you to the new navigation docs just yet :)20:18
josharensonSaviq: gotcha, and your e-mail makes sense, thanks20:18
josharenson:-) ok20:18
Saviqjosharenson, you need to get to terms with what it is now, so you can see what will actually change20:19
josharensonSaviq: good point20:19
cimijosharenson, here I am22:29
josharensoncimi: :-) saviq got most of my questions, no worries22:29
josharensoncimi: I sent an e-mail... feel free to wait until tomorrow to read it22:29
cimijosharenson, oki :) saviq is too fast :)22:29
josharensonhah yeah22:29
cimican't even let me prepare dinner :)22:30

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