/srv/irclogs.ubuntu.com/2015/06/11/#ubuntu-app-devel.txt

=== chihchun_afk is now known as chihchun
=== chriadam is now known as chriadam|away
karniballoons: does click-buddy support (or are there plans to support) qmake projects?08:36
sturmflut284 additions/updates to the App Store over the last seven days \o/08:57
DanChapman\o/ awesome!08:58
sturmflut2In the past I usually installed every new app on my bq to test it, but it's getting too much to do that every morning09:00
sturmflut2On monday alone there were 27 changes09:01
sturmflut2If anybody is looking for a "weekend project", I think there could be some real value in a script that posts every change to the app store on social media. I even have most of the code in my app store RSS Feed generator09:04
popeythats been done09:05
popeyhttps://twitter.com/uappexplorer09:05
popeywell, i assume that's automated09:06
popeybut there's not a lot of posts.09:06
sturmflut2popey: Oooooh09:10
sturmflut2Brian really deserves an award for all of this09:12
=== _salem is now known as salem_
kalikianabrendand: ping, wrt https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/146392511:45
ubot5Launchpad bug 1463925 in ubuntu-ui-toolkit (Ubuntu) "Autopilot tests don't support convergience" [Low,Confirmed]11:45
brendandkalikiana, need a review?11:49
kalikianabrendand: the branch isn't 100% done yet, and there's a bug that prevents the bits I have from working: on my touchscreen, under unity7, the touch input prints logs but never does anything11:51
kalikianaI was hoping you might have some ideas or suggestions on what to look for11:51
=== MacSlow is now known as MacSlow|lunch
brendandkalikiana, i would say touch on desktop hasn't been tested much, so may just be broken :/12:26
brendandkalikiana, if you file a bug against autopilot with a clear test case we could have a look12:26
kalikianabrendand: I'm pondering doing this in 2 steps. I'll finish this branch to get rid of mode in all test cases. then a follow-up branch could enable using touch when touch is available12:27
kalikianathat would make lots of test cases where you'd see it12:28
kalikianabrendand: changed all instances of mode now that had do depend on the input type https://code.launchpad.net/~ubuntu-sdk-team/ubuntu-ui-toolkit/autoPilotConverge/+merge/26165812:48
kalikianathe cases left are dealing with unity7 and testing the current hard-coded mode behavior for the input device12:49
=== MacSlow|lunch is now known as MacSlow
Elleodoes anyone have any pointers for debugging an app failing to launch, but not reaching a stage where anything is written to an upstart log file? (but can be launched fine from the command line)13:24
kalikianaElleo: how about running it under X11 with no upstart?13:26
Elleomaybe, not sure I'd learn much from that which I don't already from launching from the command line though; since the X11 desktop file would have to basically be a copy of what I'm running on the command line, since it doesn't add any of the extra QML import paths and things that upstart does on the phone13:31
=== chihchun is now known as chihchun_afk
nerochiarooSoMoN: do we have a way to get screenshots for the top sites ?13:51
oSoMoNnerochiaro, nope, we don’t13:52
nerochiarooSoMoN: so in the wide view i am just going to put big black rectangles for now ?13:52
oSoMoNnerochiaro, that’s something we need to discuss with design: either we want placeholders with a favicon in the center (but that would result rather ugly I think), or we want a list view instead13:53
nerochiarooSoMoN: james mulholland is our man, right ?13:53
oSoMoNnerochiaro, can you start the conversation with design (James and Rae) to get their opinion?13:53
nerochiarooSoMoN: ok13:53
nerochiarooSoMoN: and for the top bar used to choose between the top sites and bookmarks, is there a component from the SDK that can do it, or we just use custom stuff with abstract buttons ?13:54
oSoMoNnerochiaro, I don’t know, you’ll have to check with the UITK folks13:54
nerochiarooSoMoN: ok, will do. was just a quick check in case you had an idea in mind already13:55
nerochiarothanks13:55
arcaneblasthi14:02
=== athairus_oops is now known as athairus
sturmflut2Is there a full list of command line arguments that webapp-container supports? "webapp-container --help" is incomplete and there is no man page.14:57
sturmflut2Oh, --help lists more arguments when run on the desktop rather than on the phone14:58
sturmflut2o_O14:58
dpmpopey, I think you looked into this a while ago. Could you add a comment with your findings on https://bugs.launchpad.net/ubuntu-clock-app/+bug/1324636 ?15:06
ubot5Launchpad bug 1324636 in Ubuntu Clock App "Return localized city names" [Medium,Triaged]15:06
popeywill take a look15:07
* popey assigns self15:08
brendandkalikiana, my only question would be about the semantic difference between == Touch and != Mouse15:17
brendandkalikiana, are there more than two types? i can't think of any others15:17
=== chihchun_afk is now known as chihchun
kalikianabrendand: the difference is right now theoretical, you woudn't see if they were wrong unless we get another type of device15:25
kalikianamaybe kinect :-D15:26
brendandkalikiana, maybe some comments explaining the reasoning would be helpful?15:26
kalikianabrendand: well, those places all have comments15:26
kalikianasuch as 'doesn't work on touch right now'15:27
kalikianaor select all not being implemented on touch15:27
brendandkalikiana, for example:15:28
brendand+        if base._get_input_device_class() == input.Touch:15:28
brendand50             raise NotImplementedError(15:28
brendand51                 'Drag does not work on the phone because of bug #1266601')15:28
ubot5bug 1266601 in autopilot (Ubuntu) "Pointer move with Touch backend should take into account when it is pressed" [Undecided,New] https://launchpad.net/bugs/126660115:28
brendandmaybe a bad example15:29
kalikianabrendand: what would you add there?15:29
brendandbut the text of the error should be changed15:29
brendandto not say 'phone' but rather 'touch input'15:29
kalikianaoh, good point15:30
brendandkalikiana, btw you need to request a review from either canonical-platform-qa or me specifically15:38
brendandoh no wait15:38
=== chihchun is now known as chihchun_afk
dpmthanks a lot popey16:02
sturmflut2http://sturmflut.github.io/ubuntu/touch/2015/06/11/how-to-run-standalone-html5-apps-on-an-ubuntu-device/16:40
sturmflut2I am actually surprised by how well even quite complex HTML5 games work on a device like the Aquaris E4.516:41
mzanettimardy, ping16:46
dakersturmflut2: yes thanks to oxide & the chromium upstream project16:50
sturmflut2daker: Jep!16:51
=== alexabreu is now known as alex-abreu
mzanettirpadovani, hey, mind reviewing a reminders branch? https://code.launchpad.net/~mzanetti/reminders-app/enable-deleting-notebooks-and-tags/+merge/26177418:57
nerochiarooSoMoN: pushed a few more tests to the keyboard branch (had dinner in the meantime)19:38
oSoMoNnerochiaro, thanks! I had dinner too, will now take a look19:47
nerochiarooSoMoN: thanks19:49
rpadovanimzanetti, I'm going to take a look but... the delete api wasn't in premiumn apis only?19:57
mzanettirpadovani, our API key got upgraded19:57
mzanettinot really premium, but we got access to those to methods19:58
mzanettirpadovani, read the comments in notesstore.cpp19:58
rpadovanimzanetti, ah, I see, thanks19:59
oSoMoNnerochiaro, flake8 failure20:00
nerochiarooSoMoN: what ? i could have sworn i had ran flake8 before committing20:01
oSoMoNwe should probably have a commit hook that runs the unit tests :)20:01
nerochiarooSoMoN: that's what i said :)20:03
nerochiarooSoMoN: fixed20:03
oSoMoNnerochiaro, looking at the bzr documentation for hooks, it looks like the hook has to be installed locally in your bzr plugins dir, it doesn’t look like it can be local to the branch20:04
nerochiarothat's cool. checking flake8 is a good thing in general i suspect20:04
nerochiarooSoMoN:20:04
oSoMoNyeah, you could have a general flake8 hook for all your branches, including those that don’t have a single bit of python code20:05
rpadovanimzanetti, seems it works, but minor issues: https://code.launchpad.net/~mzanetti/reminders-app/enable-deleting-notebooks-and-tags/+merge/261774/comments/65511520:14
nerochiarooSoMoN: flake8 will probably be ok with it anyway20:15
mzanettirpadovani, thanks20:16
nerochiarooSoMoN: my head is a bit messed up by now, but i think that in Browser.qml when i check "if (!chrome.visible) return" i should really be checking "if (recentView.visible) return"20:16
nerochiarooSoMoN: actually nevermind20:16
oSoMoNnerochiaro,  "if (!chrome.visible) return" is correct, as we also want to return if the history view is visible20:18
oSoMoNor if the settings view is visible20:18
rpadovanimzanetti, also, +            print("NetworkingStatus.online:", NetworkingStatus.online) it should be NetworkingStatus.Online (big O)20:18
mzanettiright... will fix20:18
nerochiarooSoMoN: then a lot of that logic needs to be revised20:19
oSoMoNnerochiaro, why?20:19
nerochiarooSoMoN: because the conditions in which shortcuts are allowed become harder and harder to read20:19
nerochiarooSoMoN: ideally we should have a shortcut class with an enabled property, to make it clear when the shortcut can be triggered20:20
nerochiarooSoMoN: or something more declarative like that20:20
nerochiarooSoMoN: right now the whole code is becoming scarily imperative20:21
oSoMoNnerochiaro, right, that sounds like a potential good idea, not sure about the implementation details, but feel free to give it a go20:21
nerochiarooSoMoN: well, not today as i have no more energy, and tomorrow i am out20:21
oSoMoNnerochiaro, ok, let’s keep it for next week then20:21
nerochiarooSoMoN: you sure bill we be allright with it ?20:21
nerochiarooSoMoN: he was in a rush to get this stuff merged20:21
nerochiarooSoMoN: i personally think it is worth it20:22
oSoMoNnerochiaro, I think it’s fine if we do it on Monday20:22
nerochiarooSoMoN: ok, i will think about the implementation tomorrow, maybe if i have time throw a sketch at you to see if it makes sense20:23
nerochiarooSoMoN: thanks for all the reviews20:23
oSoMoNsounds good20:23
rpadovanioSoMoN, wrt historyUpdateOnLoadCommitted, you add onTitleChanged and onIconChanged because it's possible the title or the icon are loaded after the loadevent has been fired so you update history to have a favicon and a title anyway, right?20:30
oSoMoNrpadovani, let me read my code again, I need to refresh my memory20:31
rpadovanioSoMoN, https://code.launchpad.net/~osomon/webbrowser-app/historyUpdateOnLoadCommitted/+merge/25936120:31
oSoMoNrpadovani, yeah, that’s correct20:32
rpadovanioSoMoN, when I change the url, all connections to old server aro dropped? Could happen that a resource of the old site is loaded after the url is changed? Same thing for scripts: is the execution stopped in the same moment the url changes? (well, I expect it's so, just to be sure)?20:46
oSoMoNrpadovani, I would expect so, that’s a question for chrisccoulson20:47
rpadovanioSoMoN, anyway, looks good to me (apart if what I wrote above doesn't happen, because could result a strange history, but we have some worst problem if isn't all dropped when the page change)20:49
rpadovanioSoMoN, just a comment: https://code.launchpad.net/~osomon/webbrowser-app/historyUpdateOnLoadCommitted/+merge/259361/comments/65512320:49
chrisccoulsonchanging the URL doesn't change what's in the webview until the load gets committed (it's still possible to get events for the current page before that - including permission requests etc)20:51
chrisccoulsonI'm not sure if that answers your question :)20:51
oSoMoNrpadovani, we don’t want to update the title if it has changed since it was last recorded, because some pages do this ugly trick to update the title continuously to achieve an ugly "scrolling title" effect20:52
rpadovanichrisccoulson, yes, thanks20:52
chrisccoulsonI should point out - WebView.url shouldn't be used for any policy decisions anywhere in an application. It should only be displayed in the addressbar :)20:53
rpadovanioSoMoN, right, but maybe the title changes for another reason (like result of a game, it says 0-0, then 0-1, and so on). But I see your point there20:53
oSoMoNrpadovani, using the page title for this kind of information is wrong anyway, and we don’t want to update the history DB everytime there is a dynamic update of the title20:54
oSoMoNrpadovani, that’s consistent with how chromium behaves20:54
oSoMoNtry e.g. browsing to http://htmlmarquee.com/title.html and open the history page20:55
rpadovanioSoMoN, okay, gotcha, let me just check a last case and then I approve it20:55
oSoMoNthanks20:56
oSoMoNrpadovani, I’m replying to your comment, for future reference20:56
oSoMoN(in case the question comes up again)20:57
rpadovanioSoMoN, but anyway the first time title is updated you update the history. I think you should add if(title){webviewInternal.storedTitle = title} in the onLoadEvent20:57
rpadovanior am I missing something?20:58
rpadovanioSoMoN, and plus you should the same check on Icon, because some sites (including Gmail) update the icon when you have a notification21:00
oSoMoNrpadovani, when we get the load event, it might be that the title hasn’t been reset yet, i.e. I’m getting a load event for page B but webview.title still has the value of page A’s title21:00
rpadovani*you should do21:00
oSoMoNrpadovani, in that case, we don’t want to set storedTitle, otherwise that would prevent the next valid title update from updating the db21:01
oSoMoNrpadovani, for the icon it’s a bit more tricky, but I don’t remember why now, let me scratch my head for a minute, it’ll come back21:01
rpadovanioSoMoN, mhh, about title: if title is valid when the onLoadCommitted is fired, then onTitleChanged isn't fired, and maybe it's fired after 10 minutes for another reason, and you're going to save the new title21:03
oSoMoNrpadovani, that’s right, but I have no way of knowing that, do I ?21:04
rpadovanioSoMoN, no, I don't have a better implementation in my mind atm, I'm just thinking to corner case about your code. If I've a better idea I'll say you21:06
rpadovanioSoMoN, don't get me wrong, I think it's better than the actually, and it's good enough to be merged. Only, it isn't perfect imo (but probably other brwosers have the same problem, because tometimes in history there are strange things)21:08
oSoMoNrpadovani, you’re right, I didn’t think it was that easy to update the favicon dynamically, but http://www.p01.org/releases/DEFENDER_of_the_favicon/ is a great example of how one can abuse this21:09
oSoMoNI’ll need a similar mechanism as for the title21:09
oSoMoNI’ll also add some comments to make the code more explicit21:10
rpadovanioSoMoN, also chromium on desktop saves also redirect (but I prefer our implementation on that)21:11
rpadovanioSoMoN, on chromium when the icon changes they update they icon in history but not the title, crazy guys: you could have the webmail icon with (3) unread, and title that says 521:13
oSoMoNhuh, are you sure they update the icon?21:14
oSoMoNoh, they do indeed21:15
oSoMoNthat’s bad21:15
rpadovanioSoMoN, well, since chromium implementation is worst than ours, let's say you add a check for the icon update, then your MR is good enough to be merged IMO21:17
rpadovanioSoMoN, sounds ok?21:17
oSoMoNsounds good :)21:17
oSoMoNI’m adding the check for the icon, and will document it in a more verbose fashion21:17
rpadovanioSoMoN, also they don't update history in real time as we do, tsk, noobs :P21:17
rpadovanioSoMoN, great! Ping me when you've done21:18
oSoMoNrpadovani, well, it’s probably actually a good thing21:18
rpadovanioSoMoN, what? I mean, open a history in a tab, open a new tab, navigate to a new site, go to the history tab, the new site isn't shown21:19
rpadovaniit sounds a bit strange21:19
oSoMoNrpadovani, is it eventually updated, or is it just that the history page is static?21:20
rpadovanioSoMoN, it seems static to me21:20
oSoMoNrpadovani, but if you reload the history page, the new entry appears, right?21:21
rpadovanioSoMoN, right21:21
oSoMoNrpadovani, I guess that’s only a limitation of having the history view implemented as a web page21:21
rpadovanioSoMoN, well, I think you can find a workaround for that, but anyway, not our problem :-)21:23
oSoMoNindeed21:23
rpadovanioSoMoN, wrt keyboard-shortcuts, the suggestions list works in a completely different way from chromium (and I prefer the chromium way) there is no way to use suggestions and continue typing. One of the thing I do on chroimium when I want to search on wikipedia is ctrl+t, type wi, a couple of times arrow down, url address becomes wikipedia because is suggested, then i type the voice I'm looking for21:35
rpadovanithis isn't possible with the actual implementation of the keyboard shortcuts for suggestions21:35
rpadovania possible way adding a shortcut (tab?) that injects the suggestion selected in the address bar. What do you think?21:36
oSoMoNrpadovani, I see what you mean, and you’re right, this is much more useful in chromium21:36
oSoMoNrpadovani, Ugo’s branch already makes it much better anyway, so I’d say we implement such an improvement in a second iteration21:36
rpadovanioSoMoN, okay. then as usability looks good to me, I take jsut a look to the code21:37
oSoMoNrpadovani, I pushed an update to my historyUpdateOnLoadCommitted branch21:38
rpadovanion it21:38
mzanettirpadovani, all fixed21:39
rpadovani5 minutes and I check :-)21:40
rpadovanioSoMoN,  I like the idea of the readonly property, it indeed improves a bit more the function! Approved :-)21:41
=== salem_ is now known as _salem
oSoMoNrpadovani, thanks21:42
rpadovanimzanetti, approved21:58
mzanettirpadovani, thanks :)21:58
mzanettirpadovani, if you are still in the mood, there's a new one by now :)21:58
rpadovanimzanetti, of course :-)21:59
oSoMoNrpadovani, I commented on https://code.launchpad.net/~rpadovani/oxide/type-info/+merge/26006522:00
* oSoMoN is headed to bed22:01
rpadovaniwell, thanks :D22:01
mzanettirpadovani, and one more :) https://code.launchpad.net/~mzanetti/reminders-app/fix-count-when-sorting/+merge/26178522:04
rpadovanimzanetti, on it, I left some comments on improve-edit-tags22:13
=== SturmFlut is now known as sturmflut2
=== sturmflut2 is now known as sturmflut
mzanettirpadovani, cool, thanks a bunch22:22
mzanettirpadovani, fixed22:55
rpadovanimzanetti, I finish another review and then I take another look22:55
mzanettirpadovani, it's not urgent... you can also go to bed if you want :D22:56
rpadovanimzanetti, nah, I prefer sleeping in the morning now uni lessons are over :-)22:57
rpadovanimzanetti, approved but not top approved so we can have also popey's opinion23:11

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