Friday, 2010-08-20

../irclogs/#mantishelp.2010-08-20.log
--- scribe started ---00:00
DAloGHello everyone)01:15
DAloGI hame a small question about Mantis SOAP API. I cant find a way to get issue history over soap. Cann you tell me, some way exist or not?01:18
DAloGif you have some idea, or know that its impossible, please send me a mail to: demedeckie@gmail.com01:20
DAloGthanx for your attention01:24
Githubmantisbt: master Robert Munteanu * 3e44f13 (1 files in 1 dirs): Allow tests to register project versions for deletion at tearDown06:30
Githubmantisbt: master Robert Munteanu * 78c2e76 (1 files in 1 dirs): Add tests for creating issues with version set ...06:30
Githubmantisbt: master commits cd2325c...78c2e76 - http://bit.ly/bgsjlp06:30
Githubmantisbt: master-1.2.x Robert Munteanu * e457611 (1 files in 1 dirs): Allow tests to register project versions for deletion at tearDown06:30
Githubmantisbt: master-1.2.x Robert Munteanu * 4de2365 (1 files in 1 dirs): Add tests for creating issues with version set ...06:30
Githubmantisbt: master-1.2.x commits 31a20df...4de2365 - http://bit.ly/cSlwgY06:30
grelothi everyone09:45
dhx_mhi09:47
kanghi mantis users ;)10:02
kangi would like to know if there's some way of disallowing "CLOSE" on an issue for an access level10:02
ynyrhi10:23
ynyris there a php function to access custom fields?10:23
dhx_mynyr: depends on what you mean by "access"... but there should be some functions for you in core/custom_field_api.php10:48
ynyrdhx_m: thanks10:49
ynyrI'll take a look10:49
xavier33Hi10:54
dhx_mxavier33: hi10:54
xavier33i need help10:54
xavier33i want to migrate my mantis 1.2.0a to 1.2.210:55
xavier33but i dont know10:55
xavier33do you have any link or tuto for this migration ?10:55
dhx_mbackup your old installation10:57
dhx_m(database and files)10:57
dhx_mthen delete your old directory10:57
dhx_muntar/unzip 1.2.210:57
dhx_mcopy back your configuration files (config_inc.php, custom_*.inc, etc)10:58
dhx_mthen try logging in as the administrator again10:58
dhx_mit'll ask you to run an upgrade script10:58
dhx_mif you run into problems (using MSSQL?) it may be best to upgrade to 1.2.0 before upgrading to 1.2.210:59
kangbleh, this source integration is nice but.. wtf with the assumption that people get their svn/git/etc from.. remote server11:06
kangmost cases people are going to have a git/svn on the same host11:06
kang=(11:06
dhx_mSVN can be used locally11:06
dhx_mand most of the time you'd have it setup so that a post commit hook notifies MantisBT11:06
kangwell i'm doing that now11:07
kanginterface was just nicer:p11:07
kangno idea about CLOSE? suppose i gotta hack it up somewhere inside11:07
dhx_mthe other VCS plugins should also be able to pull data locally in the future11:07
dhx_mit's just a case of people having time to do it11:07
CIA-100Mantisbt: hickseydr * r735ddedd01ff / (6 files in 3 dirs): Issue #11826: Remove ajax_api11:32
ynyrhi12:25
ynyrwhere is the mantis log file?12:25
istvanbhi there13:04
istvanbI have to move a project to under another project (as a subproject). When I did that it looks like it was not a move but rather a mirroring because now I have the same project in two places13:05
istvanbhow can I get rid of the original and just show the project once in its new place?13:05
nuclear_eclipseistvanb: right, you need to remove it as a subproject from the old parent13:05
istvanband I assume in the new place it will display all the issues filed originally to the project13:06
nuclear_eclipseyep13:06
istvanbis this a feature or a bug?13:06
nuclear_eclipsefeature13:06
istvanbyes, if I unlink it from the original place it appears only in the new location13:08
istvanbI guess this is what you meant13:08
nuclear_eclipseyep13:08
istvanbthanks man13:08
nuclear_eclipsenp13:08
istvanbanyways: today I did a training on some of the users how to use mantis in our company enviroment13:08
istvanbthey looked very happy with that13:09
istvanbso from now on we are on an official trial period13:09
nuclear_eclipsecongrats13:10
istvanbwell13:10
istvanbcongrats to you guys!13:10
dhx_mhow large is your bugtracker?13:13
dhx_mnumber of users, issues, etc?13:13
istvanbwe have just started it13:14
istvanbso we have 8-10 users13:14
istvanband only like 15 existing issues13:14
istvanbI will keep this project closed until a month to see how this fits for our needs13:14
istvanbthen I will evaluate the results based on the KPI graphs of mantis and also based on user reviews13:15
istvanbif its a success then we will propose this to the higher management13:15
istvanboverall in the company we have about 50-60 potential users13:15
dhx_mI would have thought that 50-60 users would need at least one dedicated person looking after the bug tracker ("change management system" in formal lingo)13:20
istvanbheres the deal13:20
istvanb:13:20
istvanbthis is a trial period to make mantis work as a helpdesk system. If it work fine then management has to make a decision. If we want to keep it only for SW then I can manage it13:22
istvanbif they want to expand it to be a global corporate helpdesk system then they have to dedicate a person which can not be me13:22
istvanbI made this very clear to my manager and he is happy with that13:22
darynnuclear_eclipse around?13:36
nuclear_eclipsehi daryn13:45
darynhello13:46
daryni have a plugin question for you13:46
nuclear_eclipseuh oh13:46
darynshould be easy for you i think :)13:46
darynin our old instance of mantis we customized our email links so that when a user clicks the link it adds the subject and cc's some users13:47
daryni'm trying to figure out how that works with the plugins as it seems CoreFormatting handles it but not quite following how13:47
daryni see the email function in CoreFormatting but how/when does that get called?13:48
nuclear_eclipseare you talking about where the plugin automatically converts foo@domain to <a href="mailto:foo@domain">foo@domain</a> ?13:48
darynyes13:48
darynso how do i override that?13:48
nuclear_eclipsethe email_* functions defined in coreformatting are different13:48
nuclear_eclipsethose cover marking up text that's to be sent in an email13:48
darynok...13:49
nuclear_eclipseyou probably just want to modify core/print_api.php13:49
darynbah13:49
nuclear_eclipsebecause the plugin just calls those functions13:49
darynthat's what it was looking like to me but I was hoping I was wrong13:49
dhx_mnuclear_eclipse: is there a preferred way for plugins to load their own JavaScript/CSS/images?13:51
nuclear_eclipsehook the LAYOUT_RESOURCES event and output <link>/<script> tags using plugin_file() to generate the link to stuff in your plugin's files/ directory13:53
daryndhx_m: nuclear_eclipse: speaking of...  should we create a new event and load javascript just before the body tag rather than the head?  It seems that is the preferred location for all scripts now.13:53
darynthe closing body tag that is13:53
nuclear_eclipseI'd rather leave it the way it is13:54
dhx_mdaryn: I have heard that is the preferred way to load JavaScript too13:54
darynapparantly the scripts prevent everything else from loading until they finish if they are in the head13:54
dhx_mdaryn: however it would impact on performance for users whose browsers can download multiple files at a time13:54
dhx_mthe alternative is load the entire <body>... then download the scripts... then execute them13:55
darynthats the point, with the scripts in the head the browser cannot download multiple files until the scripts are done13:55
dhx_mhmmm so top of the <body> is best?13:55
darynno bottom of body according to what i've read...from multiple sources which I can't name atm13:56
nuclear_eclipseI'd rather just have a single place to output both JS and CSS stuff...13:56
nuclear_eclipseif you want to move the LAYOUT_RESOURCES event to the end of the page, I don't much care about that, but I don't want to split that event, it'll get confusing and error prone13:57
darynnuclear_eclipse: i hear that but tbh one of the things that has frustrated me is i have multiple plugins loading both styles and scripts so the styles and scripts are interspersed.  that has been a bit confusing to me when debugging13:58
darynso, in my repo i've modified so all the css links are output just before the </head> in a group and all the scripts are output just before </body> in a group.  seems much clear to me13:59
nuclear_eclipseso have your plugin output an HTML comment or something to make it easier for you to find, but having them interspersed shouldn't affect how they work, and leaves less room for people to do the wrong thing13:59
dhx_mnuclear_eclipse: more to the point was where plugins are meant to store CSS/JS?13:59
dhx_mnuclear_eclipse: seeing as plugins could be stored outside the web root13:59
nuclear_eclipsedhx_m: plugin_file() takes care of that14:00
nuclear_eclipseput the file in the plugin's files/ directory, use plugin_file() to generate a URL, and plugin_file.php will handle loading it from the file system and outputting the contents to the client14:00
dhx_mok so if I were to implement plugin_require_js() it'd use plugin_file() to get the real path (via plugin.php)?14:01
dhx_mah gotcha14:01
nuclear_eclipseplugin_require_js() ?!14:01
dhx_myep14:01
dhx_mcall it before you send html_top and it'll dump all the JS/CSS includes at once in the header14:02
dhx_mit allows you to selectively include files on a per-page basis14:02
nuclear_eclipse? I'm so confused14:02
dhx_mwhich will become more important when/if we ever want to do any fancy JavaScript14:02
dhx_mrequire_js() and require_css() are two functions I introduced recently14:03
nuclear_eclipsewhy aren't we just always including js files?14:03
nuclear_eclipsethe browser only needs to download them once anyways14:03
dhx_mnot every page will use the same JS/CSS files14:03
dhx_mmore the point it makes it easy to see which pages use which scripts14:03
nuclear_eclipseI think you're introducing unneeded complexities...14:03
dhx_mit's easy :)14:03
daryni'm actually having similar issues where i have way too many js/css files loading where they aren't needed14:04
* nuclear_eclipse gets an urge to nuke the 1.3 branch and start over with python...14:04
daryn:)14:04
dhx_mthe approach I've taken is somewhat like that of the Linux Kernel14:05
darynnuclear_eclipse: only I don't know python so you'd be on your own...which might make you happier anyway :)14:05
dhx_minstead of using IFDEF's they call functions that contain the IFDEFS14:05
dhx_mso the ugly conditions are hidden out of the way (and in the event a feature is disabled, the function is skipped by the compiler anyway)14:06
dhx_mnuclear_eclipse: I was thinking C++? :p14:06
nuclear_eclipsebad dhx_m! bad!14:06
nuclear_eclipsehow dare you mention the kernel and C++ in the same thought!14:07
nuclear_eclipsedon't you know Linus hates C++?14:07
dhx_m:)14:07
dhx_manyone for C#? :p14:07
darynonly because Linus thinks he is smart...I guess he does have a point there doesn't he :)14:07
dhx_mI think the argument is really... why? What do they gain from moving to C++?14:10
dhx_mand does that outweigh the costs14:11
darynright, i was just attempting a bit of humor in that C programmers tend to think that C is the language of the gods and those using any other language are mere mortals at best14:13
dhx_m:)14:14
dhx_mdo you think they'd like the MantisBT source code? :p14:15
nuclear_eclipseprobably not at all14:15
daryni don't even like MantisBT source code14:15
nuclear_eclipse+1 to that14:15
dhx_mhaha14:16
dhx_mI wasn't even here when filters_api.php was written :p14:16
nuclear_eclipseI don't think any of us were here when that beast was written... ;)14:17
dhx_myou can count the length of functions in that file in the 10's of kilobytes14:17
darynit's going to eventually die a horrific death in the fires of Mount Doom but the road is long and arduous14:19
dhx_mI think we need to get a new Field API done first14:19
darynnah14:19
dhx_mmaybe that's the wrong idea though14:20
darynfulltext search. no need for field classes14:20
dhx_mit might get annoying if you want to find "version 1"14:21
dhx_mthe search would just be "1" wouldn't it?14:21
darynnope14:21
darynversion_id: 114:21
darynor whatever the operator is14:21
darynyou'll be able to target specific fields if you want14:22
darynwithout a huge filter14:22
dhx_mI like the idea... but will it actually replace filter dropdowns?14:23
darynwe might need a simple and advanced where the simple is a single text field and advanced is a list of fields14:24
darynbut I think the advanced would still be just autocompleted text boxes rather than full dropdowns.  Maybe textboxes if js is enabled and dropdowns if not ?  yuck...14:25
dhx_mI was thinking that with a new Field API we'd know the type of a field14:30
dhx_mand thus we'd be able to create a renderer object that decides how the HTML form will be printed14:30
dhx_m(on a per-field-type basis)14:30
dhx_mso we could show a dropdown box if the number of entries is less than 5014:31
dhx_mor an autocomplete text box for more than 5014:31
dhx_mI suspect PHP's OO isn't strong enough to do it nicely though14:31
darynyeah...that was kinda the direction i was taking before but it still became really complex really fast.14:32
darynAnd I think people are getting used to the whole textbox/autocomplete search thing so it's probably preferred anyway14:32
dhx_mit does require JavaScript though...14:33
darynwell the autocomplete does14:34
darynyou could still perform a search from a textbox without autocomplete...I doubt if that will be much of a problem.  Usually people know what they are searching for don't they?14:35
dhx_mfor some things, yes14:39
dhx_mmaybe not for categories, versions, priorities, severities and statuses14:39
dhx_mI think in those cases it may be easier for them to select from a list of options presented to them (orthogonal data)14:40
darynso maybe those are dropdowns on the advanced filter...14:40
dhx_myep14:40
darynyou know those could still be populated without knowing the field types though14:40
dhx_mwhich is why I mentioned the idea of having different renderers for the same field14:41
darynyeah...there's some thinking and design to do for this...14:41
dhx_mwell you'd know it's an enumeration type14:42
dhx_myep14:42
Githubmantisbt: master David Hicks * 735dded (4 files in 2 dirs): Issue #11826: Remove ajax_api ... - http://bit.ly/aHNFU316:30
paulr_moo16:41
CIA-100Mantisbt: daryn * r9d4204bc4c78 /plugins/XmlImportExport/XmlImportExport.php: Remove invalid unterminated comment string.20:58
darynpaulr still there?21:02
paulr_moo21:05
darynwhats up with the javascript change?21:06
paulr_?21:06
darynremove minimal_jscss variable commit21:06
paulr_nuclear_eclipse doesn't want to build compiled files21:06
paulr_as part of build process21:06
paulr_so just got minimised versions in javascript did21:07
paulr_and dumped the variable21:07
daryn1. it appears some changes that were committed in dev did not get into min because they have now been reverted21:07
paulr_oh?21:07
paulr_what we should do is21:08
daryn2. It's a pain to develop on minimized files so what would be your plan for that?21:08
paulr_personally21:08
paulr_i'd split the mantis git up21:08
paulr_and have a different git module for different things e.g. docbook21:09
paulr_then as part of build21:09
paulr_merge them21:09
darynwhat does that have to do with this issue?21:10
paulr_the issue is21:10
paulr_if we work on 'dev' ones21:10
paulr_then build 'min' ones21:10
paulr_and release21:10
paulr_there could be bugs (from the minifying)21:10
paulr_IMO, we should ship min files21:10
paulr_as thats the done thing21:10
darynseems like we really need both and the build should handle minifying. why did john not want that?21:12
darynthat would prevent this issue where changes were made in dev and not minified21:14
paulr_personally, i'd like to split the git up or well21:17
paulr_in hg21:17
paulr_you can set up a hg module21:17
paulr_thatp ulls in submodules21:17
paulr_i.e. have a 'manual submodule'21:18
paulr_so when you checkout mantis21:18
paulr_you'd get like21:18
paulr_mantis_code21:18
paulr_mantis_manual straight away21:18
paulr_but it's seem differently21:18
daryni think that's a tough sell21:18
darynso...how do we resolve without splitting the repo up.21:19
paulr_personally, I was gonna build them21:20
paulr_:)21:20
* paulr_ wrote a script to build /min21:20
paulr_*however*21:20
paulr_I think we dont need the config21:20
paulr_maybe 'git' should have /javascriptrubbisdhjfdsjklfjkl21:20
paulr_and a script to build /javascript21:21
paulr_either way, variable is a bit silly21:21
darynyeah, i don't have a problem with that really.21:21
darynas long as you don't revert changes :P21:21
paulr_I didn't realise I had21:21
daryni know21:21
paulr_I merged manually one change (aka dhx's)21:21
daryndeveloper mistake21:21
paulr_maybe I took an old /min by mistake21:21
paulr_heh21:21
paulr_http://www.mantisforge.org/cruisecontrol/buildresults/mantisbt?tab=phpcs21:22
paulr_I mean21:22
paulr_i'm building codesniffer/phpdoc rules on each commit21:22
darynso, personally I'd like to see javascript/dev/our scripts and javascript/minified scripts here21:22
darynso we always work in javascript/dev/ and the build minifies the files automatically21:23
paulr_hmm21:27
paulr_daryn: well, ideally, what i'd like is we have javascript/dev21:28
paulr_have a script that when javascript/dev changes, it recompiles javascript21:29
paulr_so basically, changing javascript generates a 2nd commit21:29
paulr_then on a release build we nuke the javascript/dev21:29
darynyeah...maybe it should be a precommit hook script that compiles and includes it in the same commit21:30
darynand don't nuke javascript/dev21:30
darynthen every so often the dev gets removed, added back in, removed....just leave it21:30
paulr_so right21:42
paulr_fix up21:43
paulr_we'll fix up javascript with minified files already21:43
paulr_and /dev with files to min21:43
darynpaulr_ you doing that tonight? :)21:46
paulr_well, I think I deleted the compile script yesterday21:47
paulr_heh21:47
darynyeah...i just deleted some local changes accidentally...sometimes git is too powerful21:47
paulr_right21:49
paulr_lets get a tarball21:49
paulr_of the /dev folder21:49
paulr_in fact daryn21:50
paulr_can I 'undelete /dev' in git?21:50
darynyou can checkout a file at a given point i think21:51
darynyou can revert but don't know if you can partially revert21:51
paulr_hm21:51
paulr_i'll try asking a friend21:51
darynk. i'm heading home but will prolly be on in a bit.21:51
darynalso...probably need a readme or something to let people know not to edit the minified files21:53
CIA-100Mantisbt: paul * r6b36df3d4dd9 /core/ (3 files in 2 dirs): Fix CodeSniffer Warnings22:25
CIA-100Mantisbt: paul * r46bc510565d8 /admin/check/ (11 files): Fix PHPDoc Errors22:25
Githubmantisbt: master Daryn Warriner * 9d4204b (1 files in 1 dirs): Remove invalid unterminated comment string.22:30
Githubmantisbt: master Paul * 46bc510 (11 files in 1 dirs): Fix PHPDoc Errors22:30
Githubmantisbt: master Paul * 6b36df3 (3 files in 2 dirs): Fix CodeSniffer Warnings22:30
Githubmantisbt: master commits 735dded...6b36df3 - http://bit.ly/bUxGVL22:30
CIA-100Mantisbt: paul * r55f2ac2091dd / (7 files in 2 dirs): Remove minimal_jscss variable23:04
paulr_bah no daryn23:05
paulr_daryn/dhx: mailed you two23:19
paulr_have I made more of a mess23:19
paulr_or got what you wanted23:19
daryngetting ready to look at it23:19
darynpaulr_ the change I was missing is there now. not sure about the rest23:21
paulr_i'll add script in a bit23:24
paulr_nn for now23:58

Generated by irclog2html.py