/srv/irclogs.ubuntu.com/2011/07/17/#ubuntu-website.txt

dakermhall119, cjohnston nigelb does anyone have a log of bug 806005 ?11:47
ubot4Launchpad bug 806005 in loco-directory "Error (as opposed to validation error) given if person enters more than 32,000 for 'number of guests' (affects: 1) (heat: 7)" [Undecided,New] https://launchpad.net/bugs/80600511:47
coalwatersounds like some sort of overflow mabye?11:58
coalwatersadly i don't have access to test it12:03
coalwaterdaker, can u tell me where the validation is ?12:05
dakercoalwater, first we need the backtrace12:06
coalwaterwell, if i had access i would have tried it my self12:07
dakercoalwater, access to what ?12:07
coalwater32k sounds like the int limit12:07
coalwatercreate an event my self12:08
coalwater:D12:08
dakerthe validation should be added here http://bazaar.launchpad.net/~loco-directory-dev/loco-directory/0.2/view/head:/loco_directory/events/forms.py#L15612:08
coalwater"You can not add a new team event. You are not a member of any LoCo Teams."12:08
coalwaterit's a server side validation ?12:09
dakercoalwater, and you are not a member of any LoCo Teams ?12:09
coalwaternot really, i don't respect my loco team :D lol12:10
dakerok12:10
dakeryep we need to add a server side validation or maybe both12:10
nigelbdaker: limitation of the variable12:14
coalwateryea, i thought so12:18
Ronniedaker, coalwater: i think that django should be solve this. Its a common IntergerField() provided be django itself12:22
coalwateryea but python it self doesn't have int, double big int and such12:23
coalwaterdouble and big int are separate lol12:23
Ronniedjango itself does checking on input fields (for example IntergerField() is a normal textfield, but django checks if it is really a number, not a string). in the same checking functions i think django should check if the number does niet exceed 32-bit-ints12:26
dakerRonnie, nigelb what do you this is the max number of guests? 100 ?12:57
dakers/this/think12:58
coalwaterguests per user?13:02
coalwaterso loco direcotry thinks my name is coalwater213:03
Ronniedaker i think more than 10 is a really exception and when this happens, there is something wrong. but the only reason for limiting the number is the ValueError. Limiting the number to 50 should be more than enough i think13:04
nigelbdaker: I'll defer to what mhall119 has to say. I think ther are events with 5K participants. But definitely LC is not up for it in its current UX13:07
coalwaterthe wrong name on logon is a known bug right ?13:08
nigelbcoalwater: yeah, the fix is waiting on IS.13:08
coalwatersorry but what does IS mean ?13:08
Ronniecoalwater: infra structure team13:09
coalwaterhm i see13:09
nigelbIS is the canonical system admin team. They manage the server we run loco.ubuntu.com13:09
dakernigelb, well i think the number of guest should be fixed13:46
mhall119morning14:28
mhall119nigelb: daker: are you guys talking about people entering too large of a number for guests?14:28
dakeryep14:28
dakermhall119, morning14:29
dakerhttps://code.launchpad.net/~daker/loco-directory/fix.806005/+merge/6817314:29
mhall119daker: cool, do you know how to write tests for Django?14:39
dakerno :/14:39
mhall119I think I need to hold a team classroom session on how to write tests for django14:41
dakerthat would be awesome!14:43
mhall119daker: okay, I'm going to grab your branch and add a test case to it, then propose it back to yours so you can see it before we merge, ok?14:49
dakerok14:49
mhall119but right now, I've got to go mow the lawn in 90F temperatures :(14:50
mhall119I'll be back later14:50
dakertyt14:51
cjohnstonmornin15:12
dakermorning cjohnston15:22
coalwatermorning15:22
coalwaterand bye :D gotta go15:23
cjohnstondaker: https://code.launchpad.net/~daker/loco-directory/fix.707614/+merge/65124   pleas eadd a commit message15:24
cjohnstonPlease start adding a commit message to the MP any time you make one15:24
dakerok15:26
dakerdone15:27
cjohnstonty15:27
cjohnstonim getting ready to review it15:28
cjohnstondaker: https://code.launchpad.net/~daker/loco-directory/ltp-dj-1.315:35
dakerwhat ?15:35
cjohnstonwill that still work on older versions of django (ie.. what is used on the server its hosted on?)15:35
dakeri have just start porting it to django 1.315:36
dakerbrb15:45
cjohnstonmhall119: "Get user TZ from launchpad, use it for default TZ settings when applicable" I'm not sure that this is required anymore for LoCo Directory now that we have the default team TZ and all15:52
cjohnstonthoughts?15:52
mhall119it's not necessary17:40
cjohnstonsweet17:49
cjohnstonremoved17:49
cjohnstonwb daker17:54
dakeryo17:54
cjohnstonmhall119: you still around?17:55
cjohnstondaker: https://code.launchpad.net/~chrisjohnston/loco-directory/contact/+merge/66404   any chance you can take a look?18:01
dakersure18:02
cjohnstondaker: what is https://code.launchpad.net/~akshaytayal/loco-directory/608289/+merge/51963 still missing?18:03
dakeri think verbose_name for the country field is missing18:05
cjohnstonok..18:05
cjohnstonI'm going to just make the change myself if you will review it and then we can get it pushed18:06
dakerok18:06
dakerone other thing make the import like this : from teams.models import Country, Continent18:06
cjohnstonok18:07
cjohnstonwill that require a new migration script?18:07
dakerno18:09
dakerlook at the diff lines 75,6518:10
dakerfrom teams.models import Country18:10
daker76+from teams.models import Continent18:10
cjohnstonyup18:10
dakerjust combine them :18:11
dakerfrom teams.models import Country, Continent18:11
mhall119daker: ping18:13
cjohnstonthe verbose name was what I wasn't sure about18:13
dakermhall119, pong18:13
dakercjohnston, the verbose name doesn't affect the db18:14
mhall119daker: https://code.launchpad.net/~mhall119/loco-directory/fix.806005/+merge/68181 is a merge proposal to your branch which adds a test case18:14
cjohnstonhey mhall119.. 2 things... any chance you can take a look at the issues I had with your test, and any chance we can deploy summit today to get some of the work items closed?18:14
cjohnstonthanks daker18:14
mhall119daker: you can run it with "python manage.py test events"18:14
dakerok18:14
mhall119once you're happy with it, commit it to your ranch and push it back to LP, and I'll approve your MP into trunk18:14
dakerok18:14
cjohnstonI didnt know daker had a ranch18:14
cjohnston;-)18:14
dakerLoL18:15
mhall119cjohnston: what issues did you have with my tests?18:15
cjohnstonthey are pasted in the mp18:16
cjohnstondaker: https://code.launchpad.net/~chrisjohnston/loco-directory/608289/+merge/6818218:16
cjohnstonmhall119: https://code.launchpad.net/~mhall119/loco-directory/fixes-805280/+merge/6673618:17
mhall119cjohnston: commented on the MP18:18
cjohnstonok.. mhall119 if i do python manage.py test venues it works18:18
mhall119yeah, the teams tests are from dholbach's time or before, they need to be fixed or replaced18:18
cjohnstondone18:19
dakercjohnston, https://code.launchpad.net/~chrisjohnston/loco-directory/contact/+merge/6640418:20
* cjohnston upgraded to oneiric last night18:20
cjohnstonI have no idea what that means18:21
mhall119it means you upgraded to oneiric18:21
dakerLoL18:21
cjohnstoni didnt do anything18:21
cjohnstonlol18:21
cjohnstonnothing that i changed would be effected by that18:22
mhall119daker: looks like a db error18:22
mhall119maybe you need to try with a fresh database?18:22
mhall119daker: did you run the migration that is part of that MP?18:23
dakeryep18:23
mhall119any error when the migration ran?18:23
dakerno http://paste.ubuntu.com/645970/18:24
mhall119huh18:24
mhall119cjohnston: I've got some errands to run this afternoon, but I can do some reviews or write some tests this evening, and then maybe we'll be ready to file for a deployment on Monday18:25
cjohnstonok18:25
mhall119cjohnston: also, what would you think about me doing a classroom session on writing tests for LD?18:25
cjohnstoni dont think there is really anything outstanding that is ready18:25
cjohnstonsounds good to me mhall11918:25
mhall119cjohnston: we've got some bug fixes and also teh teams page speed improvements18:26
mhall119that have already landed18:26
cjohnstonmhall119: ?18:26
cjohnstonI was talking deploying summit18:26
mhall119oh, I'm talking LD18:27
cjohnstondaker: i just tried my mp for the event contact with no issues again18:27
mhall119when did we switch to talking about summit?18:27
cjohnstoni asked two different questions18:27
cjohnston;-)18:27
dakerok cjohnston i'll try a fresh a db18:27
cjohnstonone was deploy summit, the other was tests for your ld mp18:27
mhall119well there's your problem, I can't handle that many things18:27
mhall119it's walk or chew gum, not both18:27
cjohnstonmhall119: as far as LD goes, daker's bug which you did tests for needs to land, and i have two branches that need to land18:28
cjohnstonother than that I think LD is good to go.. no?18:28
mhall119yeah18:28
cjohnstonwhat tests need to be done?18:29
mhall119what do yuo mean?18:29
cjohnstonbut I can do some reviews or write some tests this evening, and then  maybe we'll be ready to file for a deployment on Monday18:30
mhall119oh, I meant write test cases for some of the MP's that are landing18:30
mhall119like your adding of the contacts field18:30
cjohnstondoes it need to hold based upon not having a test?18:30
mhall119I just wrote one for daker's MP18:30
cjohnstonright.. i saw that18:30
mhall119cjohnston: it doesn't need to, but I do want to get them in at some point18:31
cjohnstonok18:31
mhall119if daker approves your MP, go ahead and let it land18:31
cjohnstonim going to try to get everything landed and try to get out the translations18:31
mhall119good idea, I can write tests while we wait for translations to come in18:31
dakermhall119, cjohnston does anyone of you got a fresh db ?18:33
mhall119daker: I made one friday18:33
mhall119daker: http://people.ubuntu.com/~mhall119/loco-directory/18:33
mhall119loco_directory.db18:33
cjohnstonwhats admin mhall119 ? admin password?18:34
mhall119hmm, I don't think I made one18:34
mhall119run "python manage.py createsuperuser" once you have the db18:35
cjohnstonok18:35
mhall119ok, I'm off, talk to you guys later18:37
cjohnstoncya18:38
dakercjohnston, same error :/18:47
dakeri am using django 1.1.118:47
cjohnstonhmm18:47
cjohnstoncan you update to 1.1.2 which is the recommended?18:48
dakerok18:48
dakergood it works18:52
cjohnstonsweet18:53
cjohnstonmakes me feel better18:53
cjohnstondaker: have you worked on summit?18:53
dakeri have an item on the BP which on standby18:54
dakers/which/which is18:54
cjohnston?18:54
dakerputting the color as field19:00
dakercjohnston, https://code.launchpad.net/~daker/loco-directory/fix.806005/+merge/6817319:08
dakercjohnston, this https://code.launchpad.net/~chrisjohnston/loco-directory/608289/+merge/68182 will not work19:13
dakerrunning the migrate command will give you this :19:14
dakerfrom south.v2 import SchemaMigration19:14
dakerImportError: No module named v219:14
dakeri think the migration script was created with v0.719:15
dakerany update on this https://code.launchpad.net/~rorymcc/loco-directory/bug-600134/+merge/33995 ?20:00
cjohnstonnot that im aware of20:18
cjohnstondaker: http://bazaar.launchpad.net/~loco-directory-dev/loco-directory/0.2/view/head:/requirements.txt#L1020:18
dakercjohnston, what version used to create the migration script used here https://code.launchpad.net/~chrisjohnston/loco-directory/contact/+merge/66404 ?20:21
cjohnstoni dont remember20:22
cjohnstoni didnt create the migration for 60828920:23
cjohnstoni just used the one that was there20:23
dakeryes i know20:23
dakercjohnston, can you reverse the order of the fields ?21:05
dakerlike this :21:05
dakercontinent = models.ForeignKey(Continent, verbose_name=_('Continent'), null=True)21:05
dakercountry = models.ForeignKey(Country, verbose_name=_('Country'), null=True)21:05
cjohnstonsure21:05
cjohnstondaker: could you look at an error im getting on summit?21:05
dakershoot21:06
cjohnstonCould someone please help me with this error: NoReverseMatch: Reverse for 'summit.schedule.decorators.inner' with arguments '('',)' and keyword arguments '{}' not found.        my code is at http://pastebin.com/b63AWSXU   I can't figure out why it's throwing the NoReverseMatch.21:06
mhall119daker: we have South 0.7 available on the loco-directory server, so v2 migrations scripts should be okay, can you upgrade to 0.7 and try it again?21:07
dakercjohnston, that's the same error i was getting when i was working on the color field :/21:07
dakermhall119, that's ok it works with 0.7.321:07
mhall119cjohnston: uds.ubuntu.com is wordpress, right?21:08
cjohnstonyes mhall11921:08
cjohnstonmhall119: maybe you can help me with my error ^21:08
cjohnstonmhall119: I just posted a little bit ago another mp for summit21:08
mhall119cjohnston: we made something in ISD for exporting a WP menu and importing it into Django21:08
cjohnstondaker: the change has been pushed21:08
cjohnstonok21:08
cjohnstonthats cool21:08
cjohnstoni still dont like ahving both sites seperatly21:09
cjohnstonseems counterproductive21:09
mhall119oh wait, ours used Drupal as the source, no WP21:09
mhall119nevermind21:09
cjohnstonboo21:09
cjohnstonlol21:09
mhall119can maybe make a WP component21:10
cjohnstonmy statement still stands though about the seperate sites21:10
cjohnstonI personally would rather put the effort into merging the site21:10
mhall119it would make sense if they moved summit to live at uds.ubuntu.com/schedule or something like that21:10
cjohnstonI still don't know how well they would integrate21:10
dakercjohnston, there some spaces there it's generating an error21:10
dakercjohnston,21:11
daker+        spr = models.CharField(_("State/Province/Region"), max_length=50, null=True, blank=True)21:11
cjohnstonpushed daker21:11
cjohnstonmhall119: i mean, if nothing else the themeing is different21:12
mhall119right, summit isn't 960px is it21:12
cjohnstoncorrect21:12
cjohnstonthat's why I'd like to move everything to summit21:12
mhall119I'd like to make summit 960px21:12
cjohnstoni dont know how good it will look21:13
cjohnstonit already doesnt look great21:13
cjohnstoni wonder if it would look worse21:13
mhall119we can look into a Django CMS, we're doing that in ISD anyway21:13
cjohnstonhow much work would that be? is the code already there?21:13
cjohnstonmhall119: any idea about that error?21:14
dakercjohnston, you getting that error when you touch the models, right ?21:15
dakerare*21:15
mhall119cjohnston: no idea21:17
dakerrun run tarmac è_é !!21:19
cjohnstondaker: i edited the url and edited views21:20
cjohnstonmhall119: no idea to the error or the work/code being there?21:20
mhall119nope21:21
cjohnstonim still confused... both?21:21
mhall119ok21:22
dakeri stoped working on the color field because of this error.21:23
cjohnstonI blame mhall11921:24
mhall119me too21:24
mhall119we shouldn't let that guy do any more work on these projects21:24
cjohnstonno.. we should make that guy do all the work21:25
dakerwe should ban him from the channel :)21:25
cjohnstonand make him do all the work21:26
dakerg'night21:52
cjohnstonmhall119: if I push the code thats giving me the error, can you take a look?21:56
mhall119cjohnston: it's in a branch right? I can merge it locally and test it23:28
mhall119wait, did you mean push to LP, or push to trunk?23:28
cjohnstonlp23:42
cjohnstonmhall119: https://code.launchpad.net/~chrisjohnston/summit/today23:44
mhall119cjohnston: ok, I'll give it a look and see what I can find23:50
cjohnstonty23:52

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