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

dholbachgood morning06:27
dholbachdavidcalle, I have another fix I need to get into trunk, it's for https://bugs.launchpad.net/developer-ubuntu-com/+bug/156563907:22
ubottuLaunchpad bug 1565639 in Ubuntu Developer Portal "Two tests fail with postgres" [Undecided,New]07:22
dholbachdavidcalle, and I suggest we add a "test all" command or something, which runs the tests both on postgres and sqlite07:22
davidcalledholbach: +1, and in the meeting with the webteam, there was mention of a Jenkins instance (they would setup) in the future :)07:43
dholbachoh wow07:43
dholbachthat'd be awesome07:43
dholbachnew MP, code reviews, jenkins runs tests, deploy... or something :-P07:43
davidcalleYes please :)07:44
davidcalledholbach: btw, the db dump is on the server, I'll load it in th db in a few minutes07:50
dholbachcool07:50
dholbachI'll let you know once I fixed the issue(s)07:50
dholbachdavidcalle, this might look oddly familiar to you: https://daniel.holba.ch/temp/:'-%28.png10:17
dholbachI'm trying to rebuild this in a test setting - the tests in postgres are already fixed10:17
davidcalledholbach: is that a messed up tree? :(10:18
dholbachI vote we should go for local testing using nothing but postgres :)10:19
dholbachor it's what I should do10:19
davidcalledholbach: I think we should change make dev to use postgre, indeed10:20
dholbachfor now I created https://bugs.launchpad.net/developer-ubuntu-com/+bug/156567610:20
ubottuLaunchpad bug 1565676 in Ubuntu Developer Portal "Add a test_all command" [High,Triaged]10:20
dholbachopinions and ideas welcome10:20
dholbachok, the find_parent function is on crack10:28
dholbachtime to add some more tests for it10:28
=== dholbach_ is now known as dholbach
dholbachdavidcalle, https://code.launchpad.net/~dholbach/developer-ubuntu-com/1565639/+merge/29085514:08
dholbachproblem solved AFAICS14:08
dholbachdpm, ^ :-)14:09
dpm\o/14:09
davidcalledholbach !14:09
davidcalleYou rock14:09
davidcalledholbach: looking at it as soon as I'm done with the krita thing14:10
dholbachdavidcalle, no worries14:11
dholbachlet me give you a test-case14:11
dholbachdpm, that now leaves some time to look at the redirects thing :)14:12
dpmdholbach, excellent. Is the call later on too late for you? If not, we can talk about it there, or alternatively tomorrow morning14:13
dholbachdpm, it's fine14:14
davidcalledholbach: by the way, I've been having troubles with loading the dbdump on staging, it's not just the "db content" we have been passed, but the whole db declaration, which conflicts a little with the staging db (user names, etc.). For the sake of rapidity, I'll quickly reproduce a basic snappy page layout instead, to test an import.14:14
dholbachsure14:15
dholbachI added instructions for testing14:16
davidcallethanks14:17
davidcalledholbach: I've a few issues when running the importer on the site: snapcraft reference doesn't generate: missing python3-requests, python3-docopt, and ultimately, it fails with http://paste.ubuntu.com/15613951/14:52
dholbachwhat what14:53
dholbachouch14:53
dholbachyeah, I have those installed locally :-(14:53
davidcalledholbach: no worries, I'm more concerned about the pastebin14:53
dholbachfeel free to leave out the reference generation for now14:54
dholbachI'll file a bug14:54
davidcalleAlright. I'm not trying with your branch yet14:54
dholbachjust remove the post_checkout_command for now14:54
davidcalleYep. Also, I can confirm I'm reproducing your trees issues :) WIll test with your branch in a short moment ;)14:55
davidcalledholbach: your branch is working on staging \o/15:18
dholbach<3 <3 <315:18
dholbachlooks like it was worth ignoring everything else today ;-)15:18
davidcalleIndeed :D15:18
dholbachdavidcalle, mhall119: I'm currently looking at implementing the small redirects app - and I'm struggling somewhat using the RedirectsView - maybe I'm doing the wrong thing? https://code.launchpad.net/~dholbach/developer-ubuntu-com/404-redirect/+merge/290887 (it's a mid-flight branch)15:26
dholbachoh... I just found https://docs.djangoproject.com/en/dev/ref/contrib/redirects/15:35
dholbachI'll try that out instead :)15:35
davidcalledholbach: woah, strange behaviour on staging. Run the importer once, it fills up. A second time, it empties everything (no more pages at all in snappy/). A third time, fills up again.15:35
dholbachlet me see if I can reproduce this15:36
dholbachI actually added a couple of tests for running imports more than once15:36
davidcalledholbach: wait, I'm wondering it the cache is not acting up...15:38
dholbachbest to check locally then - I'll do it with a fresh db15:38
dholbachdavidcalle, I ran it three times in a row, every single time the imported files were all there15:41
davidcalledholbach: maybe I need to wait more between two runs15:42
mhall119dpm: dholbach: have we let the folks supplying the chinese content know about the impending IA changes?15:42
dholbachmhall119, not AFAIK15:42
davidcallemhall119: not yet afaik15:43
dholbachdavidcalle, you're right :-((15:43
dholbachI reproduced it15:43
mhall119dholbach: are you sure about adding the RedirectView to the urlpatterns? I thought we were going to override the 404 handler to do this15:45
dholbachmhall119, I couldn't find a way to do this properly, and I just saw I need to fix something more important now :-/15:46
dholbachand maybe https://docs.djangoproject.com/en/dev/ref/contrib/redirects/ would be an option too15:46
davidcalledholbach: from my point of view, the redirect is more urgent than the importer. I can look into redirects if you want15:48
davidcalle'cause I haven't, yet :)15:48
mhall119dholbach: it doesn't look like the redirects middleware supports regex or base-path redirects, only 1:1 path matches15:48
mhall119but it might be easier to fork that, rather than start from scratch15:49
dholbachdavidcalle, ok, cool - I'll look into fixing this issue then15:50
davidcalleok :)15:50
davidcalledholbach: I'm merging your branch from today into trunk to make things easier, hold on15:51
dholbachok, thanks15:52
davidcalledholbach: done15:52
* dholbach hugs davidcalle 15:52
dpmmhall119, davidcalle, dholbach, previous call running over16:06
dholbachthought so ;-)16:08
dpmmhall119, joining the desktop docs call?16:13
mhall119dpm: sorry, got carried away with lunch16:49
dpmmhall119, got time for a quick hangout? We can reuse the same url as the previous call16:49
mhall119sure16:50

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