Fora / Og

Drop the default og prefix from tables (0 replies) , last by gmosx.myopenid.com, Mon, 13 Aug 2007 08:24:48 GMT
gmosx.myope: Dear devs, I am thinking about droping the 'og' prefix from model tables by default (the setting will stay). From what I see you can have safe table names by using backtick (`) in mysql and double quotes (") in Postgresql. What do you thinkg? -g.
Changes in Taggable (1 replies) , last by jonathan-buch.de, Mon, 09 Apr 2007 06:42:10 GMT
jonathan-bu: no problem with that here. « gmosx.myope: Dear devs, I am going to change the behaviour of Taggable. The new separator will be ',' or ';' and it will accept tags with spaces. If anyone sees any problem, let me know. -g.
Initial support for general primary keys and (0 replies) , last by gmosx.myopenid.com, Mon, 26 Mar 2007 12:18:48 GMT
gmosx.myope: I just pushed some patches to the repo with initial support for general primary keys and UUID keys in particular. Have a look at og/model/uuid.rb for some details. I have made a small change to the Postgresql adapter (where the pk for a new row is calculate..
Optimized UUID primary key. (0 replies) , last by gmosx.myopenid.com, Sun, 25 Mar 2007 21:39:42 GMT
gmosx.myope: Dear devs, I am workin on an UUID mixin for Og. It works at the moment and I am storing the UUID as a CHAR(22) using the 22 byte encoding method from the usesguid AR plugin. I would like to optimize things a bit. I would like to make uuids of objects crea..
Validation and silent failures (3 replies) , last by gmosx.myopenid.com, Sun, 25 Mar 2007 21:34:18 GMT
gmosx.myope: Ok, I will change it more or less like you suggest. Though I think there must be some other problem with that aproach. Will have to look at this. -g. « judson.myop: Here's an annoying bug: You create a new model object. You obj.save. Later, you try to pull the object out of the store and get nil. Why? Because you put a validate_unique, and your new object was made invalid as a result. This is a bug in your code. ..
Og proposals (2 replies) , last by gmosx.myopenid.com, Thu, 22 Mar 2007 07:55:19 GMT
gmosx.myope:
And I think there might be the possibility of table name collision
That's why I included the prefix initially. But perhapswe could skip the prefix and specially handle the collision cases. -g. « gmosx.myope: Dear devs, I am thinking to make two backwards incompatible changes to Og: - Use object.id instead of object.oid (like the AR guys do) - Skip the table prefix 'og' by default, ie the class User will be serialized to the user table. What is your opinion o..
Wishlist (3 replies) , last by judson.myopenid.com, Wed, 21 Mar 2007 19:35:10 GMT
judson.myop: I agree that the implementation would be non-trivial. I don't necessarily agree that there wouldn't be much benefit. As it stands, valid_unique has the possibility of a race condition. Moreover, though, I tend to be of a philosophy that says "make the .. « judson.myop: Validations: First, and obviou..
Og patches (6 replies) , last by gmosx.myopenid.com, Tue, 20 Mar 2007 07:43:43 GMT
gmosx.myope: Ok, will have a look at this. -g. « gmosx.myope: Jud Antoniolo, please post your non applied patches to this forum. I would like to integrate them. -g.
Cleanup Og - Refactoring (11 replies) , last by gmosx.myopenid.com, Mon, 19 Mar 2007 18:45:53 GMT
gmosx.myope:
(incidentally: yes, I can post without captures, and the drag the yellow bar thing is awesome.)
;-) more awesome features in the pipeling, stay tuned. -g. PS: incidentally, I will try to devote more time to specs. « gmosx.myope: Dear devs, over the next days, I will work on Og (at last I hear you say ;-)). It is a nice time to remind of all the aspects of Og that need some lovin. My first efforts will be to remove as much as possible the evaluated code and cleanup the adapter inte..
Using UUID as primary keys (9 replies) , last by gmosx.myopenid.com, Mon, 19 Mar 2007 13:13:37 GMT
gmosx.myope: Hello, the article you quote is not that negative about UUIDS.
However, seeing what George said about single class Comment for articles and whatever, appears to be interesting.
at last, someone finds this interesting idea erhm..... « gmosx.myope: I would be interested to know your opinion on using UUID's as primary keys in Og. I would like to hear pros and cons. thanks, -g.
  Subscribe to Og