Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Bricolage: bugs

[Bricolage #102] Element Type Manager page only finds subelements when using show all/paginate/page navigation links.

 

 

Bricolage bugs RSS feed   Index | Next | Previous | View Threaded


no-reply at lighthouseapp

Oct 15, 2009, 2:17 PM

Post #1 of 8 (97 views)
Permalink
[Bricolage #102] Element Type Manager page only finds subelements when using show all/paginate/page navigation links.

// Add your reply above here
==================================================
Aaron Fuleki updated this ticket at October 15th, 2009 @ 09:17 PM

**Reproducible:** Always <br />
**Versions Affected:** 1.10.6, 1.10.7 <br />
**Details:** Clicking the "Show All" link at the bottom of the Element Type Manager page seems to break the results, such that your search only finds subelements - story elements and other types just don't show up. Clicking "Paginate" doesn't fix it, and clicking the results page navigation links (1, 2, 3, etc.) does the same thing. This effectively makes it impossible to find an element that isn't a subelement type if it doesn't show up on the first page of results (e.g., you don't know its exact name).<br />

It's almost like clicking the show all or page links activates a "show only subelements" filter, limiting your results to an incomplete set.<br />

**Steps to Reproduce:** <br />
1. Go to the Element Type Manager and perform a search that returns more than one page of results.<br />
2. Click on one of the numbered page links, or the Show All link.<br />
3. Now you only see subelements - story elements and the like have been filtered out. Only submitting the search form again seems to fix it, bringing the other element types back.<br />
--------------------------------------------------------------------------------

Assigned: Bugs (at bricolage)
State: new
View this ticket online: http://bricolage.lighthouseapp.com/projects/29601/tickets/102-element-type-manager-page-only-finds-subelements-when-using-show-allpaginatepage-navigation-links
Stop being notified of this ticket's changes: http://bricolage.lighthouseapp.com/projects/29601/tickets/102-element-type-manager-page-only-finds-subelements-when-using-show-allpaginatepage-navigation-links/watch
Update your Profile: http://bricolage.lighthouseapp.com/profile
Support: support[at]lighthouseapp.com or http://help.lighthouseapp.com


no-reply at lighthouseapp

Oct 15, 2009, 4:24 PM

Post #2 of 8 (91 views)
Permalink
[Bricolage #102] Element Type Manager page only finds subelements when using show all/paginate/page navigation links. [In reply to]

// Add your reply above here
==================================================
phillipadsmith updated this ticket at October 15th, 2009 @ 11:24 PM

I'm not able to reproduce this on Bricolage 1.10.5 or 1.11.2.
--------------------------------------------------------------------------------

Assigned: Bugs (at bricolage)
State: new
View this ticket online: http://bricolage.lighthouseapp.com/projects/29601/tickets/102-element-type-manager-page-only-finds-subelements-when-using-show-allpaginatepage-navigation-links
Stop being notified of this ticket's changes: http://bricolage.lighthouseapp.com/projects/29601/tickets/102-element-type-manager-page-only-finds-subelements-when-using-show-allpaginatepage-navigation-links/watch
Update your Profile: http://bricolage.lighthouseapp.com/profile
Support: support[at]lighthouseapp.com or http://help.lighthouseapp.com


no-reply at lighthouseapp

Oct 15, 2009, 4:27 PM

Post #3 of 8 (91 views)
Permalink
[Bricolage #102] Element Type Manager page only finds subelements when using show all/paginate/page navigation links. [In reply to]

// Add your reply above here
==================================================
Aaron Fuleki updated this ticket at October 15th, 2009 @ 11:27 PM

Huh. It's bugged us for ages, and is still present after upgrading to 1.10.7. Maybe it's limited to 1.10.6/7, or something we've configured. Are there any config directives that effect that?
--------------------------------------------------------------------------------

Assigned: Bugs (at bricolage)
State: new
View this ticket online: http://bricolage.lighthouseapp.com/projects/29601/tickets/102-element-type-manager-page-only-finds-subelements-when-using-show-allpaginatepage-navigation-links
Stop being notified of this ticket's changes: http://bricolage.lighthouseapp.com/projects/29601/tickets/102-element-type-manager-page-only-finds-subelements-when-using-show-allpaginatepage-navigation-links/watch
Update your Profile: http://bricolage.lighthouseapp.com/profile
Support: support[at]lighthouseapp.com or http://help.lighthouseapp.com


no-reply at lighthouseapp

Oct 15, 2009, 4:34 PM

Post #4 of 8 (91 views)
Permalink
[Bricolage #102] Element Type Manager page only finds subelements when using show all/paginate/page navigation links. [In reply to]

// Add your reply above here
==================================================
phillipadsmith updated this ticket at October 15th, 2009 @ 11:34 PM

"Huh. It's bugged us for ages, and is still present after upgrading to 1.10.7. Maybe it's limited to 1.10.6/7, or something we've configured. Are there any config directives that effect that?"

Not that I can think of, no. Have you applied any patches, or customizations to the installation?
--------------------------------------------------------------------------------

Assigned: Bugs (at bricolage)
State: new
View this ticket online: http://bricolage.lighthouseapp.com/projects/29601/tickets/102-element-type-manager-page-only-finds-subelements-when-using-show-allpaginatepage-navigation-links
Stop being notified of this ticket's changes: http://bricolage.lighthouseapp.com/projects/29601/tickets/102-element-type-manager-page-only-finds-subelements-when-using-show-allpaginatepage-navigation-links/watch
Update your Profile: http://bricolage.lighthouseapp.com/profile
Support: support[at]lighthouseapp.com or http://help.lighthouseapp.com


no-reply at lighthouseapp

Oct 15, 2009, 4:37 PM

Post #5 of 8 (90 views)
Permalink
[Bricolage #102] Element Type Manager page only finds subelements when using show all/paginate/page navigation links. [In reply to]

// Add your reply above here
==================================================
Aaron Fuleki updated this ticket at October 15th, 2009 @ 11:37 PM

Yeah, we have a couple of backports from 2.0, but I don't think they touch any related files, although I'm not super-familiar with bric's gooey insides yet. David should know - he made the patch files :-)
--------------------------------------------------------------------------------

Assigned: Bugs (at bricolage)
State: new
View this ticket online: http://bricolage.lighthouseapp.com/projects/29601/tickets/102-element-type-manager-page-only-finds-subelements-when-using-show-allpaginatepage-navigation-links
Stop being notified of this ticket's changes: http://bricolage.lighthouseapp.com/projects/29601/tickets/102-element-type-manager-page-only-finds-subelements-when-using-show-allpaginatepage-navigation-links/watch
Update your Profile: http://bricolage.lighthouseapp.com/profile
Support: support[at]lighthouseapp.com or http://help.lighthouseapp.com


no-reply at lighthouseapp

Oct 15, 2009, 5:05 PM

Post #6 of 8 (90 views)
Permalink
[Bricolage #102] Element Type Manager page only finds subelements when using show all/paginate/page navigation links. [In reply to]

// Add your reply above here
==================================================
Matthew Rolf updated this ticket at October 16th, 2009 @ 12:05 AM

Yes, this did bug me for a long time, but I was never able to reproduce it in a clean install, which is why I never reported it as a bug. I may have even posted something to the user list and got nothing back.

I would search the commits list and see if something got fixed somewhere along the way. Otherwise, take a look in the element_type table and see if there's anything wonky.

As to why paginate in particular would cause this issue - dunno.
--------------------------------------------------------------------------------

Assigned: Bugs (at bricolage)
State: new
View this ticket online: http://bricolage.lighthouseapp.com/projects/29601/tickets/102-element-type-manager-page-only-finds-subelements-when-using-show-allpaginatepage-navigation-links
Stop being notified of this ticket's changes: http://bricolage.lighthouseapp.com/projects/29601/tickets/102-element-type-manager-page-only-finds-subelements-when-using-show-allpaginatepage-navigation-links/watch
Update your Profile: http://bricolage.lighthouseapp.com/profile
Support: support[at]lighthouseapp.com or http://help.lighthouseapp.com


no-reply at lighthouseapp

Oct 16, 2009, 8:51 AM

Post #7 of 8 (91 views)
Permalink
[Bricolage #102] Element Type Manager page only finds subelements when using show all/paginate/page navigation links. [In reply to]

// Add your reply above here
==================================================
Aaron Fuleki updated this ticket at October 16th, 2009 @ 03:51 PM

This is reproducible on our 1.11.1 instance, which was made by upgrading our 1.10.6-ish instance. So, maybe the breakage was propagated.

I'm not 100% percent sure what the below code does, but lines 106-123 (part that returns your search results) of bricolage/comp/admin/manager/element_type has two possible return values at the end:

<code>
# Output the list of found objects.
$m->comp('/widgets/listManager/listManager.mc',
behavior => $behavior,
object => $key,
state_key => $state_key,
constrain => $constrain,
profile => ($id) ? undef : $prof_sub,
fields => [qw(name key_name biz_class_id)],
exclude => $exclude,
addition => defined $id ? undef : $add_sub,
select => $sel_sub,
alter => {
biz_class_id => sub {
return 'Subelement' unless $_[1]->get_top_level;
return get_disp_name($_[0]);
},
},
);</code>

In our context, the first return defaults to 'Subelement', which seems to indicate that the *unless* clause is not getting what it needs.

So, what exactly is going on there? We've traced around other files that seem to be involved in rendering and processing the search result lists, but haven't found anything obvious. Have we just done something dumb with our element creation? Were we supposed to make parents or some kind of relationships between element types that the search code expects?
--------------------------------------------------------------------------------

Assigned: Bugs (at bricolage)
State: new
View this ticket online: http://bricolage.lighthouseapp.com/projects/29601/tickets/102-element-type-manager-page-only-finds-subelements-when-using-show-allpaginatepage-navigation-links
Stop being notified of this ticket's changes: http://bricolage.lighthouseapp.com/projects/29601/tickets/102-element-type-manager-page-only-finds-subelements-when-using-show-allpaginatepage-navigation-links/watch
Update your Profile: http://bricolage.lighthouseapp.com/profile
Support: support[at]lighthouseapp.com or http://help.lighthouseapp.com


no-reply at lighthouseapp

Oct 16, 2009, 8:52 AM

Post #8 of 8 (91 views)
Permalink
[Bricolage #102] Element Type Manager page only finds subelements when using show all/paginate/page navigation links. [In reply to]

// Add your reply above here
==================================================
Aaron Fuleki updated this ticket at October 16th, 2009 @ 03:52 PM

I hate lighthouse, and markdown. It ate the whole freaking code snippet, even though I put it in a code tag. Bah!
--------------------------------------------------------------------------------

Assigned: Bugs (at bricolage)
State: new
View this ticket online: http://bricolage.lighthouseapp.com/projects/29601/tickets/102-element-type-manager-page-only-finds-subelements-when-using-show-allpaginatepage-navigation-links
Stop being notified of this ticket's changes: http://bricolage.lighthouseapp.com/projects/29601/tickets/102-element-type-manager-page-only-finds-subelements-when-using-show-allpaginatepage-navigation-links/watch
Update your Profile: http://bricolage.lighthouseapp.com/profile
Support: support[at]lighthouseapp.com or http://help.lighthouseapp.com

Bricolage bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.