Friday, 2010-01-15

../irclogs/#mantishelp.2010-01-15.log
--- scribe started ---00:00
cmchi, good evening... I have a few questions on mantis. Is it possible to show the project description in the bug report page? I want the users to look @ some details that could be stored in the project description...03:36
dhx_mcmc: hi, that's not too hard to do... but you'd have to hack the code yourself (or possibly write a plugin to make those changes)03:36
dhx_mit isn't a built in feature as such03:36
cmcoh right, I was wondering there could be an option in the configuration file...03:37
dhx_mI guess it's one of those things where everyone has a different opinion on what the bug report page should look like03:38
cmcdo you know where can I find a tutorial on how to make a plugin for mantis?03:38
dhx_mwe get a lot of people asking for the ability to add a disclaimer/text to the top of the bug report page03:38
dhx_mthere's no tutorial as such... there is some documentation at mantisbt.org03:38
dhx_m(note: plugins are only for mantis 1.2.x)03:38
dhx_mand otherwise, examples at git.mantisforge.org03:39
dhx_mwe generally add plugin events on an as-needed basis, so if they don't exist where you need them, you'd have to file a request at the official bug tracker03:39
dhx_mwith an explanation of where you need the event triggered, why it's needed, etc03:39
cmcok thanks, I was looking at that git but could not understand much either. Guess I will have to spend some more time on this...03:40
cmcanother question...03:40
dhx_mactually this should be easy for you03:40
dhx_mwe already have:03:41
dhx_mevent_signal( 'EVENT_REPORT_BUG_FORM_TOP', array( $t_project_id ) );03:41
dhx_mso your plugin would simply hook EVENT_REPORT_BUG_FORM_TOP03:41
dhx_mand then echo raw HTML messages (on a per-project basis in your case)03:41
dhx_mactually that's not entirely true... that event is meant to be for adding fields to the top of the bug report page03:42
dhx_mthus the event is triggered within the bug report form itself03:42
dhx_mso you'll see "Enter Report Details"03:43
dhx_mthen your extra content03:43
dhx_mwhereas you'd ideally want this text message above the "Enter Report Details" table header03:43
cmcok I found the line event_signal( 'EVENT_REPORT_BUG_FORM_TOP', array( $t_project_id ) ); in bug_report_page.php03:49
cmcbut you say I shall create a plugin to change the variable EVENT_REPORT_BUG_FORM_TOP, right?03:50
dhx_mnot quite... EVENT_REPORT_BUG_FORM_TOP is the name of an event that is triggered when event_signal() is called03:51
dhx_mwhen that happens, the plugin system looks through the list of loaded plugins to find which ones are registered to do something on the event03:51
dhx_min which event, the plugin system calls a function within the plugin to handle the event (where you can do whatever you want)03:52
cmcok so, it is easier to hack the code?03:52
cmcand add a sql statement somewhere calling the data...03:52
dhx_mit's a little bit easier03:53
dhx_mas you don't need to learn as much about how Mantis' plugin system works03:53
dhx_malthough... it's extremely easy after you look at some examples at git.mantisforge.org :)03:54
cmcI will have a look at them with some time... I will do so, thanks for the advice. I have another question, if you don't mind...03:54
dhx_msure03:55
cmci'm using 1.2rc2. Users are able to upload project documentation, but I'm able only to look at it as an administrator. Other users get an empty list, in spite list has data... any clues, is this some bug or just some configuration?03:56
dhx_mI've never used the project documentation feature I'm afraid03:59
dhx_mit might be best to wait around here for someone else with more knowledge on that subject to respond03:59
dhx_mor you could try the help mailing list?04:00
cmcmailing list can be found @ mantisbt.org?04:04
dhx_mhttp://www.mantisbt.org/mailinglists.php04:16
cmcthanks a lot for your help, have a great night04:23
dhx_mnot a problem, cya later04:23
alemayogood morning06:25
kirillkaalemayo: mo06:57
CIA-22Mantisbt: vboctor * rcb5ca45521f6 /bug_change_status_page.php: Fixes #3391: Set assign_to when resolving bug.07:38
CIA-22Mantisbt: vboctor master-1.2.x * rdc96dcfbafa2 /bug_change_status_page.php: Fixes #3391: Set assign_to when resolving bug.07:50
dhx_mpaul__: your indentation commit annoys me now... when you want to backport from 1.3.x to 1.2.x, you can't just cherry-pick anymore :(11:18
dhx_mpaul__: but it's necessary... I'm surprised there isn't an easier way in git to get around this problem11:19
alemayoon login_page in master-1.2.0 we get: Fatal error: Call to undefined function user_pref_get_language() in /home/am/Development/mantis/mantisbt/core/lang_api.php on line 10411:30
alemayoah okay works ... our session cookies were dirty11:33
dhx_m:)11:35
CIA-22Mantisbt: hickseydr master-1.2.x * r45a2b5c3fa27 /core/relationship_api.php: Fix #11397: XSS with project names in relationship table11:35
CIA-22Mantisbt: hickseydr master-1.2.x * r8a9f6d0593d7 /core/bug_api.php: Fix #11375: Copy list of users monitoring duplicate bug to original bug11:35
CIA-22Mantisbt: hickseydr * r0995c231d401 /core/relationship_api.php: Fix #11397: XSS with project names in relationship table11:35
CIA-22Mantisbt: hickseydr * r8815b9d0fe47 /core/bug_api.php: Fix #11375: Copy list of users monitoring duplicate bug to original bug11:35
CIA-22Mantisbt: hickseydr * r5cd754dac3fe /bug_update.php: Improve support for multiple resolved and closed statuses (bug_update)11:35
CIA-22Mantisbt: hickseydr master-1.2.x * r0d044ba08e89 /bug_update.php: Improve support for multiple resolved and closed statuses (bug_update)11:35
alemayooh no ..11:35
alemayolooks like a bug11:35
alemayorequire_once( 'user_pref_api.php' );11:35
alemayois missing in lang_api11:35
dhx_minteresting11:40
dhx_m1.3.x branch?11:40
dhx_mah not 1.3.x branch because I fixed it there :)11:40
dhx_mare you including core.php?11:40
dhx_mcore.php loads the minimum required API of Mantis11:41
dhx_mas such, it needs to be included at the start of each user request/page load11:41
alemayowe did some first patches to the mantis core concerning new events for custom fields --- I guess we should create a fork on mantis forge and somehow push it to there?12:51
alemayodhx_m: will you backport that lang-fix to 1.2.x ?12:55
alemayoI am confused again12:57
alemayowhat is the difference between http://git.mantisforge.org/w/mantisbt.git and http://git.mantisbt.org/?p=mantisbt.git;a=summary ???12:57
dhx_mthe mantisforge one isn't official... it's just a mirror12:58
dhx_mwhich lang fix?12:58
dhx_moh12:58
alemayodhx_m: ah not 1.3.x branch because I fixed it there  <--12:58
dhx_mhow can I reproduce? which function were you trying to call in lang_api?12:58
alemayohm12:58
alemayothe error came directly after login with the master-1.2.0 version12:59
dhx_mdo you have a plugin enabled?13:00
alemayoyes ...13:00
alemayoincluding our own :)13:00
alemayodhx_m: concerning that git mirror at mantisforge: we cloned the mantisbt.git, switched to master-1.2.0 and now want to publish our changes --- can we just press the fork button on mantisFORGE and push it there or will we create unnecessary differences because those mirrors are out of sync?13:02
dhx_mwhat you should do is create a fork on mantisforge, setup SSH keys, etc13:02
alemayothat SSH key stuff is already done thanks to the ServiceLevel plugin yesterday :)13:03
dhx_mand like you said, push your mantisbt-1.2.x branch (and probably 1.3.x as well if you're maintaining your plugin for both stable and devel branches)13:03
dhx_mto mantisforge13:03
dhx_mignore the mantisbt repository hosted at mantisforge13:03
dhx_mafaik you'll need to setup the fork in a similar way13:04
dhx_malemayo: I'm not sure what to do with the require_once( 'user_pref_api.php' )...13:04
dhx_mthe include system in the 1.2.x branch is a mess13:05
dhx_mwhich is why I overhauled it in 1.3.x13:05
dhx_mhowever I don't want to backport everything I did to 1.2.x because it likely breaks stuff13:05
alemayodhx_m: just leave it :) we will fix it in our fork --- I thought it happens always, but if it just called by some plugins ...13:06
dhx_mis your plugin calling lang() functions directly?13:06
alemayodhx_m: ignore the mantisbt repository hosted at mantisforge <-- ??? you mean I just push into my fork repo ? okay, clear13:07
dhx_mI hate stable/development branching (and the versioning systems to go with it)... it's so outdated13:08
alemayo?13:08
dhx_mwell... maintaining two (or more) branches of the same thing, having to backport stuff and deal with 1000 merge conflicts13:09
alemayoso what's better?13:09
dhx_myeah what you do is create a local clone of mantisbt.org13:09
dhx_mthen add a remote (git remote --add) for your repository on mantisforge13:10
dhx_mthat way you can pull from mantisbt.org (to keep your local copy updated)13:10
dhx_mmake changes, create branches, etc13:10
dhx_mand then push those branches to mantisforge13:10
dhx_myou don't really have to push a copy of mantisbt's master branch13:11
dhx_mjust push your branches that divert from master13:11
alemayomh13:11
alemayookay let's do it together :)13:12
alemayomantisbt/master-1.2.0-gtz is created on mantisforge already13:12
alemayowhenever I'd better just call it gtz I guess and do not have to include the branch name ?13:12
dhx_musually yeah13:20
dhx_mis it too late to change it?13:20
alemayono13:20
alemayochanged it already and told paul__ to delete the old one (I guess he is the MF-paul ?)13:20
alemayoso13:21
alemayohm .. weired ...13:21
alemayogit is strange :)13:21
alemayosooo I did am@am-laptop:~/Development/mantis/mantisbt$ git remote add mantisforge ssh://am-gtz@git.mantisforge.org/srv/git/mantisbt/gtz-et.git13:23
dhx_myep13:24
alemayo$ git push mantisforge feature13:24
alemayoerror: src refspec feature does not match any.13:24
alemayoerror: failed to push some refs to 'ssh://am-gtz@git.mantisforge.org/srv/git/mantisbt/gtz-et.git'13:24
alemayois a refspec a branch ?13:24
dhx_mnot too sure13:28
alemayohe I think it worked :)13:31
alemayocrazy stuff that GIT :)13:31
alemayoI am still thinking to much SVN13:32
dhx_m:)13:36
CIA-22Mantisbt: hickseydr * r5c727ba9ac50 /config_defaults_inc.php: Fix #11400: Increase default $g_view_configuration_threshold13:57
CIA-22Mantisbt: hickseydr master-1.2.x * r589ef8ff2dc1 /config_defaults_inc.php: Fix #11400: Increase default $g_view_configuration_threshold13:57
CIA-22Mantisbt: hickseydr master-1.2.x * rf3d5815f911b /config_defaults_inc.php: Fix #11395: show_queries_list should be a global option14:03
CIA-22Mantisbt: hickseydr * re22eeacf9386 /config_defaults_inc.php: Fix #11395: show_queries_list should be a global option14:03
cmchello good morning, I was wondering if anyone could help me solve one issue about release 1.2rc2. Users developers and up are able to upload project documents, but when trying to view it, only administrators get the list of documents. Any clues if this is a bug or a misconfiguration?14:08
paul__dhx_m: manager16:14
paul__.21:34
paul__dhx_m: ?21:34

Generated by irclog2html.py