Major Streamlined::UI Refactoring

Posted by Stu Fri, 27 Jul 2007 22:35:22 GMT

In the course of fixing a bug, I bit off of significant refactoring I have wanted to do for a while. Instead of saying this:

# old way 
class PoetUI < Streamlined::UI
  # declarative settings
end

You can now say this:

# new way
Streamlined.ui_for(Poet) do
  # declarative settings
end

The new syntax is more testable, since it does not rely on singleton methods and inheritance. It also makes it much easier to break the default 1-1 relationship between models and ui instances. The old syntax is still supported, via a bit of method_missing trickery. But I am sure there are some breakages, and I would like to deprecate the old syntax over time. Kick the tires and let me know if you have any problems.

Posted in ,  | no comments | no trackbacks

Streamlined no longer auto-registers AAA filter

Posted by Stu Fri, 20 Jul 2007 03:38:48 GMT

The following lines have been removed from acts_as_streamlined for the upcoming 0.9 release:

if defined? AuthenticatedSystem
  include AuthenticatedSystem
  before_filter :login_required  
end

The team discussed it, and we (mostly) agreed that developer should choose to add AAA’s filter themselves—Streamlined shouldn’t automatically choose it for them.

If you are using Streamlined with AAA and you want to require login, you will need to add the before_filter to your own controllers.

Posted in  | no comments | 1 trackback

Using %% when calling Connection.quote?

Posted by Stu Fri, 20 Jul 2007 02:11:16 GMT

I have committed a fix for Trac 43 as svn 565. It seems that some code paths through Rails Connection.quote use sprintf internally, while others do not. So we now pass %% which either acts as an escape, or doesn’t.

Is passing the unnecessary % on to the database is innocuous? It feels dirty. Is this a bug in ActiveRecord?

Posted in  | no comments | no trackbacks

0.0.7.1 released!

Posted by jgehtland Thu, 08 Feb 2007 19:16:39 GMT

Ok, based on a bug report about create and edit not working, we’ve already updated the plugin. If you already installed, update it, and if updating it doesn’t work, do:

> script/plugin install http://streamlinedframework.org:8079/streamlined/plugins/streamlined --force

Posted in  | 2 comments | no trackbacks

0.0.6.1

Posted by jgehtland Thu, 01 Feb 2007 11:15:00 GMT

We got some great feedback over the last couple of days on the 0.0.5->0.0.6 upgrade path. We’re going to release 0.0.6.1 with those changes sometime over the weekend for folks who don’t want to upgrade to the plugin style in 0.0.7.

Posted in ,  | no comments | no trackbacks

Release 0.0.6 and 0.0.7

Posted by jgehtland Tue, 30 Jan 2007 17:07:47 GMT

Ok, so we’ve been dark here on the blog for a while, but that is all about to change.

First, we are announcing the immediate release of Streamlined 0.0.6. This version has some bug fixes, the AjaxScaffold style, and is Rails 1.2 compliant. There are two gotchas:

  1. We aren’t sure how the upgrade will work for everybody, so we’re asking for community help on that front.
  2. Version 0.0.7 is a different architecture, so you might want to skip straight to it.

On the first topic, anybody who wants to go ahead and upgrade, try it on a copy of your project first and get in touch with us with any difficulties you encounter. We’d love it if somebody tried this out, figured out what gotchas there are (if any) and wrote a rake task to commit back to the project to make those gotchas disappear. Over on the mailing list, we’ve seen a bunch of requests on how to help out; this would be a really great place to start. We’ll be as responsive as we can be to upgrade issues—please use the comments here or the mailing list to let us know if anything goes wrong.

0.0.7

On the second topic, version 0.0.7 will no longer be a generator. Version 0.0.7 is a plugin, which is going to solve a bunch of problems for us (and you, we hope). The first is that upgrading will be even simpler (just run script/plugin update). The second is that all the problems we had with controllers, modules and namespaces will go away because you no longer derive your controllers from StreamlinedController. Instead, you can turn any controller into a Streamlined one using acts_as_streamlined. The third major benefit is cleanliness; we won’t clutter up the app with any extra files or folders upon install. Everything will be localized in the plugin folder.

We’re really excited about 0.0.7. We’re just finishing up the testing on it before we release it. When we do, we’re going to ask for input from the community again, this time to help folks transition from the generator style to the plugin style.

On top of all that, as soon as we release 0.0.7, we’ll also switch from Collaboa to Trac. We’ll update all the links. We’re going to do our best to get all the tickets moved over from Collaboa, but if you have one or more tickets of particular interest to you, you might want to keep an eye on the new site and make sure we got the one you are interested in.

One of the primary reasons to move to Trac is to make it easier for us to accept patches from you folks and start integrating your work into the project. So, help us out as we move forward by telling us if something is keeping you from either using Streamlined or contributing. We want to get it fixed.

Posted in , ,  | Tags ,  | 10 comments | no trackbacks

New syntax for hiding relationships

Posted by jgehtland Sat, 21 Oct 2006 13:37:49 GMT

Just checked into head, will be part of 0.0.6 release this week, if you want to hide a relationship from the views, you can use:

relationship :relationship_name, :off

Synonyms you can use for the :off value:

:off|:none|:false|false

This also fixes Ticket #66.

Posted in ,  | Tags , , ,  | 4 comments | no trackbacks