Issue 110 in metacello: Running a visitor over configuration

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue 110 in metacello: Running a visitor over configuration

metacello
Status: Accepted
Owner: [hidden email]
Labels: Type-Feature Priority-Medium

New issue 110 by [hidden email]: Running a visitor over configuration
http://code.google.com/p/metacello/issues/detail?id=110

What we exchanged on the mailing list:


On 02/18/2011 08:10 AM, Alexandre Bergel wrote:
Hi!

Is there a way to run a visitor over a graph of dependent configuration?
If no, would it be difficult to have?

Cheers,
Alexandre

There is no way to run a generic visitor over the graph of dependent  
configurations.

The directives structure is a visitable representation of the configuration  
load graph, but it doesn't have what you are looking for (I think), because  
the directive builder doesn't follow paths for projects whose version is <=  
the scheduled project version.

To put a generic visitor in place, you could piggyback/generalize the  
directives structure builder (fetch pass).

Keep in mind that in traversing the dependent configuration structure there  
are a large number of redundant paths (one of the contributing factors to  
long load times in past versions), so quite a bit of bookkeeping is  
necessary to avoid traversing the same path over and over again ... Having  
been this route multiple times already I would lean towards adding the  
necessary information to the directive structure.

Dale


Reply | Threaded
Open this post in threaded view
|

Re: Issue 110 in metacello: Running a visitor over configuration

metacello
Updates:
        Labels: Milestone-1.0-beta.32

Comment #1 on issue 110 by [hidden email]: Running a visitor over  
configuration
http://code.google.com/p/metacello/issues/detail?id=110

(No comment was entered for this change.)