Jibble

A redesign of the AGS site is being planned! Please check out the mockups and give your feedback.


Two factor authentication (via app or email) is now available for the forums. You can enable it on your profile.

Author Topic: Issue tracker: hide closed issues  (Read 2234 times)

Radiant

  • Mittens Knight
  • AGS Baker
  • Return once more to the Two Kingdoms!
    • I can help with story design
    • I can help with publishing
    • Radiant worked on one or more games that won an AGS Award!
    •  
    • Radiant worked on one or more games that was nominated for an AGS Award!
Issue tracker: hide closed issues
« on: 11 Mar 2014, 14:24 »
Since the primary purpose of the issue tracker is to see which issues are ongoing (newly reported or still being worked on), it would be more convenient if the default view of the issue tracker (e.g. http://www.adventuregamestudio.co.uk/forums/index.php?project=3;area=issues ) would either hide closed and solved issues, or be sorted so that these issues appear at the bottom.

Re: Issue tracker: hide closed issues
« Reply #1 on: 11 Mar 2014, 14:30 »
I'd wish we have ANY kind of sorting work there :)

AGA

  • Adventure Game Aficionado
  • Administrator
  • Mittens Deity
  • ¡Qué alí­vio!
    • Lifetime Achievement Award Winner
    • AGA worked on one or more games that won an AGS Award!
    •  
    • AGA worked on one or more games that was nominated for an AGS Award!
Re: Issue tracker: hide closed issues
« Reply #2 on: 11 Mar 2014, 14:41 »
Hahaha, no.  Sorry.  Any changes you want made to the tracker, you'll have to do them yourselves.  It's a standard install of SMF Project Tracker, but that project is now dead.  It's really far too complicated, and kinda poorly written, for me to spend ages working out how to make it more usable.  The source is at the link I posted, if anyone else fancies having a go though!

Radiant

  • Mittens Knight
  • AGS Baker
  • Return once more to the Two Kingdoms!
    • I can help with story design
    • I can help with publishing
    • Radiant worked on one or more games that won an AGS Award!
    •  
    • Radiant worked on one or more games that was nominated for an AGS Award!
Re: Issue tracker: hide closed issues
« Reply #3 on: 11 Mar 2014, 14:55 »
I've done some experimenting...

You can sort things by appending them to the URL: http://www.adventuregamestudio.co.uk/forums/index.php?project=5;area=issues&sort=status
Alternatively, you can find one category by also appending that to the URL: http://www.adventuregamestudio.co.uk/forums/index.php?project=5;area=issues&status=1
(and you can combine the two, if you want)

CW, is that the kind of thing you're looking for?

AGA

  • Adventure Game Aficionado
  • Administrator
  • Mittens Deity
  • ¡Qué alí­vio!
    • Lifetime Achievement Award Winner
    • AGA worked on one or more games that won an AGS Award!
    •  
    • AGA worked on one or more games that was nominated for an AGS Award!
Re: Issue tracker: hide closed issues
« Reply #4 on: 11 Mar 2014, 16:41 »
If it's as something as simple as adding a link to 'sort by x' I'm happy to do that of course.  But expanding the Project's functionality is a bit much.

Re: Issue tracker: hide closed issues
« Reply #5 on: 11 Mar 2014, 16:53 »
You can filter by category by clicking on category name.

Peder 🚀

  • Been nearly 10 years, think it's time for a change
    • Lifetime Achievement Award Winner
    • Peder 🚀 worked on one or more games that won an AGS Award!
    •  
    • Peder 🚀 worked on one or more games that was nominated for an AGS Award!
Re: Issue tracker: hide closed issues
« Reply #6 on: 11 Mar 2014, 17:05 »
Or it looks like you could just edit this file: IssueList.php on line 37/38
Code: PHP
  1.                 $context['sort_by'] = 'updated';
  2.                 $_REQUEST['sort'] = 'i.updated';

Change "updated" with "status"

(Though it seems all though that will put any resolved/closed issues below new/assigned ones it doesn't seem to take into picture the date they were updated.. But it's probably not too hard to sort out).
« Last Edit: 11 Mar 2014, 17:12 by Peder Johnsen+ »

AGA

  • Adventure Game Aficionado
  • Administrator
  • Mittens Deity
  • ¡Qué alí­vio!
    • Lifetime Achievement Award Winner
    • AGA worked on one or more games that won an AGS Award!
    •  
    • AGA worked on one or more games that was nominated for an AGS Award!
Re: Issue tracker: hide closed issues
« Reply #7 on: 11 Mar 2014, 17:29 »
Okay, great.  If someone wants to fiddle to make the existing sorting thing have weighting I'm happy to hack it in.

Peder 🚀

  • Been nearly 10 years, think it's time for a change
    • Lifetime Achievement Award Winner
    • Peder 🚀 worked on one or more games that won an AGS Award!
    •  
    • Peder 🚀 worked on one or more games that was nominated for an AGS Award!
Re: Issue tracker: hide closed issues
« Reply #8 on: 11 Mar 2014, 18:07 »
Ok, after scanning through the files I think this could work:
Code: PHP
  1.                 $context['sort_by'] = 'status';
  2.                 $_REQUEST['sort'] = 'i.status ASC, i.updated';

These are the same lines as mentioned above. (And it seems really only the second one really does anything important)
(It might require some more small code, if this doesn't work I'll set up a local installation of SMF and test it out there.)

[EDIT]
I changed the code and it should definitely work now! :)
« Last Edit: 11 Mar 2014, 20:04 by Peder Johnsen+ »

