Wednesday, 2010-05-19

*** Joins: kirillka (~Miranda@global01.vester.ru)00:05
*** Quits: wolog_ (~wolog@AOrleans-152-1-34-142.w90-21.abo.wanadoo.fr) (Remote host closed the connection)01:08
*** Joins: davidinc (~d5374b2e@gateway/web/freenode/x-pmizfyeqryoczdwh)01:15
*** Quits: siebrand (~beis@sm.xs4all.nl) ()01:43
*** Joins: wolog_ (~wolog@195.6.104.193)02:36
*** Joins: giallu (~giallu@fedora/giallu)02:42
*** Joins: NielsMob (~NielsSF@82-197-193-96.fiber.tweak.nl)02:50
*** Joins: Cupertino (~Cupez@unaffiliated/cupertino)02:58
*** Joins: pconrad (~4766e5e0@gateway/web/freenode/x-qnyuazlaxwdtftbm)03:18
pconradHi Everyone----I'm trying to get started with Mantis development, and I'm tring to start by running the PHPUnit tests03:18
pconradI've having some trouble following the steps involved03:19
pconradThe documentation says:  Running the unit tests is done from root directory using the following command:  $ phing test 03:19
pconradBy root directory, I assume they mean the "root of the mantis installation"03:20
pconradwhen I do that, I get the error message:03:20
pconrad-bash-3.2$ phing test Buildfile: build.xml does not exist! -bash-3.2$03:20
pconradAnd sure enough, no build.xml file in the entire tree.03:21
pconradWhat am I missing here?03:21
dhx_msomeone got rid of build.xml a short while ago, I'm not sure why/what the details are03:21
pconradhmmmm.... o kaaaaay.....03:22
pconradso, without that in place, what is the way that you run the tests?03:22
pconradThere is also this bootstrap.php thing that is mentioned in the docs, but it actually just seems to be a kind of configuration include file... it doesn't seem to do anything except define the URL for where your installation is03:23
dhx_mhttp://git.mantisbt.org/?p=mantisbt.git;a=commitdiff;h=3ea22ce73928309abfb475f0464f974b149ec80003:24
dhx_myou could probably just copy that build.xml back into the root of MantisBT03:25
dhx_mI think Paul was trying to say in that commit that our testing scripts should be held in a separate repository03:25
pconradThanks ---- this is helpful03:27
pconradBut, taking that out of the distribution without updating the documentation was not particulary helpful on "Paul's" part.03:28
pconradI'm wondering what else is going to turn up missing now....03:28
pconradafter copying this back into the root directory, I now get this, after several successful tests:03:29
pconradPHP Fatal error:  Class 'SoapClient' not found in /local/home/pconrad/public_html/mantisdev/mantisbt-1.2.1/tests/soap/SoapBase.php on line 4603:29
dhx_mhmm build.xml was added and removed on the same day... so it's not really a case of some long standing part of MantisBT suddenly going missing03:30
dhx_mbut yeah, paul didn't update the documentation that robert had fixed to allow build.xml to work03:31
dhx_mphpunit --bootstrap bootstrap.php AllTests.php03:31
dhx_mthe old method03:31
pconradExcellent---thanks!03:32
pconradPerhaps _that_ is what should be in the documentation instead of the "phing test" bit....03:32
dhx_myep it's a case of..:03:33
dhx_mRobert adds build.xml and updates documentation to using the 'phing' command instead of 'phpunit'03:33
dhx_mPaul removes build.xml but leaves Robert's updated documentation in place (thus it is now incorrect)03:33
pconradgotcha....03:33
dhx_mI'll try and talk to them later to get a resolution :)03:34
pconradGood thing you are around to help the newbies navigate the terrain. :-)03:34
dhx_mthere is usually a bunch of developers in here (and on the mailing lists to help out)... it's just that many people asking for help don't give us a chance to reply (ie. they leave after 5 minutes) :)03:35
pconradDoesn't help that I'm also learning PHPUnit, Git and Phing all at the same time....      (I'm familiar with JUnit, SVN, and Ant, so the concepts are familiar, but I've never needed their cousins until now--we learn new tools when we have to.)03:35
dhx_mare you trying to develop a plugin for MantisBT?03:37
dhx_mand yeah, Git is a little bit of a learning curve... but once you learn it, you won't look back :)03:37
pconradI think a plugin is what I want.03:38
pconradThe "new functionality" that i want to add is the following:03:38
pconrad(1) to be able to see a view similar to the one that comes up on the view_all_bug_page.php page03:39
pconradbut to be able to enable custom fields to show up as one of the fields.03:39
dhx_myou can already do that by using the "Manage Columns" page, just add custom_nameofcustomfield as a column to show03:40
pconrad(2) to be able to enable, for numeric custom fields, the ability to show a "total" at the bottom of the screen that is the sum of all the values of that numeric custom field for all the issues that match the current filter...03:40
dhx_maha03:40
pconradAh... nice... let me try that03:40
dhx_mthat isn't possible at the moment (#2)03:40
pconradok... so #1 I can do, but #2 would still require some development.03:41
dhx_mbut I wonder just how useful it would be in a paged environment03:41
pconradpaged environment?03:41
dhx_mwell issues span multiple pages (such as 20 per page) when shown via view_all_bug_page.php03:41
dhx_mso I'm not sure how useful a total of a column is at the bottom of each of those 20 pages03:42
pconradah, I see your point03:42
dhx_ma total count for all pages at once would have more use IMO03:42
pconradyes, I think that's actually what we would want.03:42
pconradMy database of issues isn't large enough yet where it goes to multiple pages03:43
pconradThe motivation is that I'm using mantis in an academic setting...03:43
pconradthe developers are also students in a course where they earn points toward their course grade03:44
pconradbut they are working on actual software projects that span multiple instances of teh course03:44
pconradisntead of "everyrone does homework 1"  then "everyone does homework 2",03:44
pconradthey have ot find an open issue, do the programmign necessary to resolve it, and thats how they earn their points03:45
pconradI assign points to each ticket03:45
pconradwhat I want is a way to easily total up how many points a given student has earned.03:45
pconradI can imagine this being usable for "billable hours" or something like that in a consulting or corporate setting too03:46
pconradif there is a work around where I don't have to do any custom development---i.e. can just use the product as is---I'm open to that idea03:46
dhx_manother approach could be to use the TimeCard plugin with custom strings03:46
dhx_mthen you can use the estimate field as "Points"03:47
pconradI'm thinking, as I type this---I wonder if I could get the same effect with just some kind of export  and then totalling up the point in a spreadsheet03:47
dhx_mand only you'd be allowed to update the "Points" field03:47
pconradclunky, but it would work---but I'd rather do it all within Mantis03:47
dhx_mthat would work too, MantisBT exports in XML... or IMO it's easier to just run a manual SQL query03:47
pconradyeah, that might work too----just write a separte "bag on the side" PHP script to directly query the SQL database...  perhaps even with a separate SQL user that is "read only"03:49
pconradso that there is no possibilit of corrupting the Mantis internals....03:49
dhx_mie. SELECT user.username, SUM(customfield.value) FROM ... LEFT JOIN ... WHERE customfield.name="points";03:49
dhx_msomething similar to that03:49
pconradhmmm... that might be a lot easier03:49
dhx_myep03:49
dhx_mperhaps the sponsorship system could also be of use03:50
pconradespecially since I'm assigning this as one of the projects in my undergrad course----that would give the student, who is a PHP and MySQL newbie, a much better shot at actually completing this in a reasonable amount of time03:50
dhx_malthough I've never used it03:50
pconradhe wuld not have to climb the mantis learning curve---he'd onl have to understand how each of the database tables, rows and columns  maps to what we see on the screen, then construct a reasonable query.03:51
pconradThanks for brainstorming this with me... it seems like a much better idea to try this "bag on the side" thing first.03:51
dhx_mI wish my University course (Computer Science + Engineering) were run in the same way... ie, work on real open source projects rather than toy problems03:51
dhx_ms/were/was/03:51
pconradeven if we eventually do try to build some kind of mantis custom functionality, prototyping it in a bag on the side is probably a good first step anyway.   We can refine it to be exactly what we want it to look like before tackling the mantis dev learning curve.03:52
dhx_myep you'd have to work out how to get custom fields working in MantisBT + how to write SQL queries against a relatively unknown database (ie, they'd have to understand how LEFT JOIN's work, etc)03:52
pconradAny suggestions for where to look in the code itself, or the documentation, for good hints on how custom fields are stored and related to issues, etc?03:54
dhx_mafaik MantisBT plugins could be used to add whatever custom functionality you like... but you'd have to spend a bit of time becoming accustomed to the MantisBT source code (which functions to use, etc)03:57
dhx_mthere isn't much internal documentation of MantisBT I'm afraid03:58
dhx_mhowever it may serve an interesting exercise for students to not have documentation at hand03:58
dhx_mand having to ask for help (in the right way) on an open source mailing list, looking through source code, etc03:58
dhx_mcore/custom_field_api.php contains most of the related code03:59
dhx_mhow much time would you expect someone to spend on this task?03:59
davidincFantahun Aberra:04:00
davidincHi04:00
dhx_mhi04:01
*** Joins: AlexM600 (~Miranda@192.109.140.36)04:02
pconradHello again dhx_m----sorry got distracted in another window... was Google Chatting with the student who is going ot be working on the project, sharing these ideas with him04:03
davidincdhx_m: I'm still having same problem regarding the html_button04:03
pconradI'm thinking probably about 24 hours of work---6 hours a week over 4 weeks.04:03
pconradtaking into account coming up to speed on PHP and MySQL as well....04:04
davidincdid you check the urlencode04:04
davidincpconrad: Can you tell me your real name.04:07
dhx_mpconrad: do the students have any prior knowledge of SQL?04:11
pconradPhill Conrad04:18
pconradmy course is here: http://www.cs.ucsb.edu/~pconrad/ccs/10S04:18
*** Joins: Rixie (~Rixie@0x4dd7390e.adsl.cybercity.dk)04:19
pconradThanks dhx_m for your help---- late here (1:19am), and I have a 9am meeting, so time to turn in.04:19
pconradTTYL04:19
pconradbye04:19
dhx_myep I'll be around04:19
dhx_mnice to hear from you04:19
dhx_mcya :)04:19
*** Quits: pconrad (~4766e5e0@gateway/web/freenode/x-qnyuazlaxwdtftbm) (Quit: Page closed)04:22
*** Joins: Kornel^aardvark (~kornel@fw1.aardvarkmedia.co.uk)04:47
*** Joins: fanno (~Morten@90.184.93.233)05:30
*** Quits: Ragnor (~Ragnor@178.1.42.132) (Disconnected by services)05:35
*** Joins: Ragnor (~Ragnor@178.1.42.132)05:36
*** Quits: Rixie (~Rixie@0x4dd7390e.adsl.cybercity.dk) (Quit: Rixie)06:56
*** Joins: mantisbt_41164 (~3942c524@gateway/web/freenode/x-aynccmqzkrvivymr)07:13
mantisbt_41164helo07:13
*** Parts: mantisbt_41164 (~3942c524@gateway/web/freenode/x-aynccmqzkrvivymr)07:13
*** Quits: AlexM600 (~Miranda@192.109.140.36) (Ping timeout: 276 seconds)08:30
*** Quits: Cupertino (~Cupez@unaffiliated/cupertino) (Quit: I give up...)08:35
*** Joins: Cupertino (~Cupez@unaffiliated/cupertino)08:37
*** Quits: Cupertino (~Cupez@unaffiliated/cupertino) (Quit: I give up...)08:51
*** Quits: fanno (~Morten@90.184.93.233) (Read error: Connection reset by peer)08:58
*** Joins: rolfkleef (~rolf@cc1080790-a.hdb1.ov.home.nl)09:38
*** Quits: kirillka (~Miranda@global01.vester.ru) (Quit: kirillka)10:00
*** Joins: fanno (~b3g@193.3.95.240)10:16
*** Quits: wolog_ (~wolog@195.6.104.193) (Remote host closed the connection)11:19
*** Quits: giallu (~giallu@fedora/giallu) (Ping timeout: 240 seconds)11:20
*** Joins: moto-moi (~hylke@cara.xs4all.nl)11:44
*** Joins: giallu (~giallu@fedora/giallu)11:46
*** Quits: daryn (~daryn@h238.109.88.75.dynamic.ip.windstream.net) (Quit: Ex-Chat)11:54
*** Joins: mantisbt_61393 (~3e995de2@gateway/web/freenode/x-gjredqmgyqiljnhf)12:09
mantisbt_61393anyone working with mantisconnect ?12:10
mantisbt_61393api12:10
*** Parts: Kornel^aardvark (~kornel@fw1.aardvarkmedia.co.uk)12:18
*** Quits: davidinc (~d5374b2e@gateway/web/freenode/x-pmizfyeqryoczdwh) (Ping timeout: 252 seconds)12:19
*** Joins: Kornel^aardvark (~kornel@fw1.aardvarkmedia.co.uk)12:19
*** Quits: mantisbt_61393 (~3e995de2@gateway/web/freenode/x-gjredqmgyqiljnhf) (Quit: Page closed)12:26
*** Quits: Kornel^aardvark (~kornel@fw1.aardvarkmedia.co.uk) (Quit: Kornel^aardvark)12:47
*** Joins: siebrand (~beis@sm.xs4all.nl)13:31
*** Joins: daryn (~daryn@rrcs-76-79-4-2.west.biz.rr.com)14:01
*** Joins: AzaToth (~azatoth@wikipedia/AzaToth)14:08
*** Quits: NielsMob (~NielsSF@82-197-193-96.fiber.tweak.nl) (Ping timeout: 240 seconds)14:39
*** Quits: giallu (~giallu@fedora/giallu) (Remote host closed the connection)16:08
*** Quits: fanno (~b3g@193.3.95.240) (Remote host closed the connection)16:43
*** Joins: fanno (~Morten@90.184.93.233)17:25
*** Quits: daryn (~daryn@rrcs-76-79-4-2.west.biz.rr.com) (Quit: Ex-Chat)18:09
*** Quits: moto-moi (~hylke@cara.xs4all.nl) (Quit: Ex-Chat)18:25
*** Quits: rolfkleef (~rolf@cc1080790-a.hdb1.ov.home.nl) (Ping timeout: 246 seconds)18:30
*** Quits: mellen (~thansen@x1-6-00-22-02-00-0c-40.k253.webspeed.dk) (Ping timeout: 260 seconds)18:38
*** Joins: mellen (~thansen@x1-6-00-22-02-00-0c-40.k253.webspeed.dk)18:41
*** Quits: AzaToth (~azatoth@wikipedia/AzaToth) (Remote host closed the connection)19:55
*** Quits: scribe9343423 (~scribe934@static.96.23.63.178.clients.your-server.de) (Remote host closed the connection)19:59
*** Joins: scribe9343423 (~scribe934@static.96.23.63.178.clients.your-server.de)20:00
*** Quits: Ragnor (~Ragnor@178.1.42.132) (Disconnected by services)20:20
*** Quits: tavasti (~tavasti@217.152.202.221) (*.net *.split)20:20
*** Quits: dhx_m (~anonymous@c122-107-157-71.eburwd5.vic.optusnet.com.au) (*.net *.split)20:20
*** Joins: Ragnor (~Ragnor@178.1.42.132)20:20
*** Joins: dhx_m (~anonymous@c122-107-157-71.eburwd5.vic.optusnet.com.au)20:22
*** Joins: |Otter| (~haruka@p54ACF369.dip.t-dialin.net)22:26
*** Quits: |HaruAFK| (~haruka@p54ACF91B.dip.t-dialin.net) (Ping timeout: 240 seconds)22:30
*** Quits: fanno (~Morten@90.184.93.233) (Read error: Connection reset by peer)23:04
*** Quits: Ragnor (~Ragnor@178.1.42.132) (Disconnected by services)23:51
*** Joins: Ragnor (~Ragnor@178.1.42.132)23:51

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