Thursday, 2010-06-24

../irclogs/#mantishelp.2010-06-24.log
--- scribe started ---00:00
dhx_mnuclear_eclipse: Python though, so not my thing :p01:09
socorropchello, I recently upgraded to version 1.2.1. Installation worked fine before under 1.2rc2. Now I have problem opening issues in spite custom field is showed and required only when resolving the issue... any suggestions?18:39
socorropcget an error # 11 "required field ..." is empty18:40
socorropcanother question, any way of improving queries performance? sometimes mantis take ages to save changes... installation with 1400 projects, 10 users, now has only 2500 issues and already slow...18:48
nuclear_eclipse1400 projects?!18:50
nuclear_eclipseand only 10 users?18:50
socorropcyeap, being used as a call center tracking system, for client support and equipment maintenance purposes...18:52
socorropcprojects are clients being attended...18:52
darynthe slowness is most likely due to trying to build a select list with 1400 project entries.18:52
nuclear_eclipseyeah, that's my though18:52
nuclear_eclipset18:53
darynwe have about 40 projects, 50000 plus entries, 50 users and not slow at all18:53
darynbut i did notice when we loaded up the project list for testing that slowed it down quite a bit.  mainly on the html rendering18:53
socorropcany tweaks could be done in php.ini or mysql? mantis is hosted under xampp in the local network18:54
darynthat problem is likely the browser client18:54
darynnothing php or mysql18:54
socorropcwhat would you recommend? well projects are divided into subprojects, because are divided into a regional classification, so the region that has more subprojects has about 600...18:56
nuclear_eclipsesocorropc: depending on your requirements, perhaps you could replace some of the project segmentation with categories or tagging18:57
nuclear_eclipseie, rather than having 1400 projects, have 50-100 projects that each have a number of categories associated with them?18:58
nuclear_eclipsebut without knowing the context of how your hierarchy is designed, it's hard to give much else as a suggestion18:58
socorropci dont have a long list of 1400 projects, have about 20 projects and subprojects below them. but cannot reduce to more subprojects, since they are already divided to cities...18:59
nuclear_eclipsesocorropc: perhaps at the city project level, rather than having subprojcets under that, you could use categories instead?19:01
socorropcno, because it is important to identify the client being attended at that moment... i will continue trying to enhance the code using ajax filters instead of a dropdown for subprojects...19:02
socorropcgot another question, I recently upgraded to version 1.2.1. Installation worked fine before under 1.2rc2. Now I have problem opening issues in spite custom field is showed and required only when resolving the issue... any suggestions? got error 11, required field is empty...19:03
nuclear_eclipsesocorropc: maybe the client's name could be a custom field?19:03
nuclear_eclipserather than a project?19:03
nuclear_eclipseno clue about that error19:04
darynnuclear_eclipse that is the error where dhx_m change the validation on the custom fields19:06
darynit is pissing me off right now too19:07
nuclear_eclipseok19:07
daryndidn't you have a discussion with him regarding that?19:07
socorropcthe solution of custom fields for clients I have already reviewed, but the case is that I have additional custom fields to be shown depending to the client. For example, client 1 has 3 equipments being checked. So, if I choose client 1, system should show only equipments for that client...19:07
nuclear_eclipsedaryn: if I did, I don't remember it19:11
darynok19:11
darynfilters? :)19:11
nuclear_eclipsenot yet... =\19:11
socorropcI have already unchecked the required when resolved, and still does not work... what should I do? go back to 1.2rc2?19:17
socorropcor is there any available atch I could get?19:18
nuclear_eclipsesocorropc: iirc, 1.2.0 does not have that behavior19:18
socorropcare there database changes from 1.2.0 to 1.2.1 that I should fix?19:19
nuclear_eclipseno19:22
nuclear_eclipsewe have a policy of not changing database schema between minor versions19:22
socorropcgreat, where is version 1.2.0 located? do you know the link? in mantisbt.org website I dont see it...19:23
nuclear_eclipsethe download link for 1.2.1 will take you to source forge, where you'll find teh older releases19:23
socorropcfound it, great guys, thank you very much for your time and help19:25
nuclear_eclipseyou're welcome19:25
John-_dHello All,  I have searched google with no avail. When I do an export and I am using the field for date_submitted or last_updated.  However, when I export these there is no timestamp on them, only a date.  Is there a way to export them with the time20:38
socorropchi, in version 1.2.0, I have config_inc.php variable set $g_enable_profiles = OFF; but still showing profiles, any way of disabling them?21:17
socorropcthis feature works okay in 1.2.1 & 1.2rc221:17
nuclear_eclipsesocorropc: that's one of the bugs that was fixed in 1.2.121:22
nuclear_eclipseyou could find and apply the patch by hand21:22
socorropcgreat, where can I find it?21:23
nuclear_eclipsehttp://www.mantisbt.org/bugs/view.php?id=1156521:24
John-_dHello All,  I have searched google with no avail. When I do an export and I am using the field for date_submitted or last_updated.  However, when I export these there is no timestamp on them, only a date.  Is there a way to export them with the time21:31
socorropcdont understand the fix, I changed $tpl_show_profiles = ON == config_get( 'enable_profiles' ); into $tpl_show_profiles = config_get( 'enable_profiles' ); but still nor working21:32
nuclear_eclipsesocorropc: that's only part of the fix21:33
nuclear_eclipsehttp://git.mantisbt.org/?p=mantisbt.git;a=commitdiff;h=19b969e99ed0d8e5be2ee114fa814a3f7521cbe421:33
John-_dnuclear_eclipse, I know you have the answer.  is it possible to export timestamps?21:35
nuclear_eclipseI've never used the exports, sorry21:35
nuclear_eclipseJohn-_d: a first glance at excel_xml_export.php sounds like changing $g_short_date_format in your config_inc.php should change how it exports21:37
John-_dthanks I will look there21:37
socorropcJohn, I have already dealed with this timestamps, there is a function in mysql to convert timestamp into datetime, I think its unixtime. The easiest way is to create a view of the data you need to export, using that command to convert dates21:37
nuclear_eclipseJohn-_d: alternatively, if you update that file to use normal_date_format instead, that would also work21:37
John-_dso $t_short_date_format = config_get( 'short_date_format' );  would be $t_short_date_format = config_get( 'normal_date_format');21:39
nuclear_eclipseyep21:39
John-_dsweet thanks21:39
John-_dsry im pretty new at this21:39
nuclear_eclipsenp21:39
socorropcnuclear_eclipse, you are great, thanks for your help, worked fine21:39
nuclear_eclipsesocorropc: congrats :)21:39
John-_ddamn21:40
John-_dthis only changed the date format to SQL type21:40
John-_dno time21:40
nuclear_eclipse00:00 you mean?21:40
John-_dsry I may have edited the wrong file let me try again21:41
John-_dnvm I am seeind this21:41
adalwolfsorry network problems (I am John-_d)21:42
adalwolfI am seeing: Date Submitted21:42
adalwolf2010-06-2421:42
nuclear_eclipsewhat export format are you using?21:42
adalwolfexcel21:42
nuclear_eclipsehmm21:42
adalwolfisnt excel and xml the same?21:42
nuclear_eclipseah ha21:43
nuclear_eclipseyou need to edit core/excel_api.php21:44
nuclear_eclipsethere are two instances where you'd need to change short_date_format to normal_date_format21:44
adalwolfsry same thing21:45
nuclear_eclipse=\21:45
nuclear_eclipseI'm not sure then, I'm sorry21:46
darynnuclear_eclipse sounds like those should be configurable21:46
nuclear_eclipseand I don't have Excel to test anything with, either21:46
adalwolfhehe no problem21:46
nuclear_eclipsedaryn: the date formats are21:46
adalwolfeven as CSV export id like to see it21:47
daryni mean which format gets used in various places21:47
adalwolfon the View Issue page,  that might be a good start21:47
adalwolfAHA!~21:48
adalwolfnuclear_eclipse: Turns out I did not save the file (dumb me) that API trick worked21:48
nuclear_eclipselol21:48
nuclear_eclipseok21:48
adalwolfyay vi21:49
adalwolfI went to :q and it told me I hadnt saved21:49
nuclear_eclipsedaryn: sounds to me like those fields should just default to using normal_date_format instead; I'm not sure why less info on an export is "better"?21:49
adalwolfis normal_date_format a php function?21:49
* nuclear_eclipse <3 vim21:49
adalwolfya actually im using vim.  tbh I hate vi but vim is nice :D  I liek to use arrow keys21:50
darynyeah...21:50
adalwolfand a quick google of normal_date_format reveals: http://www.mantisbt.org/forums/viewtopic.php?t=78621:50
nuclear_eclipseshort/normal_date_format are configurable strings in Mantis that get passed to php's date() function21:50
adalwolfgotcha21:51
adalwolfwhere do they live?21:51
* adalwolf ducks21:51
nuclear_eclipseconfig_defaults_inc.php21:51
adalwolfty sir21:51
nuclear_eclipseif you want to modify them, copy them to your config_inc.php and change them there21:51
adalwolfgotcha21:51
socorropcIs there a way of showing a custom defined field when an issue is "confirmed" by the assigned user? I need the user to input that information only when that happens...21:54
nuclear_eclipsesocorropc: not currently21:54
socorropcokay, so, only would work when updating the issue?21:55
darynyes there is21:55
darynwrite a custom function21:56
socorropchmm how could I write one?21:56
darynjust a sec. it's been awhile since i wrote ours21:57
socorropcthanks daryn21:57
darynk. the file you need to add is custom_functions_inc.php21:57
darynif it isn't there already21:57
darynthere are default functions available21:58
darynfor example custom_function_default_issue_update_validate21:58
darynyou override that function with custom_function_override_issue_update_validate21:58
socorropchave not the file...21:58
socorropchave only custom_function_api under core folder21:59
darynthen the defaults are in core/custom_functions_api.php21:59
darynoverride them in a new file named as i gave you21:59
adalwolfdo you make a file name custom_functions_inc.php in the core or in the /21:59
socorropcgreat, I will have a look at it22:00
darynin the /22:00
adalwolfI like the name of this function: custom_function_default_print_bug_view_page_custom_buttons22:03
darynwe like simple names22:03
adalwolfhehe22:03
nuclear_eclipse:P22:03
adalwolfat least there are nice comments22:03
* nuclear_eclipse is glad he wasn't around for that design decision22:03
nuclear_eclipsedinner time22:04
nuclear_eclipsecheers al22:04
daryni think custom functions might be added to my list of things to review...22:04
adalwolflucky22:04
daryncheers22:04
darynps...don't forget to review filters22:04
daryn:)22:04
adalwolfthis mantis bt is sure sweet22:04
adalwolfI got a lot to learn bout it tho22:04
adalwolfarg22:05
adalwolfit got angry at me making custom_functions_inc.php22:05
adalwolfredeclaring functions22:05
darynyou have to change the name to override22:06
darynreplace default with override22:06
adalwolfill play with it later :D22:06
darynhave fun22:06
adalwolfI will :D22:08

Generated by irclog2html.py