Tuesday, 2009-11-10

../irclogs/#mantishelp.2009-11-10.log
--- scribe started ---00:00
dirtyalhello12:41
dirtyalI've detedcted a problem the code integration12:41
dirtyalwhen we close a ticket via SVN12:41
dirtyalthe fixed_in_versionin not set12:42
dirtyallooking in the code12:42
dirtyalthe funcition bug_resolve12:42
dirtyalin called passing $t_version in blank12:42
dirtyalin Source.API.php12:42
dirtyalany ideas?12:42
dhx_mdid you setup branches correctly?12:47
dirtyalNo, I did not set up branches, could tou give a hint how to do it?12:48
dhx_mmaybe it only works with git repositories, I'll check12:51
dirtyalIt closes the tocket and updates it ok12:51
dirtyaljust the fixed_in_version problem. I could just make the update in the data in the code.12:52
dirtyalbut if it is a bug, it would be better to get it fixed right.12:52
dhx_mhmmm not too sure how it's done, I've never tried12:53
dhx_mnuclear_eclipse might be able to give you a better answer :)12:53
dirtyalit gets the verson form the mappings  $t_version = $t_mapping->apply( $t_bug_id );12:54
dhx_mfirstly13:04
dhx_mmake sure you enable "Branch Mappings" in the plugin configuration of the SourceIntegration plugin13:05
dirtyalis it enabled because it enters this part of the code if ( $t_enable_mapping ) {13:05
dhx_mthen go to Repositories => Manage in the main menu to see configuration options for each repository13:05
dhx_myou can then set a branch, strategy, version and regular expression13:06
dhx_mto define how the plugin automatically finds the version to set fixed_in_version to13:06
dhx_mworks for WebSVN and Gitweb (only two I've tried)13:06
dirtyalstrange it that it finds everything, the only thing it should to woudl be get the taget_verion an dapply to fixed_in_verion or not?13:07
dhx_myeah that does sound like a usual option to me13:09
nuclear_eclipsedirtyal: you need to set up branch mappings13:09
dirtyalwould tou give a exemple of this?13:09
dhx_ms/usual/useful13:10
nuclear_eclipsewell, on our tracker at mantisbt.org, mastre branch maps to version 1.3.X, and master-1.2.x branch maps to version 1.2.X13:10
dhx_mdo you see:13:10
dhx_mBranch Mappings13:10
dhx_mBranch Strategy Version ? Regular Expression ? Delete13:10
nuclear_eclipsedirtyal: it's mainly an issue of "not assuming anything"13:10
nuclear_eclipseor rather, only assuming exactly what the user tells it to assume13:11
dirtyalI thought that it would just set the fixed_in_version with the target_veriosn when a ticket is resolved/closed13:11
dirtyalI have 39 repos, each time I branch I must update the mappings?13:12
nuclear_eclipsedirtyal: I never really even considered that an option -- in many cases where I work, fixes do not always make it into the target version13:12
nuclear_eclipsehowever, I can look into making that an option13:13
dirtyalok, but than ou would change the target version of the ticket, or not?13:13
nuclear_eclipsedepends on the situation13:13
nuclear_eclipsesometimes the fix would get committed to a different branch before it's known if the fix will be ported to the original target or not13:13
dirtyalI see, you have a more complicated, but more powerfull way of doing13:14
dirtyalthe integration13:14
dhx_mI can see why it may be useful in some environments (with no branching) to copy the target version to the fixed in version upon a resolving commit being made13:15
dirtyalWe have branchs13:15
dirtyalbut the branch has a versoin13:15
dirtyaland tickets assigned to that version13:15
dhx_mbut it'd be a very borderline case13:15
dhx_mactually, I don't really see the point13:15
dhx_myes so set each branch to have a different version?13:16
dhx_mor do you have multiple branches per Mantis project?13:16
nuclear_eclipsedhx_m: I think his point is just that it would be a lot of work to maintain all those mappings for his 39 repos...13:16
dhx_mmultiple concurrent versions per Mantis project I mean?13:16
dirtyalI tought, till now, that only the ticket number would matter13:16
dhx_myep13:16
dirtyalI am one project, this project has 39 repositories13:17
nuclear_eclipsedirtyal: wow, what project? :)13:17
dirtyalyep, it is complex.13:17
dirtyalso the branch is the actual version running and th trunk is the next new version that will come out13:18
dirtyaland tags hold the history of course13:18
dhx_mwhat happens in your proposed workflow when someone hasn't set the target version?13:18
dhx_mdoes SourceIntegratation just ignore the need to update the fixed_in_version field?13:19
dirtyalWe always set a target version for eevery ticket13:19
dirtyalin mantis13:19
dirtyalyes, source integration13:20
dirtyaldoes not ginf any mappong and does not set fixed_in_version13:20
dirtyaldhx_m and nuclear_eclipse i have to go to the doctor to do a exam, I have a appointment, I will be back in a hour to continue the talk woth you guys if its ok?13:22
nuclear_eclipsesure thing13:22
nuclear_eclipseI'll be here :)13:22
dirtyaltks13:22
dhx_mI'll be gone, but you can leave messages here13:22
dirtyaltks be back soon13:22
dirtyaljust got back14:43
dirtyalwhen you say mapping branchs15:09
dirtyalI have to force a new branch to close in a determined version and each branch must be reconfigured?15:10
nuclear_eclipsedirtyal: more or less15:12
nuclear_eclipseI'm pondering what you're looking for though15:12
nuclear_eclipseperhaps I can find a way to meet both needs15:13
dirtyalthat the way we work, the projet is opmon, the veriosn out is 4.0.4, there is  brancj for it15:24
dirtyalthe verion in development is 4.1, the trunk15:24
dirtyalso we have tickets on  both verions and even on verions in the future15:25
nuclear_eclipseright, that's similar to how it works on mantisbt.org15:25
dirtyalso the tickets on on versoin 4.0.4, target_version, when closed should get fixed_in_version 4.0.4, if they are no fixed there due to anu probklem, their target_versin in changed and so on15:26
nuclear_eclipsehowever, on mantisbt.org, I have master branch (like trunk) mapped to 1.3.X version, and master-1.2.x branch (forked from master when RC1 was released) mapped to version 1.2.X15:26
nuclear_eclipseand it determines the fixed-in versoin just based on what branch the fix is committed to15:27
dirtyalok, when you fix a bug on a 1.2.x branch, how to do tag the fixed_in_verion?15:27
dirtyalI see now15:27
dirtyalthis would no work for me because of the many repositories the project has15:28
dirtyaland the way we organized15:28
dirtyalI think15:28
nuclear_eclipsebasically, it doesn't make an assumption of what the fixed-in version should be; there's an explicit mapping of VCS branch to fixed-in version15:28
dirtyalI see15:28
nuclear_eclipsedirtyal: I think I know a way to implement a method that you would want15:29
dirtyalmaybe, it could be that if there is no mapping15:30
dirtyalthe target_version it set in the fixed_in_version15:30
nuclear_eclipseI'm thinking more along the lines of a) adding a way of adding a mapping for "all other branches" such as "*", and then adding a new strategy of "same as target version", in which case you would only need to set a single mapping for each repository with that strategy15:31
nuclear_eclipseI still want the choice to be explicit15:31
dirtyalthat is also very nice15:32
dirtyalit keeps all the possibilities open15:32
dirtyaldoes't break anything15:32
nuclear_eclipseand what I'm thinking is that "*" would be lowest-priority, so you could still have explicit mappings that take precedence over it15:33
dirtyalperfect15:33
paulr_dhx_m / nuclear_eclipse moo?19:11
nuclear_eclipsehowdy paulr_19:11
paulr_lang api? :P19:11
paulr_oh19:12
paulr_hi19:12
paulr_;)19:12
* paulr_ warns his had a crap day at work19:12
CIA-9Mantisbt: robert.munteanu * rf7435b8ce5c5 /api/soap/mc_issue_api.php: Issue #11138: Error when retrieving bug via SOAP20:09
CIA-9Mantisbt: robert.munteanu master-1.2.x * r2656c2f57698 /api/soap/mc_issue_api.php: Issue #11138: Error when retrieving bug via SOAP20:10
CIA-9Mantisbt: jreese * r9f2e24daf90d /core/string_api.php: Commit 55878bd7 escapes using the wrong delimiter20:51
CIA-9Mantisbt: jreese master-1.2.x * re9d7b203b054 /core/string_api.php: Commit 55878bd7 escapes using the wrong delimiter20:51

Generated by irclog2html.py