Author Topic: Mantis "Vote Tallies" view shows resolved/closed issues  (Read 19885 times)

Offline Penumbra

  • Sr. Member Mark III
  • ****
  • Posts: 464
Mantis "Vote Tallies" view shows resolved/closed issues
« on: April 23, 2012, 03:25:17 pm »
When an issue is marked resolved or closed, the Resolution field remains in the open state. It appears the Vote Tallies view filters out on Resolution instead of status. Is there a way to change that in my own view? I can't find votes in the View Issues filter list.

Should this go in Mantis?

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: Mantis "Vote Tallies" view shows resolved/closed issues
« Reply #1 on: April 23, 2012, 03:40:56 pm »
I honestly don't know.  We didn't have anything to do with the coding of Manits or the voting plugin for it.  Nor are we particularly apt php programmers.
Have ideas or bug reports for one of our games?  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline Penumbra

  • Sr. Member Mark III
  • ****
  • Posts: 464
Re: Mantis "Vote Tallies" view shows resolved/closed issues
« Reply #2 on: April 23, 2012, 04:12:23 pm »
I think you're using a plugin called "Gauge Support." All this would be based on the version I found at Mantis Forge.

 It has a function in issue_ranking.php listThisIssue

Code: [Select]
125                 // get bug data and figure out if we have to process it
 126                 $bug = bug_get($bugid);
 127                 if(!listThisIssue($bug->resolution)) continue;
Code: [Select]
  67         function listThisIssue($issueResolution) {
  68                 switch(intval($issueResolution)) {
  69                         case OPEN: return true;
  70                         case FIXED: return false;
  71                         case REOPENED: return true;
  72                         case UNABLE_TO_DUPLICATE: return false;
  73                         case NOT_FIXABLE: return false;
  74                         case DUPLICATE: return true;
  75                         case NOT_A_BUG: return false;
  76                         case SUSPENDED: return true;
  77                         case WONT_FIX: return false;
  78                         default:  return true;
  79                 }




If you change the calling statement like:
Code: [Select]
                  // get bug data and figure out if we have to process it
                  $bug = bug_get($bugid);
                  if(!listThisIssue($bug->status)) continue;

And then changed the switch statement to
 
Code: [Select]
           function listThisIssue($issueStatus) {
                   switch(intval($issueStatus)) {
                           case FEEDBACK: return true;
                           case ACKNOWLEDGED: return true;
                           case CONFIRMED: return true;
                           case ASSIGNED: return true;
                           case RESOLVED: return false;
                           case CLOSED: return false;
                           default:  return true;
                   }



The code I found for the display of Resolution type is different from what I see on your Mantis. It shouldn't be too hard to change it to show Status in the list instead.
« Last Edit: April 23, 2012, 06:40:12 pm by Penumbra »

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: Mantis "Vote Tallies" view shows resolved/closed issues
« Reply #3 on: April 23, 2012, 04:28:55 pm »
That's just what I need.   Thanks!  I will take a look at that once things calm down a bit (so a few days, probably).
Have ideas or bug reports for one of our games?  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: Mantis "Vote Tallies" view shows resolved/closed issues
« Reply #4 on: April 23, 2012, 07:37:32 pm »
Okay, this is now in place -- thanks.  I was otherwise to be left twiddling my thumbs waiting on a few things. ;)
Have ideas or bug reports for one of our games?  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline Penumbra

  • Sr. Member Mark III
  • ****
  • Posts: 464
Re: Mantis "Vote Tallies" view shows resolved/closed issues
« Reply #5 on: April 23, 2012, 08:19:07 pm »
Yeah, "a few days" to most people is your 3 hours :)

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: Mantis "Vote Tallies" view shows resolved/closed issues
« Reply #6 on: April 23, 2012, 08:36:10 pm »
Hahaha.  My wife would tell you the opposite is true.  "Be there in 5 minutes" is "be there in three hours." ;)

I guess it depends on context.
Have ideas or bug reports for one of our games?  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline Penumbra

  • Sr. Member Mark III
  • ****
  • Posts: 464
Re: Mantis "Vote Tallies" view shows resolved/closed issues
« Reply #7 on: April 23, 2012, 08:44:50 pm »
Thanks for adding this. I had been trying to figure out why the tally thing was always showing closed or resolved issues.

Offline mrhanman

  • Hero Member Mark II
  • *****
  • Posts: 764
Re: Mantis "Vote Tallies" view shows resolved/closed issues
« Reply #8 on: April 23, 2012, 09:33:22 pm »
Just give Penumbra access to the server.  I'm sure he wouldn't mind maintaining everything for free.  :P

Offline fearts

  • Newbie
  • *
  • Posts: 1
Re: Mantis "Vote Tallies" view shows resolved/closed issues
« Reply #9 on: May 31, 2014, 09:45:08 pm »
I know this thread hasn't been touched in forever. But it seem Mantis removed the plugin from their git. I would wondering if you could upload your version of this plugin for me to use as it is very nice.

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: Mantis "Vote Tallies" view shows resolved/closed issues
« Reply #10 on: June 13, 2014, 04:49:04 pm »
Sorry about the delay in my response!

I have uploaded the contents of the GaugeSupport folder in the mantis plugins directory.  Unfortunately I can't seem to find installer files, and I expect there were some mysql scripts at the very least that needed to be run.  I'm not really sure, though.  On the off chance that this will be helpful, here is the link at least...
Have ideas or bug reports for one of our games?  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!