*** 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 | |
pconrad | Hi Everyone----I'm trying to get started with Mantis development, and I'm tring to start by running the PHPUnit tests | 03:18 |
---|---|---|
pconrad | I've having some trouble following the steps involved | 03:19 |
pconrad | The documentation says: Running the unit tests is done from root directory using the following command: $ phing test | 03:19 |
pconrad | By root directory, I assume they mean the "root of the mantis installation" | 03:20 |
pconrad | when 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 |
pconrad | And sure enough, no build.xml file in the entire tree. | 03:21 |
pconrad | What am I missing here? | 03:21 |
dhx_m | someone got rid of build.xml a short while ago, I'm not sure why/what the details are | 03:21 |
pconrad | hmmmm.... o kaaaaay..... | 03:22 |
pconrad | so, without that in place, what is the way that you run the tests? | 03:22 |
pconrad | There 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 is | 03:23 |
dhx_m | http://git.mantisbt.org/?p=mantisbt.git;a=commitdiff;h=3ea22ce73928309abfb475f0464f974b149ec800 | 03:24 |
dhx_m | you could probably just copy that build.xml back into the root of MantisBT | 03:25 |
dhx_m | I think Paul was trying to say in that commit that our testing scripts should be held in a separate repository | 03:25 |
pconrad | Thanks ---- this is helpful | 03:27 |
pconrad | But, taking that out of the distribution without updating the documentation was not particulary helpful on "Paul's" part. | 03:28 |
pconrad | I'm wondering what else is going to turn up missing now.... | 03:28 |
pconrad | after copying this back into the root directory, I now get this, after several successful tests: | 03:29 |
pconrad | PHP Fatal error: Class 'SoapClient' not found in /local/home/pconrad/public_html/mantisdev/mantisbt-1.2.1/tests/soap/SoapBase.php on line 46 | 03:29 |
dhx_m | hmm 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 missing | 03:30 |
dhx_m | but yeah, paul didn't update the documentation that robert had fixed to allow build.xml to work | 03:31 |
dhx_m | phpunit --bootstrap bootstrap.php AllTests.php | 03:31 |
dhx_m | the old method | 03:31 |
pconrad | Excellent---thanks! | 03:32 |
pconrad | Perhaps _that_ is what should be in the documentation instead of the "phing test" bit.... | 03:32 |
dhx_m | yep it's a case of..: | 03:33 |
dhx_m | Robert adds build.xml and updates documentation to using the 'phing' command instead of 'phpunit' | 03:33 |
dhx_m | Paul removes build.xml but leaves Robert's updated documentation in place (thus it is now incorrect) | 03:33 |
pconrad | gotcha.... | 03:33 |
dhx_m | I'll try and talk to them later to get a resolution :) | 03:34 |
pconrad | Good thing you are around to help the newbies navigate the terrain. :-) | 03:34 |
dhx_m | there 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 |
pconrad | Doesn'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_m | are you trying to develop a plugin for MantisBT? | 03:37 |
dhx_m | and yeah, Git is a little bit of a learning curve... but once you learn it, you won't look back :) | 03:37 |
pconrad | I think a plugin is what I want. | 03:38 |
pconrad | The "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 page | 03:39 |
pconrad | but to be able to enable custom fields to show up as one of the fields. | 03:39 |
dhx_m | you can already do that by using the "Manage Columns" page, just add custom_nameofcustomfield as a column to show | 03: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_m | aha | 03:40 |
pconrad | Ah... nice... let me try that | 03:40 |
dhx_m | that isn't possible at the moment (#2) | 03:40 |
pconrad | ok... so #1 I can do, but #2 would still require some development. | 03:41 |
dhx_m | but I wonder just how useful it would be in a paged environment | 03:41 |
pconrad | paged environment? | 03:41 |
dhx_m | well issues span multiple pages (such as 20 per page) when shown via view_all_bug_page.php | 03:41 |
dhx_m | so I'm not sure how useful a total of a column is at the bottom of each of those 20 pages | 03:42 |
pconrad | ah, I see your point | 03:42 |
dhx_m | a total count for all pages at once would have more use IMO | 03:42 |
pconrad | yes, I think that's actually what we would want. | 03:42 |
pconrad | My database of issues isn't large enough yet where it goes to multiple pages | 03:43 |
pconrad | The motivation is that I'm using mantis in an academic setting... | 03:43 |
pconrad | the developers are also students in a course where they earn points toward their course grade | 03:44 |
pconrad | but they are working on actual software projects that span multiple instances of teh course | 03:44 |
pconrad | isntead of "everyrone does homework 1" then "everyone does homework 2", | 03:44 |
pconrad | they have ot find an open issue, do the programmign necessary to resolve it, and thats how they earn their points | 03:45 |
pconrad | I assign points to each ticket | 03:45 |
pconrad | what I want is a way to easily total up how many points a given student has earned. | 03:45 |
pconrad | I can imagine this being usable for "billable hours" or something like that in a consulting or corporate setting too | 03:46 |
pconrad | if 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 idea | 03:46 |
dhx_m | another approach could be to use the TimeCard plugin with custom strings | 03:46 |
dhx_m | then you can use the estimate field as "Points" | 03:47 |
pconrad | I'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 spreadsheet | 03:47 |
dhx_m | and only you'd be allowed to update the "Points" field | 03:47 |
pconrad | clunky, but it would work---but I'd rather do it all within Mantis | 03:47 |
dhx_m | that would work too, MantisBT exports in XML... or IMO it's easier to just run a manual SQL query | 03:47 |
pconrad | yeah, 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 |
pconrad | so that there is no possibilit of corrupting the Mantis internals.... | 03:49 |
dhx_m | ie. SELECT user.username, SUM(customfield.value) FROM ... LEFT JOIN ... WHERE customfield.name="points"; | 03:49 |
dhx_m | something similar to that | 03:49 |
pconrad | hmmm... that might be a lot easier | 03:49 |
dhx_m | yep | 03:49 |
dhx_m | perhaps the sponsorship system could also be of use | 03:50 |
pconrad | especially 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 time | 03:50 |
dhx_m | although I've never used it | 03:50 |
pconrad | he 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 |
pconrad | Thanks for brainstorming this with me... it seems like a much better idea to try this "bag on the side" thing first. | 03:51 |
dhx_m | I wish my University course (Computer Science + Engineering) were run in the same way... ie, work on real open source projects rather than toy problems | 03:51 |
dhx_m | s/were/was/ | 03:51 |
pconrad | even 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_m | yep 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 |
pconrad | Any 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_m | afaik 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_m | there isn't much internal documentation of MantisBT I'm afraid | 03:58 |
dhx_m | however it may serve an interesting exercise for students to not have documentation at hand | 03:58 |
dhx_m | and having to ask for help (in the right way) on an open source mailing list, looking through source code, etc | 03:58 |
dhx_m | core/custom_field_api.php contains most of the related code | 03:59 |
dhx_m | how much time would you expect someone to spend on this task? | 03:59 |
davidinc | Fantahun Aberra: | 04:00 |
davidinc | Hi | 04:00 |
dhx_m | hi | 04:01 |
*** Joins: AlexM600 (~Miranda@192.109.140.36) | 04:02 | |
pconrad | Hello 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 him | 04:03 |
davidinc | dhx_m: I'm still having same problem regarding the html_button | 04:03 |
pconrad | I'm thinking probably about 24 hours of work---6 hours a week over 4 weeks. | 04:03 |
pconrad | taking into account coming up to speed on PHP and MySQL as well.... | 04:04 |
davidinc | did you check the urlencode | 04:04 |
davidinc | pconrad: Can you tell me your real name. | 04:07 |
dhx_m | pconrad: do the students have any prior knowledge of SQL? | 04:11 |
pconrad | Phill Conrad | 04:18 |
pconrad | my course is here: http://www.cs.ucsb.edu/~pconrad/ccs/10S | 04:18 |
*** Joins: Rixie (~Rixie@0x4dd7390e.adsl.cybercity.dk) | 04:19 | |
pconrad | Thanks dhx_m for your help---- late here (1:19am), and I have a 9am meeting, so time to turn in. | 04:19 |
pconrad | TTYL | 04:19 |
pconrad | bye | 04:19 |
dhx_m | yep I'll be around | 04:19 |
dhx_m | nice to hear from you | 04:19 |
dhx_m | cya :) | 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_41164 | helo | 07: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_61393 | anyone working with mantisconnect ? | 12:10 |
mantisbt_61393 | api | 12: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!