Tuesday, 2015-10-20

*** cody-somerville has quit IRC02:08
*** cody-somerville has joined #storyboard03:54
*** cody-somerville has quit IRC04:11
*** cody-somerville has joined #storyboard05:44
*** jcoufal has joined #storyboard07:07
*** openstackgerrit has quit IRC07:46
*** openstackgerrit has joined #storyboard07:47
*** jcoufal has quit IRC09:06
*** jcoufal has joined #storyboard09:09
Zaraupdated mysql for my instance since it was giving me peculiar errors. I'm still getting them. :(10:35
Zarathis is annoying for two reasons, 1) because I don't want storyboard to do this sort of thing, and 2) because I like to review patches by trying to break them, more than by looking at the code.10:37
*** mrmartin has joined #storyboard12:10
*** jcoufal has quit IRC13:37
*** jcoufal has joined #storyboard13:40
*** jcoufal has left #storyboard13:44
SotKis it something about not being able to find a fulltext index?14:09
Zarayeah14:09
Zaraa very long 500 error14:09
SotKaha, I forgot a step to fixing it14:10
SotKsince you created the database in mysql 5.5 the fulltext indexes for the tables don't exist14:10
SotKyou'll need to add them manually14:10
Zara¬_¬14:11
Zarajust kidding, oh well :P14:11
ZaraI've been busy with conference stuff today anyway.14:11
SotK"alter table stories add fulltext search(`title`, `description`);" for the stories table for example14:12
Zaraokay, I understand it in theory, but I've barely touched sql beyond running the instructions given in the storyboard install guide; any guides for what I need to do, syntax-wise? (eg: i'm not sure if that should be `mysql -u $user -p $pass ALTER TABLES <stuff>` on the command line; I'm guessing 'probably' :))14:16
persiaI usually run `mysql -u $user -p $pass` by itself (ideally encoding the authentication so that it isn't in the command line), and then run the SQL interactiecly att he prompt (after "use $database")14:18
SotKI do what persia does14:18
persiaYou can also pass the sql directly on the command line, or with stdin.14:18
persia(or with <<< if you want to be extra fancy)14:18
SotKthe tables which are supposed to have fulltext indices (and the columns to index in those tables) can be gleaned from storyboard/db/models.py in storyboard.git14:21
Zaraahh, thanks14:30
Zarahmm, tasks have a fulltext column but not a table name14:32
Zaraoh, most of them seem to be like that. is the class name the relevant name, then?14:33
Zarabut then it can't be because it was 'stories', not 'story'14:34
*** MarkAtwood has joined #storyboard14:37
* Zara is wary of guessing at it in case she messes up her database14:39
persiaAdding an index isn't likely to do anything except possibly slow some queries.14:44
persiaAnd you can remove it with a "DROP INDEX ..." command.14:44
ZaraI'm confused because the first table I wanted to alter was 'stories', which matches the table name for the class 'story', but then none of the others which are supposed to have fulltext indices have names. I'd assumed the 'stories' in the command corresponded to the table name14:46
Zaragoing by models.py, anyway.14:48
persiaYes, the table name should be in the command.14:48
persiaYou may want to list tables, just to see.14:49
Zara(so for tasks: "alter table ??? add fulltext search(`title`);" ; I suppose I can just try out 'tasks' and see what happens, just odd because there's no __tablename__ listed in models.py.)14:49
Zaraah okay I'll try that14:49
SotKthe table name is normally the pluralised version of the class name from models.py14:50
Zaraheh, thanks. I now have a list of tables and can see that you're right. :) today I learned a thing! \o/14:52
Zaraat first I didn't realise that use storyboard; and <foo other command> had to be two separate things. that was fun14:53
Zaraooh, interesting14:57
Zaraprojects have names and descriptions14:57
ZaraI remember wanting to change it to 'title' to be consistent; mordred left a todo in model.py which sounds like he was thinking along similar lines.14:57
SotKI wish they had titles too, so it was possible to give them a prettified name14:58
Zaraokay, things should be updated on my end. time to test...15:03
Zarait works15:06
Zara\o/15:06
Zaraand I can now confirm that your patch fixes the offset problem15:07
Zarawhew15:09
Zarathanks for all your help, both of you, and glad I was able to review it at last. :)15:11
SotK\o/ thanks15:13
ZaraI'm still getting the other odd 500 errors if I try to edit the descriptions of my older stories, but that's a separate thing.15:16
*** mrmartin has quit IRC15:26
*** mrmartin has joined #storyboard15:28
*** MarkAtwood has quit IRC15:42
*** mrmartin has quit IRC16:37
*** mrmartin has joined #storyboard19:51
*** mrmartin has quit IRC20:13
*** jongchoi has joined #storyboard22:36
*** jongchoi has quit IRC22:36

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