/srv/irclogs.ubuntu.com/2016/04/05/#ubuntu-website.txt

dholbachdavidcalle, I think I'm getting closer to finding the issue wrt dropping pages after import07:18
dholbachlots of debug statements and lots of hard looking at terminal output has helped some07:18
dholbachI'll keep you posted07:18
davidcalleMorning o/07:27
davidcalledholbach: my hunch is that it has to do with the diff checking. When there is no diff between the import and the current page, it drops the page. I haven't looked at it closer, though.07:27
dholbachdavidcalle, I was able to create a test-case for it, so I hope to have it resolved soon and we will never hear from the issue again07:29
dholbachdavidcalle, mhall119: let's have a call some time when things are a bit less crazy to move all of us to postgres for good :)07:29
davidcalle:)07:29
davidcalledholbach: what, the plan is not to lobby the web team to get all sites moved to mysql?07:30
dholbachsqlite for all the things!07:30
davidcalle\o/07:31
dholbachI love starting to work from something like:07:35
dholbachFAILED (failures=1)07:35
davidcalledpm: dholbach: does that look accurate to you? (new IA redirects)08:25
dholbachdavidcalle, on staging?08:25
davidcalledholbach: dpm: link -> http://paste.ubuntu.com/15625545/ :)08:25
davidcalleMy first iteration on this is quite simplistic. Check if the url starts with $lang/$from, replace with $lang/$to, check if new url exists, if yes: redirects.08:27
dholbachdavidcalle, it looks like it matches what's in proposal #108:27
dholbachone thing we might want to think of is how we structure the "phone - get started" journey08:28
dpmdavidcalle, looks good to me, not sure about bringing "web" one level deeper08:28
dpmanyway, we can talk about it in a minute in the call. We might actually need more than 30 mins if we want to go deep into the landing page and the redirects08:30
dholbachdavidcalle, you're a hero08:30
davidcalledpm: dholbach: joining the call in 2 min, need to find a room.08:31
dholbachok08:32
davidcalledholbach: https://code.launchpad.net/~davidc3/developer-ubuntu-com/redirects-on-404-1/+merge/29096310:02
dholbachdavidcalle, checking10:05
davidcalleI don't like hardcoding them, but I haven't found a way to properly override 404 methods in Django CMS, so it's for the sake of having them asap10:05
dholbachunderstood10:06
dholbachnice work!°10:12
dholbachvery quickly done and just affects actually existing pages which are being redirected10:12
dholbachfor this we could write tests later on as well10:12
dholbachnot for this deployment, but along with an admin interface, this could be easy to test10:13
davidcalledholbach: thanks, yes, I'm not sure if js redirection will be easy to test though10:13
davidcallethinking out loud, but maybe the js code could live in another template, attached to a django redirect app, with a proper model and admin panel, then call it from the 404 template10:15
davidcalleAnyway, pushing to staging :)10:15
dholbachmh, maybe not so easy to test :)10:19
dholbachat least not with django.test.Client10:20
dholbachanyway: good work! :)10:20
davidcalle*duc autopilot will fix everything*10:23
dholbach<310:32
dholbachdavidcalle, I think I found the problem - let me see if it fixing it the most straight-forward way causes any other fallout :-)11:52
davidcalledpm: can you set the size of the RT to XS and the urgency to uber-critical ;-) ? https://portal.admin.canonical.com/9034911:53
davidcalledholbach: what is it?11:53
dholbachdavidcalle, I think it is http://paste.ubuntu.com/15628202/11:54
dholbachie when publishing ALWAYS return the public object, not the draft11:54
dholbachjust running the testsuite on both sqlite and postgres11:54
dholbachthat's the longest I ever spent on unindenting two lines of python code /o\11:55
davidcallelol11:55
dholbachnow let's hope it doesn't break anything else :-)11:55
* davidcalle crosses fingers11:56
davidcalledholbach: good luck ;) I'll start on creating /desktop11:57
dholbachhttps://code.launchpad.net/~dholbach/developer-ubuntu-com/fix-double-imports/+merge/29097812:17
mhall119dholbach: what do you mean "move all of us to postgres for good"?13:06
mhall119are you talking local development?13:06
dholbachyes13:07
dpmdavidcalle, which syntax do you generally use on d.u.c pages with CLI instructions?13:42
davidcalle<div class="twelve-col"><pre><code>...</code></pre></div>13:44
davidcalledpm ^13:44
mhall119dholbach: does the ubucon deployment use a local pip-cache like devportal does?13:44
dpmthanks davidcalle13:44
mhall119or will it pull and install from pypi?13:44
dholbachmhall119, I found it impossible to work with the instructions that were provided13:44
dholbachit didn't work at all for me13:44
mhall119what didn't?13:44
dholbachthe juju layers stuff13:45
dholbachso I just did what's in the new README.local.md file13:45
mhall119ok....so is that a "no, it doesn't use pip-cache"?13:45
dholbachthat's a "I don't know"13:45
dholbachI tried to understand it and replicate it locally, but I couldn't13:46
dpmmhall119, I think the issue is that after the website's deployment migration to juju layers no one knows how it all works13:46
mhall119ok, where is the charm code? I'll take a look at it13:46
dpmmhall119, for me, the local deployment worked the last time a few months ago, but seeing that it's not working for dholbach, something must have changed in the meantime in juju13:46
mhall119dholbach: is README.local.md in the charm code?13:47
dholbachmhall119, check the other README.mdf13:47
dholbachmhall119, check the other README.md13:47
dholbachmhall119, no, that's added in my MP13:47
mhall119ok13:47
dpmhttps://code.launchpad.net/ubucon-site13:47
dholbachthat's what I did to run it locally13:47
dpmthe ubucon-layer series in there contains the juju code13:47
mhall119ok, it doesn't *look* like it uses a local pip-cache, and even if it does it would be the django layer doing it, not our code, which is all I really needed to know to do this review13:49
mhall119dholbach: does aldryn need libxml2-dev and libxslt-dev from apt-get?13:53
dpmthanks davidcalle, using that now13:53
dholbachmhall119, I can't quite remember which of the pip bits needed these to compile13:54
dholbachlet me retry it13:54
mhall119dholbach: but something does? If so, we need to have them added to the ubucon-layer branch13:54
dholbachmhall119, I'll let you know in a minute13:55
dholbachmhall119, it's aldryn-newsblog → lxml13:56
dholbachwhich makes sense13:56
mhall119ok, then those two need to be added to http://bazaar.launchpad.net/~ubucon-site-developers/ubucon-site/ubucon-layer/view/head:/django.yaml13:57
dholbachnot that I know what I'm doing, but I'll send an MP13:59
dholbachI'll ping jcastro and marcoceppi14:02
dholbachmhall119, thanks for helping to figure this out14:02
dholbachmhall119, does a local test work for you or didn't you get that far? shall we merge it into trunk and then just leave the layers branch and the deployment to Marco?14:03
dholbachmhall119, can you merge the branches - I'm not member of the team14:07
mhall119dholbach: I haven't tried a local test14:07
dholbachok14:07
mhall119dholbach: you are now :)14:07
dholbachmhall119, that's not what I had in mind :-)14:12
mhall119I know :)14:12
dholbachdo we want to land https://code.launchpad.net/~dholbach/developer-ubuntu-com/fix-double-imports/+merge/290978 too in this same deployment? or do we not want to confuse them?14:17
=== dpm is now known as dpm-afk
=== dpm-afk is now known as dpm

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