/srv/irclogs.ubuntu.com/2016/03/10/#ubuntu-app-devel.txt

=== JamesTait is now known as Guest2387
=== voldyman_ is now known as voldyman
=== tsimonq2alt is now known as tsimonq2-
=== tsimonq2- is now known as tsimonq2
=== chihchun_afk is now known as chihchun
=== marcusto_ is now known as marcustomlinson
=== chihchun is now known as chihchun_afk
dpmJamesTait, good morning! Quick question: which is/are the best project(s) in LP to report 1) issues with myapps' UI 2) mismatch between API keys used between clients and the store?09:15
=== chihchun_afk is now known as chihchun
popeydpm: 1) https://bugs.launchpad.net/software-center-agent  2) API keys?09:28
dpmJamesTait, popey, sorry, I meant API fields09:28
JamesTaitdpm, myapps UI problems should be reported against software-canter-agent, as popey said.09:36
dpmok cool. For the API fields, to give more context, it was about the conversation we had on e-mail recently09:37
JamesTaitdpm, API fields should probably be reported against both the client and click-package-index.  Really it's a client problem, IMO, because the API predates all clients, but it might be easier to fix on the server.09:38
dpmre: mappying of api fields store <-> clients09:38
JamesTaitYeah, I assumed it was related to that. ☺09:38
dpmcool, thanks :)09:40
dpmJamesTait, also, I've got an issue whereby an app that's been just published is being seen by the client as an old revision. I guess I can send a query to the API to see which version it returns, so can I do this manually?09:43
JamesTaitdpm, if you know the package name, curl -H 'X-Ubuntu-Channel: stable' https://search.apps.ubuntu.com/api/v1/package/{package_name} will give you the package metadata on the stable channel, with metadata for other channels embedded (under the _embedded["clickindex:channelpackage"] property).09:52
dpmJamesTait, yeah, the API seems to be returning the wrong (old) version: http://pastebin.ubuntu.com/15340450 - the latest published is 2.1+snap2, whereas it returns 2.1+snap009:57
dpmJamesTait, the app has got uploads for multiple arches: rev 1 (published, 2.1+snap0, amd64), rev 2 (published, 2.1+snap2, amd64), rev 3 (*unpublished*, 2.1+snap2, i386)09:58
dpmI wonder if the latest i386 upload is obscuring the previous one for some reason, although it shouldn't do it, as it's a different architecture09:59
dpmand I'm querying from an amd64 machine09:59
JamesTaitETOOMANYCONVERSATIONS :-/10:05
JamesTaitdpm, querying with -H 'X-Ubuntu-Architecture: i386' returns no results, which is what I'd expect because revisions 1 and 2 are amd64 only.10:08
dpmright10:09
dpmJamesTait, but it seems querying with 'X-Ubuntu-Architecture: amd64' returns revision 1 instead of the expected revision 210:11
JamesTaitdpm, right.  I can try a reindex from myapps to see if that refreshes it.  I'd like to understand why it's returning the old version, though.10:18
dpmJamesTait, I'm not sure if that could be related, but the automated review highlighted a checksum error, which neither I nor jdstrand could understand10:19
JamesTaitdpm, gimme a few minutes to see if I can get to the bottom of what's actually in the backend, then I'll hit the reindex button.10:22
dpmawesome, thanks JamesTait!10:23
JamesTaitdpm, I'm treading carefully so as not to destroy CPI again 😉  - but I do see two revisions in the backend: {u'version': [u'2.1+snap0'], u'revision': [1]} and {u'version': [u'2.1+snap2'], u'revision': [2]}.10:40
dpmis that good or bad? :)10:40
dpmdoes it mean the index just needs refreshing?10:40
JamesTaitdpm, I'm going to take a copy of that data and index it locally to try to reproduce the issue, then reindex the package and see where things stand.10:41
dpmok, cool10:41
JamesTaitdpm, it could be an indication of a bug in selecting the "latest" revision for the package.10:41
dpmok10:41
dpmlet me know if you need me to file a bug10:42
JamesTaitdpm, OK, versio 2.1+snap2 is showing for me now.10:46
=== chihchun is now known as chihchun_afk
dpmJamesTait, awesome. Did you figure out what it was?11:10
JamesTaitdpm, still digging - currently comparing pre- and post-reindex data for obvious anomolies.11:11
dpmok11:12
JamesTaitdpm, interestingly, before the reindex, r1 of that package had a later modification timestamp than r2; after the reindex, r2 is later by ~0.03s11:13
JamesTaitNot saying that's definitely the cause, but there aren't many differences.11:14
dpmoh, weird. r1 was uploaded last week, whereas r2 yesterday11:14
=== chihchun_afk is now known as chihchun
aquariusOK, confused. I have my E5 plugged in; in Ubuntu SDK, it shows in the Devices tab (as "Ubuntu Device") and says "Device Status: Ready to use". But I can't deploy to it (the deploy thing says it's not connected), and "Open SSH connection to the device" shows a terminal window for about half a second which then immediately closes. How can I go about working out what's wrong? also, it says that "Has network co11:24
aquariusnnection" is... disabled? And in the Log it says "error: device offline", although it is not offline (the browser works fine, for example)11:24
t1mpanyone knows what causes this?11:49
t1mptim@tim-mbp:~/Downloads$ phablet-shell11:49
t1mpHost [localhost]:2222 not found in /home/tim/.ssh/known_hosts11:49
t1mpWarning: Permanently added '[localhost]:2222' (RSA) to the list of known hosts.11:49
t1mpPermission denied (publickey).11:49
popeyrun it again?11:53
popeyFor a new device I always have to run it twice11:53
t1mppopey: nope, it doesn't work. I ran it multiple times.12:01
t1mppopey: but indeed the device was recently flashed12:01
=== _salem is now known as salem_
popeyhm12:01
t1mpit appears to be a device issue since it works fine with my other device12:03
t1mpunless my ssh keys are wrong and they didn't need to be pushed again on the other device?12:04
=== chihchun is now known as chihchun_afk
dpmJamesTait, just as a heads up: we did an upload of ubuntu-clock-app.ubuntucoredev earlier on today, and for that one the index seems to be correct. Meaning clients can see the latest upload, so I guess that's good news12:45
JamesTaitdpm, maybe... 😉   Things that fail all the time are usually easier to track down than things that only fail occasionally. 😃12:49
dpmindeed12:50
=== javiercrowsoft1 is now known as javiercrowsoft
aquariusjhodapp, can I, from QML, give the media hub a playlist but tell it "stop playing after exactly 2 hours" even if the playlist is longer?13:48
jhodappaquarius, sure, if you maintain the timer and your app stays in the foreground, you an just call stop on the player13:49
jhodappor pause13:49
aquariusjhodapp, yeah, but I am assuming I'm not in the foreground -- that's why I'm handing you a playlist :)13:49
aquariusjhodapp, after two hours, the phone will have locked the screen and suspended my app.13:50
jhodappother than that there's no way for media-hub to do that presently13:50
aquariusOK. So if I want the playlist to run for 2h, then I need to make sure it's 2h long :)13:50
jhodappyup13:50
aquariusthat's fine, no worries13:50
t1mpahayzen: hello. Good timing :)15:13
t1mpahayzen: I was just looking for you15:13
t1mpahayzen: looks like I have a fix for https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/155489715:14
ubot5Launchpad bug 1554897 in ubuntu-ui-toolkit (Ubuntu) "With silo050 if an app has a black background it flickers temporarily to white at startup" [High,In progress]15:14
t1mpahayzen: is there a way you can test the fix?15:14
* ahayzen ducks 15:14
ahayzen:-)15:14
ahayzent1mp, if it is in a silo i can test on device ... or i can try the mini-app with the branch15:14
ahayzenjust won't be perfectly sure, as it is super quick, but i can have a look :-)15:14
t1mpahayzen: it is not in a silo, I committed the changes 1 minute ago15:14
t1mpahayzen: yes, please do that15:14
ahayzenhehe :-)15:15
ahayzent1mp, thanks for working on it so quickly :-)15:15
zsombit1mp: one comment on the https://code.launchpad.net/~tpeeters/ubuntu-ui-toolkit/fasterWindowColor/+merge/28866115:18
t1mpzsombi: the line above your comment says: +protected Q_SLOTS:15:19
t1mpzsombi: is that what you want?15:19
ahayzent1mp, how do you test the sdk on device? just branch on device then make and make install ? or do you only test on desktop ?15:20
zsombit1mp: put the slot in the MainViewBasePrivate, that's what I want15:20
ahayzenoh there is a push_to_phone.sh ...15:20
t1mpahayzen: the easiest way is to wait for CI to run the tests and generate the .deb packages that can run on the device15:21
zsombiahayzen: hopefully works still :)15:21
ahayzenhaha yeah :-)15:21
t1mpahayzen: do you have results for the desktop already15:21
ahayzent1mp, currently building :-)15:21
zsombiahayzen: but that script only pushes the QML stuff15:21
t1mpzsombi, ahayzen: push_to_phone.sh will not work, because that only works for the updates qml files. This one needs to be compiled for ARM15:21
ahayzenzsombi, ah i see :-)15:21
ahayzeneh i'll test on desktop for now15:21
t1mpzsombi: ok, I got it.15:21
ahayzent1mp, hmm i got this when building http://pastebin.ubuntu.com/15341641/ .. and then "module "Ubuntu.Components" plugin "UbuntuComponents" not found" when i try to run :-)15:23
t1mpoh shit15:24
t1mpzsombi: ^no isTabFence15:24
t1mpahayzen: which ubuntu release are you running?15:24
ahayzent1mp, Wily15:24
t1mpahayzen: we have a patch for Qt that is only available for vivid (in the overlay ppa) and for xenial.15:25
zsombiahayzen: brilliant, go to Xenial :D15:25
ahayzenshould i somehow build under the sdk-dev thing ...15:25
ahayzenzsombi, i've got todo uni work on here rather not have Beta builds ;-)15:25
zsombiahayzen: I know, was just sayin... :P15:26
ahayzenhehe ;-)15:26
ahayzen'soon' :-)15:26
ahayzenmaybe i can just comment that out for now? as i'm not testing that part anyway15:26
ahayzenyeah commenting that line out worked :-)15:30
ahayzent1mp, from what i can see with the mini-app on the desktop it looks fixed, but i'd like to be perfectly sure with music on a device once there is a deb/silo15:31
t1mpahayzen: cool. How did you test it?15:31
t1mpahayzen: okay, I will let you know when the deb packages are done for that MR15:31
ahayzenlaunching the mini-app like 20 times and staring at the screen to see if the app goes white before dark grey15:31
ahayzen(on the desktop, and to get around the build failure i just commented out that line as it was todo with listitems)15:32
ahayzenthanks :-)15:32
t1mpahayzen: ah, nice. :) I was wondering how you got around the build failure without upgrading your system :)15:32
ahayzen:-)15:32
t1mpahayzen: in a month or so, xenial won't be beta any more. So then you can safely upgrade.15:33
ahayzenyeah, although it'll probably be Mayish before i do, as i have exams and presentations todo from this laptop15:33
t1mpand in case you are interested, I installed xenial last week and so far it has been totally stable for me.15:33
t1mpahayzen: uhh, yeah. That sounds like something important :)15:33
ahayzenfrom what i've heard it is stable :-) but Uni work so :-/ maybe if i get a spare weekend or something but unlikely15:34
ahayzent1mp, do you think this will also fix the issue of the scopes/indicators initially being white on boot? or are they done differently ?15:53
=== JanC_ is now known as JanC
t1mpahayzen: I haven't checked. But I assume that they don't use MainView.16:39
ahayzenyeah same :-/16:39
t1mpahayzen: the way to fix them may be the same as the fix for MainView though.16:39
t1mpI never noticed that they are white on boot16:39
ahayzenwonder why they are white at boot then, maybe the mako is slow16:40
t1mpif other devices are faster, that only means the issue is less visible, not that it doesn't exist16:40
t1mplet me reboot my mako to see16:40
ahayzen:-)16:41
ahayzenwhen booting i see the indicator bar go white then black ... then if i unlock the device the whole section is white then the bg and "Today" appears where the scope goes16:42
ahayzendon't remember those happening pre-silo050 but maybe i'm just looking for it after the music issues :-)16:42
t1mpI don't see it here. Not sure which version I have installed though16:43
ahayzeni just flashed the latest rc-proposed and saw it with the silo16:43
=== chihchun_afk is now known as chihchun
=== chihchun is now known as chihchun_afk
bregmais there any sort of file chooser API for apps under Ubuntu Touch?18:03
ahayzenbregma, do you mean something like content-hub ?18:05
ahayzenhttps://developer.ubuntu.com/api/apps/qml/sdk-15.04.1/Ubuntu.Content.index/18:06
balloonspopey, so looking at https://core-apps-jenkins.ubuntu.com/job/filemanager-app-ci/53/console, it seems it suffers from the same issue as docviewer, but succeeds. Should this also be wiping the download cache? It looks like it's using the cache, and thus is perhaps why it's working a-ok18:57
balloonsI'm going to assume yes, and wipe the cache unless I hear otherwise19:00
popeyballoons: yeah19:26
=== salem_ is now known as _salem

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