mantisbt-plugins / SetDuedate

This plugin sets the due date based on the priority of the issue if the due date field left empty or the issue would be due when the issue is submitted
GNU General Public License v3.0
0 stars 0 forks source link

default settings "unset" for plugin #1

Open pikachurus opened 1 year ago

pikachurus commented 1 year ago

How to configure the plugin so that by default and globally (if no settings are selected for a specific project / categories) due date remain unset?

now if i set priority (normal) to 0, any issue of any project become overdue.

CasN commented 1 year ago

Currently that is not an option but this could be added relative easily by adding the option to bypass duedate settings on global level. Just let me know if that is the only thing. I can then provide an update in June(this year).

pikachurus commented 1 year ago

Yes, please, add option for bypass this.

This is the only option that is missing in the plugin.

Thank you!

CasN commented 1 year ago

Try the latest version currently on GITHUB (4.04) This now has the requested option

pikachurus commented 1 year ago

if i enable this option, then on create bug page: image

with error in logs:

/var/www/job/core/commands/Command.php: 137: IssueAddCommand - -> - process() /var/www/job/bug_report.php: 260: Command - -> - execute()" while reading response header from upstream, client: 172.16.7.16, server: xxx.xxxxx.com, request: "POST /bug_report.php HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.4-fpm.sock:", host: "xxx.xxxxx.com", referrer: "https://xxx.xxxxx.com/bug_report_page.php" 2023/05/31 12:18:01 [error] 1681#1681: *10255790 FastCGI sent in stderr: "PHP message: Call to a member function create() on null

CasN commented 1 year ago

That is unfortunate , I will fix next week when I am back home again😁

Sent from Outlook for iOShttps://aka.ms/o0ukef


From: pikachurus @.> Sent: Wednesday, May 31, 2023 11:24:04 AM To: mantisbt-plugins/SetDuedate @.> Cc: Cas Nuy @.>; Comment @.> Subject: Re: [mantisbt-plugins/SetDuedate] default settings "unset" for plugin (Issue #1)

if i enable this option, then on create bug page: [image]https://user-images.githubusercontent.com/16227309/242225374-eacdf50d-ab00-4147-b6b6-2c58d82331ab.png

with error in logs:

/var/www/job/core/commands/Command.php: 137: IssueAddCommand - -> - process() /var/www/job/bug_report.php: 260: Command - -> - execute()" while reading response header from upstream, client: 172.16.7.16, server: xxx.xxxxx.com, request: "POST /bug_report.php HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.4-fpm.sock:", host: "xxx.xxxxx.com", referrer: "https://xxx.xxxxx.com/bug_report_page.php" 2023/05/31 12:18:01 [error] 1681#1681: *10255790 FastCGI sent in stderr: "PHP message: Call to a member function create() on null

— Reply to this email directly, view it on GitHubhttps://github.com/mantisbt-plugins/SetDuedate/issues/1#issuecomment-1569823469, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABYLFFEMWZTMSID2W5BI2YDXI4E3JANCNFSM6AAAAAAYT2LSSY. You are receiving this because you commented.Message ID: @.***>

CasN commented 1 year ago

I cannot replicate this. Can you add the following line into core/config_inc.php: $g_show_detailed_errors = ON; Now try again, you should get more info

From: pikachurus @.> Sent: Wednesday, May 31, 2023 11:24 AM To: mantisbt-plugins/SetDuedate @.> Cc: Cas Nuy @.>; Comment @.> Subject: Re: [mantisbt-plugins/SetDuedate] default settings "unset" for plugin (Issue #1)

if i enable this option, then on create bug page: [image]https://user-images.githubusercontent.com/16227309/242225374-eacdf50d-ab00-4147-b6b6-2c58d82331ab.png

with error in logs:

/var/www/job/core/commands/Command.php: 137: IssueAddCommand - -> - process() /var/www/job/bug_report.php: 260: Command - -> - execute()" while reading response header from upstream, client: 172.16.7.16, server: xxx.xxxxx.com, request: "POST /bug_report.php HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.4-fpm.sock:", host: "xxx.xxxxx.com", referrer: "https://xxx.xxxxx.com/bug_report_page.php" 2023/05/31 12:18:01 [error] 1681#1681: *10255790 FastCGI sent in stderr: "PHP message: Call to a member function create() on null

— Reply to this email directly, view it on GitHubhttps://github.com/mantisbt-plugins/SetDuedate/issues/1#issuecomment-1569823469, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABYLFFEMWZTMSID2W5BI2YDXI4E3JANCNFSM6AAAAAAYT2LSSY. You are receiving this because you commented.Message ID: @.**@.>>

pikachurus commented 1 year ago

image

CasN commented 1 year ago

Thanks Pikachurus. Now need to know: PHP is 7.4 OS is Unix Mantisbt version ? Can you share an overview of the settings of the Foreward plugin? Kind regards, Cas

From: pikachurus @.> Sent: Tuesday, June 6, 2023 10:48 PM To: mantisbt-plugins/SetDuedate @.> Cc: Cas Nuy @.>; Comment @.> Subject: Re: [mantisbt-plugins/SetDuedate] default settings "unset" for plugin (Issue #1)

[image]https://user-images.githubusercontent.com/16227309/243827506-44e91be5-c7a0-40f5-9dfe-b1b0df1f3252.png

— Reply to this email directly, view it on GitHubhttps://github.com/mantisbt-plugins/SetDuedate/issues/1#issuecomment-1579426560, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABYLFFB2VX5C4QIWIGPYW5DXJ6JRTANCNFSM6AAAAAAYT2LSSY. You are receiving this because you commented.Message ID: @.**@.>>

pikachurus commented 1 year ago

Ubuntu 18.04.6, nginx 1.24.0, php 7.4.33, mantisbt 2.25.7 image