Tuesday, 2011-10-04

*** Joins: siebrand (~siebrand@adsl-75-55-201-218.dsl.pltn13.sbcglobal.net)00:48
*** Joins: kirillka (~Miranda@195.242.142.17)01:34
*** Joins: dhx1 (~anonymous@60-242-108-164.static.tpgi.com.au)03:22
dregaddhx1: hi david03:34
dhx1dregad: hi03:34
dregadI am working on a few issues related to categories and got questions - can you spare a few minutes?03:35
dhx1dregad: sure03:35
dregadThe main issue is #8582, deals with having a default category for projects03:36
dregadthe foundations are mostly in the code already (category_id field in project table), all that is needed is a bit of code to make use of it03:38
dregadso I started adding a new "make default" button in the categories list in the manage project edit page03:39
dregadand modifying the bug report page to use the default03:39
dregadquestion 1: is it OK to create a new page (php file) to process the button's action ?03:40
dregad(something similar to manage_proj_cat_edit.php)03:40
dhx1for 1.2.x?03:41
dregadboth actually03:41
dregadbut I started on 1.2.x as I need this functionality here03:41
dhx1sounds OK to me03:42
dhx1because it won't harm anyone upgrading between 1.2.x releases03:43
dregadOK, then the next question relates to storing the "global" default category03:43
dhx1hmmm03:44
dregadI was thinking of using a global param03:44
dhx1we already have a configuration value for it03:44
dregaddefault_category_for_moves03:44
dhx1http://www.mantisbt.org/bugs/view.php?id=4102#c1267903:44
dhx1unless it has been removed03:44
dhx1$g_default_bug_category03:45
dhx1so if you're making a UI change in the project configuration screens, all you have to do is set/change that option on a per-project basis03:45
dregad$ git grep default_bug_category03:46
dregadcore/obsolete.php:config_obsolete( 'default_bug_category', '' );03:46
dregad:-/03:46
dregadProbably consequence of http://www.mantisbt.org/bugs/view.php?id=843503:47
dregadthe project default cat is in the project table now, but that leaves no place for the global one03:47
dregadunless we have a "dummy" global project but that sounds like an ugly hack03:48
dregadmaybe I should ask jreese as the author of this change03:51
dhx1ah03:58
dregadbut thanks for pointing me to 4102 - I did not consider the case where someone would *not* want to use a default to force users to pick a value03:59
dhx1yep04:09
dhx1categories aren't compulsory... I think04:10
dregadThey are, in the current implementation, and with no default, it prevents submission of new bug until a value has been selected; presetting the selection list based on the project's default value would bypass that04:15
dregadSo to correct that, one option could be to add a config to let users decide whether category is mandatory or not04:16
dhx1we already have options for that?04:18
dregadthere is g_allow_no_category, but it's not exactly the same thing04:20
dregadone may want to have a pre-defaulted category, while not allowing a blank one04:21
dhx1right04:22
dhx1it might be best to talk to jreese about the removal of the option04:23
dhx1to see whether it can be added back04:23
dregad...which would somehow override his change on the project (unless we only use it globally I guess)04:24
dhx1what is the per-project setting called?04:24
dhx1or is it stored within the project table itself?04:24
dregadthe latter04:25
dregadmantis_project_table.category_id04:25
dhx1hmm that makes it hard then04:25
*** Quits: dhx1 (~anonymous@60-242-108-164.static.tpgi.com.au) (Quit: Leaving)09:45
*** Joins: _zoom_ (~NISSB@196.1.219.122)10:40
*** Quits: _zoom_ (~NISSB@196.1.219.122) (Quit: Leaving.)11:15
*** Quits: siebrand (~siebrand@adsl-75-55-201-218.dsl.pltn13.sbcglobal.net) (Quit: siebrand)11:21
*** Joins: _zoom_ (~NISSB@196.1.219.122)11:28
*** Quits: _zoom_ (~NISSB@196.1.219.122) (Read error: Connection reset by peer)11:28
*** Joins: siebrand (~siebrand@216.38.130.167)11:48
*** Joins: siebrand_ (~siebrand@216.38.130.162)12:37
*** Quits: siebrand (~siebrand@216.38.130.167) (Ping timeout: 258 seconds)12:40
*** siebrand_ is now known as siebrand12:40
*** Quits: siebrand (~siebrand@216.38.130.162) (Read error: Connection reset by peer)14:50
*** Joins: siebrand (~siebrand@216.38.130.167)14:50
*** Joins: siebrand_ (~siebrand@216.38.130.162)16:05
*** Quits: siebrand (~siebrand@216.38.130.167) (Ping timeout: 260 seconds)16:08
*** siebrand_ is now known as siebrand16:08
*** Quits: siebrand (~siebrand@216.38.130.162) (Read error: Connection reset by peer)16:39
*** Joins: siebrand (~siebrand@216.38.130.167)16:40
*** Joins: siebrand_ (~siebrand@216.38.130.162)16:49
*** Quits: siebrand (~siebrand@216.38.130.167) (Ping timeout: 260 seconds)16:52
*** siebrand_ is now known as siebrand16:52
*** Quits: siebrand (~siebrand@216.38.130.162) (Read error: Connection reset by peer)17:33
*** Joins: siebrand_ (~siebrand@216.38.130.167)17:33
*** Joins: siebrand (~siebrand@216.38.130.162)18:41
*** Quits: siebrand_ (~siebrand@216.38.130.167) (Ping timeout: 248 seconds)18:45
*** Quits: siebrand (~siebrand@216.38.130.162) (Ping timeout: 255 seconds)19:04
*** Quits: sdfjkljkdfsljkl (~sdfjkljkd@static.96.23.63.178.clients.your-server.de) (Remote host closed the connection)20:00
*** Joins: sdfjkljkdfsljkl (~sdfjkljkd@static.96.23.63.178.clients.your-server.de)20:00

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