简体   繁体   English

MantisBT未列出更改日志

[英]MantisBT not listing changelog

I am making use of MantisBT to track issues and have so far collected a number of issues. 我正在使用MantisBT来跟踪问题,到目前为止已经收集了许多问题。 However, my changelog remains empty 但是,我的变更日志仍然为空

No Change Log information available. 没有可用的更改日志信息。 Issues are included once projects have versions and issues are resolved with "fixed in version" set. 一旦项目具有版本,并且通过设置“版本已修复”来解决问题,则包括问题。

Each bug report has Product version, target version (needed for roadmap) and a fixed in version (needed for changelog). 每个错误报告都有产品版本,目标版本(路线图需要)和固定版本(变更日志需要)。 Likewise I have released certain versions. 同样,我已经发布了某些版本。

I have customized my workflow and I suspect this is part of the reason. 我已经自定义了我的工作流程,我怀疑这是部分原因。

# custom access list
$g_access_levels_enum_string = '10:VIEWER,20:REPORTER,30:ENGINEER,40:CCB,90:ADMINISTRATOR';

# custom resolution list
$g_resolution_enum_string = '10:OPEN,20:REOPEN,30:WONTFIX,60:DISPOSITIONED, 70:FIXED';

From what I have been able to determine, for a changelog to appear you need 1) a released version (done) 2) a bug with a fixed in version matching this (done 3) a bug closed as "fixed" 根据我的判断,要显示更改日志,您需要1)已发布的版本(完成)2)带有与此版本相匹配的固定错误(已完成3)已关闭为“已修复”的错误

now in a fresh MantisBT (and testing shows changelog works), FIXED has a constant of 20 so part of me suspect it is my g_resolution_enum_string but this would also imply that there should be another variable that sets which threshold should be used 现在在新的MantisBT中(并且测试显示changelog起作用),FIXED的常数为20,所以我一部分怀疑这是我的g_resolution_enum_string,但这也意味着应该有另一个变量设置应该使用哪个阈值

$g_bug_resolution_fixed_threshold = FIXED;

This does not work 这行不通

What am I missing? 我想念什么? Also if it is of importance... my versions are labeled: v0.0, v0.1, v0.2 (ie prepended by 'v') 另外,如果它很重要...我的版本也被标记为:v0.0,v0.1,v0.2(即以“ v”开头)

I suggest you read the documentation's Enumerations section , in particular 我建议您阅读文档的Enumerations部分 ,特别是

The strings included in the enumerations here are just for documentation purposes 枚举中包含的字符串仅供参考

So, your enum definition of 70:FIXED does not actually match the constant FIXED which, as you have pointed out, is still set to 20 which means that $g_bug_resolution_fixed_threshold actually points to your 20:REOPEN ... You may want to define your own constants. 因此,您对70:FIXED枚举定义实际上与常量FIXED不匹配,正如您所指出的,常量FIXED仍设置为20,这意味着$ g_bug_resolution_fixed_threshold实际上指向您的20:REOPEN ...您可能想定义您的自己的常数。

Also note that there is another important threshold in this context, $g_bug_resolution_not_fixed_threshold - resolutions above it are considered to be resolved in an unsuccessful way. 还要注意,在这种情况下还有一个重要的阈值$g_bug_resolution_not_fixed_threshold高于该阈值的分辨率被认为是无法成功解决的。 By default it is set to _UNABLE_TO_REPRODUCE_ (40). 默认情况下,它设置为_UNABLE_TO_REPRODUCE_(40)。

In other words, for an issue to appear in the Changelog, it must match all of the following criteria ( reference ): 换句话说,要使问题出现在变更日志中,它必须符合以下所有条件( 参考 ):

  • status >= bug_resolution_fixed_threshold 状态> = bug_resolution_fixed_threshold
  • resolution >= bug_resolution_fixed_threshold 分辨率> = bug_resolution_fixed_threshold
  • resolution < bug_resolution_not_fixed_threshold 分辨率<bug_resolution_not_fixed_threshold

Note that this standard behavior can be changed with a custom function . 请注意,可以使用自定义函数更改此标准行为。

So your problem is indeed caused by your custom resolution_enum_string , most likely in combination with the values in the 2 above-mentioned thresholds. 因此,您的问题确实是由您的自定义resolution_enum_string引起的,很可能与上述2个阈值中的值结合使用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM