*** 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 | |
dregad | dhx1: hi david | 03:34 |
---|---|---|
dhx1 | dregad: hi | 03:34 |
dregad | I am working on a few issues related to categories and got questions - can you spare a few minutes? | 03:35 |
dhx1 | dregad: sure | 03:35 |
dregad | The main issue is #8582, deals with having a default category for projects | 03:36 |
dregad | the 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 it | 03:38 |
dregad | so I started adding a new "make default" button in the categories list in the manage project edit page | 03:39 |
dregad | and modifying the bug report page to use the default | 03:39 |
dregad | question 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 |
dhx1 | for 1.2.x? | 03:41 |
dregad | both actually | 03:41 |
dregad | but I started on 1.2.x as I need this functionality here | 03:41 |
dhx1 | sounds OK to me | 03:42 |
dhx1 | because it won't harm anyone upgrading between 1.2.x releases | 03:43 |
dregad | OK, then the next question relates to storing the "global" default category | 03:43 |
dhx1 | hmmm | 03:44 |
dregad | I was thinking of using a global param | 03:44 |
dhx1 | we already have a configuration value for it | 03:44 |
dregad | default_category_for_moves | 03:44 |
dhx1 | http://www.mantisbt.org/bugs/view.php?id=4102#c12679 | 03:44 |
dhx1 | unless it has been removed | 03:44 |
dhx1 | $g_default_bug_category | 03:45 |
dhx1 | so 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 basis | 03:45 |
dregad | $ git grep default_bug_category | 03:46 |
dregad | core/obsolete.php:config_obsolete( 'default_bug_category', '' ); | 03:46 |
dregad | :-/ | 03:46 |
dregad | Probably consequence of http://www.mantisbt.org/bugs/view.php?id=8435 | 03:47 |
dregad | the project default cat is in the project table now, but that leaves no place for the global one | 03:47 |
dregad | unless we have a "dummy" global project but that sounds like an ugly hack | 03:48 |
dregad | maybe I should ask jreese as the author of this change | 03:51 |
dhx1 | ah | 03:58 |
dregad | but 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 value | 03:59 |
dhx1 | yep | 04:09 |
dhx1 | categories aren't compulsory... I think | 04:10 |
dregad | They 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 that | 04:15 |
dregad | So to correct that, one option could be to add a config to let users decide whether category is mandatory or not | 04:16 |
dhx1 | we already have options for that? | 04:18 |
dregad | there is g_allow_no_category, but it's not exactly the same thing | 04:20 |
dregad | one may want to have a pre-defaulted category, while not allowing a blank one | 04:21 |
dhx1 | right | 04:22 |
dhx1 | it might be best to talk to jreese about the removal of the option | 04:23 |
dhx1 | to see whether it can be added back | 04:23 |
dregad | ...which would somehow override his change on the project (unless we only use it globally I guess) | 04:24 |
dhx1 | what is the per-project setting called? | 04:24 |
dhx1 | or is it stored within the project table itself? | 04:24 |
dregad | the latter | 04:25 |
dregad | mantis_project_table.category_id | 04:25 |
dhx1 | hmm that makes it hard then | 04: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 siebrand | 12: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 siebrand | 16: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 siebrand | 16: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!