Welcome Guest Login Register Member List
ExpressionEngine Forums
Advanced Search
Username: Password:
Remember Me? forgot password?
You are here: Forum Home  >  Usage  >  Troubleshooting  >  Thread
   
 
Searching Tags broken
 
bgrolleman
Posted: 10 June 2008 12:01 PM   [ Ignore ]  
Newbie
Rank
Total Posts:  7
Joined  2007-11-19

So I have this really weird issue,

I can tag/star tasks in tracks, (1.6 on the moment, but I had this issue for a while, also in 1.5), but when searching for tags, either by using the star tab or clicking on a tag I get 0 results.

I did a clean install and then it all seems to work fine, so that rules out a software bug, it should be in the database.

If anybody has some hints/tips on where to look, I would very much appreciate it.

Profile
 
Reinier Balt
Posted: 10 June 2008 02:34 PM   [ Ignore ]   [ # 1 ]  
Sr. Member
RankRankRankRank
Total Posts:  580
Joined  2006-10-05

I’m not completely sure what you mean.

After the clean install, does both starring and the star tab work?
Is there corruption left, i.e. old starred actions that you cannot find through the star tab?

Furthermore, is tagging working for you? I mean, can you add a tag to an action and search for it by clicking on a tag that is shown next to an action??

Profile
 
bgrolleman
Posted: 10 June 2008 03:32 PM   [ Ignore ]   [ # 2 ]  
Newbie
Rank
Total Posts:  7
Joined  2007-11-19

With a clean install (Start with empty database and run rake db:migrate), everything works fine.

With my current install, including loads of tasks, I can create tags, but I cannot search for them, I always get empty results back.

So my best guess on the moment is that something breaks on the select query for searching tags, but I don’t know where to start to debug the issue. ( My RoR Fu isn’t that strong yet smile )

Profile
 
Reinier Balt
Posted: 10 June 2008 03:46 PM   [ Ignore ]   [ # 3 ]  
Sr. Member
RankRankRankRank
Total Posts:  580
Joined  2006-10-05

if you add tags to actions, do they show up besides the action on the home page? IOW, are they stored in the db?

Profile
 
bgrolleman
Posted: 10 June 2008 08:37 PM   [ Ignore ]   [ # 4 ]  
Newbie
Rank
Total Posts:  7
Joined  2007-11-19

Yes, they do show up next to the task, and I can click on them.
(That’s what I meant when I said I can create them, sorry if that wasn’t clear)

Profile
 
Reinier Balt
Posted: 11 June 2008 08:17 AM   [ Ignore ]   [ # 5 ]  
Sr. Member
RankRankRankRank
Total Posts:  580
Joined  2006-10-05

a very strange case grin

Are there any error messages in your log after trying to search for a tag?

If you’re comfortable using some sort of sql query tool, you can try to compare the data definition of your newly created db with the data definition of your ‘corrupted’ database. Perhaps you can spot differences .
Also, you can try to compare the way your tags / taggings table is filled with the newly created db. Of course you need to add some actions with tags in the new db. Try to add an action with the same tags as in your corrupted db for better comparison.

Profile
 
bgrolleman
Posted: 16 June 2008 08:04 AM   [ Ignore ]   [ # 6 ]  
Newbie
Rank
Total Posts:  7
Joined  2007-11-19

Ok, got it fixed now, seems my RoR Foo is better than last attempt smile

After using “debug” to vind out what the models where saying, I noticed that even thought the items where found, some didn’t show, after that it became clear that the reason why my tags are not showing up is because I’m working from a “hidden” context.

This, to me, looks like a bug, since a context should only be hidden on the front page right?

Profile
 
bgrolleman
Posted: 16 June 2008 08:07 AM   [ Ignore ]   [ # 7 ]  
Newbie
Rank
Total Posts:  7
Joined  2007-11-19

I fixed this by changing the views/todos/tag.html.erb

Replaced this

<%= render :partial => "contexts/context", :collection => @contexts_to_show,        
            :
locals => { :collapsible => true } %> 

with this

<%= render :partial => "contexts/context", :collection => @contexts,        
            :
locals => { :collapsible => true } %> 

on line 9

Profile
 
Reinier Balt
Posted: 16 June 2008 08:44 AM   [ Ignore ]   [ # 8 ]  
Sr. Member
RankRankRankRank
Total Posts:  580
Joined  2006-10-05

nice debugging! Could you add a report on dev.rousette.org.uk for this bug?

Profile
 
bgrolleman
Posted: 16 June 2008 10:30 AM   [ Ignore ]   [ # 9 ]  
Newbie
Rank
Total Posts:  7
Joined  2007-11-19

Sure, I’m clone-ing the git repository as we speak, see if it’s fixed already and if not, create a patch for it.

Profile
 
Reinier Balt
Posted: 16 June 2008 10:42 AM   [ Ignore ]   [ # 10 ]  
Sr. Member
RankRankRankRank
Total Posts:  580
Joined  2006-10-05

great idea. I’m wondering though if your suggested fix is the right one. I personally work a lot from the tag view so I can group actions from all projects from the same client together (the client name is a tag). This way I can see my next actions when working for that client.

Your patch mixes hidden todos with active todos.

Perhaps we should add a separate container containing all hidden todos for the tag, like the container for all deferred todos

Profile
 
bgrolleman
Posted: 17 June 2008 06:21 AM   [ Ignore ]   [ # 11 ]  
Newbie
Rank
Total Posts:  7
Joined  2007-11-19

I need some time to look into that, on the moment I check if there are hidden contexts, and now show them seperatly with a simple

<h2>Hidden Contexts</h2> 

between them.

It’s not pretty, but I will see if I can polish it up tonight.

Profile
 
Sara-
Posted: 18 June 2009 02:53 PM   [ Ignore ]   [ # 12 ]  
Newbie
Rank
Total Posts:  2
Joined  2009-05-26

I noticed this problem too, but I use Tracks 1.6 on Morphexchange.  Is there a way to fix this when you haven’t installed Tracks yourself?

Profile
 
Reinier Balt
Posted: 18 June 2009 06:45 PM   [ Ignore ]   [ # 13 ]  
Sr. Member
RankRankRankRank
Total Posts:  580
Joined  2006-10-05

Unfortunately you cannot fix this when you are on Morphexchange, since you cannot change the source of Tracks there. You need to ask them or ask them to upgrade to Tracks 1.7 where this issue is fixed.

Profile
 
GTDify
Posted: 20 June 2009 07:48 PM   [ Ignore ]   [ # 14 ]  
Newbie
Rank
Total Posts:  11
Joined  2009-05-26

We fixed this issue on GTDify.com. Thanks bgrolleman.

Profile
 
   
 
 
‹‹ Visual bugs      Keeping two Tracks installations in sync ››

Powered By ExpressionEngine
Template Design By Sonnenvogel.com
Select a theme:

ExpressionEngine Discussion Forum - Version 2.1.2 (20091002)
Script Executed in 0.1381 seconds

Atom Feed
RSS 2.0