> About your refactorings, will this make it easy to expose to the user a
> way to change the drilldown paths?
>
> For example, instead of year --> quarter --> months, be able to run year
> --> months

Sort of.  The first solution would be to create a new hierarchy in
your date dimension that drops the quarter from the hierarchy.  Here's
a short example where the partial_date hierarchy that only exposes a
year and month.

class MyDateDimension < ActiveWarehouse::Dimension
  define_hierarchy :full_date, [:year, :quarter, :month, :date]
  define_hierarchy :partial_date, [:year, :month]
end

However, if you need to still have all levels of the hierarchy but
want the breadcrumb to behave differently then you can make your own
render code that mimics the breadcrumb method with your custom logic.
We did a lot of our own render methods while we refactored the view
code until we settled on a final design.  Matter of fact, we still
have some custom render methods that we haven't finalized but will
eventually get those back into the plugin.

Hope that helps.

Cheers,
Marty
_______________________________________________
Activewarehouse-discuss mailing list
Activewarehouse-discuss@rubyforge.org
http://rubyforge.org/mailman/listinfo/activewarehouse-discuss

Reply via email to