Peder 🚀

  • Been nearly 10 years, think it's time for a change
    • Lifetime Achievement Award Winner
    • Peder 🚀 worked on one or more games that won an AGS Award!
    •  
    • Peder 🚀 worked on one or more games that was nominated for an AGS Award!
Re: Issue tracker: hide closed issues
« Reply #9 on: 12 Mar 2014, 08:17 »
Sorry for double post but I noticed a "bug" with the issue tracker, where when you add/edit/delete categories in a project it will try and send you to the project tracker section in the forum admin area.

To fix this you can change line 591 in the file ProjectModule-Admin.php from:

Code: PHP
  1. redirectexit('action=admin;area=manageprojects;section=categories');

to:

Code: PHP
  1. redirectexit(project_get_url(array('project' => $project, 'area' => 'admin', 'sa' => 'category')));

AGA

  • Adventure Game Aficionado
  • Administrator
  • Mittens Deity
  • ¡Qué alí­vio!
    • Lifetime Achievement Award Winner
    • AGA worked on one or more games that won an AGS Award!
    •  
    • AGA worked on one or more games that was nominated for an AGS Award!
Re: Issue tracker: hide closed issues
« Reply #10 on: 12 Mar 2014, 09:17 »
Done that, thanks.

Peder 🚀

  • Been nearly 10 years, think it's time for a change
    • Lifetime Achievement Award Winner
    • Peder 🚀 worked on one or more games that won an AGS Award!
    •  
    • Peder 🚀 worked on one or more games that was nominated for an AGS Award!
Re: Issue tracker: hide closed issues
« Reply #11 on: 12 Mar 2014, 09:25 »
What about the sorting thing? :).

AGA

  • Adventure Game Aficionado
  • Administrator
  • Mittens Deity
  • ¡Qué alí­vio!
    • Lifetime Achievement Award Winner
    • AGA worked on one or more games that won an AGS Award!
    •  
    • AGA worked on one or more games that was nominated for an AGS Award!
Re: Issue tracker: hide closed issues
« Reply #12 on: 12 Mar 2014, 10:18 »
Sorry, when I saw "I changed the code" I thought you meant you'd actually edited the forum source files!  Made the changes now, thanks.

Peder 🚀

  • Been nearly 10 years, think it's time for a change
    • Lifetime Achievement Award Winner
    • Peder 🚀 worked on one or more games that won an AGS Award!
    •  
    • Peder 🚀 worked on one or more games that was nominated for an AGS Award!
Re: Issue tracker: hide closed issues
« Reply #13 on: 12 Mar 2014, 10:21 »
:)

Re: Issue tracker: hide closed issues
« Reply #14 on: 13 Mar 2014, 14:12 »
Erm, what did you do to sorting? :( Before it sorted by last update, now it sorts by status.

EDIT: Oh, I see now, it sorts both by status AND update time.

UPD: I have to disagree with this. It's not uncommon when you need to see recently updated issues regardless of the status.
For example, "New" and "Confirmed" status both marks tasks and bugs, the difference is pretty vague, besides "Confirmed" bugs means that their presence was checked, but "Confirmed" issues are listed after "New" ones.
"Resolved" status means that developer did some changes but the issue is yet to be tested and confirmed working. When there are many "New" issues, "Resolved" will get somewhere to the end of the list, and users who were waiting for them to be fixed won't notice the update.
« Last Edit: 13 Mar 2014, 14:29 by Crimson Wizard »

Peder 🚀

  • Been nearly 10 years, think it's time for a change
    • Lifetime Achievement Award Winner
    • Peder 🚀 worked on one or more games that won an AGS Award!
    •  
    • Peder 🚀 worked on one or more games that was nominated for an AGS Award!
Re: Issue tracker: hide closed issues
« Reply #15 on: 13 Mar 2014, 15:55 »
So basically the preferred result is to show closed and resolved at the bottom but have the rest ordered by when it was updated? :)

If AGA changes the previous code with this:
Code: PHP
  1. i.status = 6 ASC, i.status = 5 ASC, i.updated

It will sort closed at the bottom, resolved above, then the rest all by when they were last updated!
« Last Edit: 13 Mar 2014, 16:13 by Peder Johnsen+ »

AGA

  • Adventure Game Aficionado
  • Administrator
  • Mittens Deity
  • ¡Qué alí­vio!
    • Lifetime Achievement Award Winner
    • AGA worked on one or more games that won an AGS Award!
    •  
    • AGA worked on one or more games that was nominated for an AGS Award!
Re: Issue tracker: hide closed issues
« Reply #16 on: 13 Mar 2014, 16:26 »
Done!