Loading...
 
Features / Usability

Features / Usability


Inconsistent tracker item resturns

posts: 40 United States

Hello All,

Using TikiWiki 1.9.7 on a Fedora Core 5 and Apache 2.0 platform.

I've built a tracker and have put 5 items into it. I have seen the 5 items listed every so often when I attempt to list items. Most of the time though I only see the first two items I entered to the tracker. This is a problem even with no filter criteria specified. Here are some additional details:

  1. When I did see all five items everything was working well and I was able to pick individual items with filtering. Immediately following the filtering exercise however I was unable to see all 5 items again, not even if I specifically request a missing item via unique criteria entered to the filter.
  2. I have checked the tiki_tracker_item_fields table and all the data appears there.
  3. I have tried clearing out temp, templates_c and modules/cache one at a time to make sure I wasn't getting some sort of improperly cached value. This made no difference.


I am at a loss at this point. Any advice would be appreciated.

Update
I have discovered since this last posting that if I save an item without setting the rating it doesn't appear on the list of items. Here are the specifics of this finding:

  1. Add an item with no rating it doesn't appear on the complete item list and cannot be found via the filter.
  2. Update the rating of any item and all items show up when back items list is clicked, but no subsequent listing of the items will return a full list.
  3. Update a missing item (after it appears on the list following the update of a visible items rating) and it will always appear on the list of items.
  4. Only the rating has this effect. Updating any other field of ay other item does not resurrect missing items.
  5. Turning off ratings for the tracker fixes the problem for the racker, but the problems persists for the plugin TrackerList
  6. To solve the problem for the Trackerlist plugin I need to change the tracker to reenable ratings and then give the item a rating.


I'm thinking at this point that this issue is a bug in the tracker system.

Thanks,
Steve

posts: 40 United States

As a workaround to the problem I have updated line 326 of tiki-view_tracker.php from


$newItemRate = NULL;
to
$newItemRate = 0;


I realize this is okay for the default values provided but could be problematic for someone who has customized the possible values for rating, but I am out of time and presenting this tracker in 2 hours. It seems to me it would be a good solution to force the user to provide a default value when providing custom rating values and using that on line 326 with zero being the default for the default values if you know what I mean. confused


> Hello All,
>
> Using TikiWiki 1.9.7 on a Fedora Core 5 and Apache 2.0 platform.
>
> I've built a tracker and have put 5 items into it. I have seen the 5 items listed every so often when I attempt to list items. Most of the time though I only see the first two items I entered to the tracker. This is a problem even with no filter criteria specified. Here are some additional details:
> #When I did see all five items everything was working well and I was able to pick individual items with filtering. Immediately following the filtering exercise however I was unable to see all 5 items again, not even if I specifically request a missing item via unique criteria entered to the filter.
> #I have checked the tiki_tracker_item_fields table and all the data appears there.
> #I have tried clearing out temp, templates_c and modules/cache one at a time to make sure I wasn't getting some sort of improperly cached value. This made no difference.
>
> I am at a loss at this point. Any advice would be appreciated.
>
> Update
> I have discovered since this last posting that if I save an item without setting the rating it doesn't appear on the list of items. Here are the specifics of this finding:
> #Add an item with no rating it doesn't appear on the complete item list and cannot be found via the filter.
> #Update the rating of any item and all items show up when back items list is clicked, but no subsequent listing of the items will return a full list.
> #Update a missing item (after it appears on the list following the update of a visible items rating) and it will always appear on the list of items.
> #Only the rating has this effect. Updating any other field of ay other item does not resurrect missing items.
> #Turning off ratings for the tracker fixes the problem for the racker, but the problems persists for the plugin TrackerList
> #To solve the problem for the Trackerlist plugin I need to change the tracker to reenable ratings and then give the item a rating.
>
> I'm thinking at this point that this issue is a bug in the tracker system.
>
> Thanks,
> Steve


posts: 3665 United States

I'm not sure if this will fix your issue, but for my Tiki, I added an Unfilter button to the UI because, as you discovered, if you apply a filter it is not easy to return to the full list.

See: http://www.stc-carolina.org/tiki-view_tracker.php?trackerId=4 for an example.

Basically, in the tiki-view_tracker.tpl I added:

{if $filtervalue ne ''} [<a href="tiki-view_tracker.php?trackerId={$trackerId}&{if $sort_mode}&sort_mode={$sort_mode}{/if}{if $status}&status={$status}{/if}">{tr}unfilter{/tr}]{/if}
posts: 40 United States
{if $filtervalue ne ''} [<a href="tiki-view_tracker.php?trackerId={$trackerId}&{if $sort_mode}&sort_mode={$sort_mode}{/if}{if $status}&status={$status}{/if}">{tr}unfilter{/tr}]{/if}


Thanks for this tip regarding getting back to an unfiltered state. I'll give that a go.

Steve



> I'm not sure if this will fix your issue, but for my Tiki, I added an Unfilter button to the UI because, as you discovered, if you apply a filter it is not easy to return to the full list.
>
> See: http://www.stc-carolina.org/tiki-view_tracker.php?trackerId=4 for an example.
>
> Basically, in the tiki-view_tracker.tpl I added:
>

>
{if $filtervalue ne ''} [<a href="tiki-view_tracker.php?trackerId={$trackerId}&{if $sort_mode}&sort_mode={$sort_mode}{/if}{if $status}&status={$status}{/if}">{tr}unfilter{/tr}]{/if} >