Descendant karma attribute no longer disappears off python objects. #94
Descendant karma attribute no longer disappears off python objects. #94
Conversation
sa.Integer, | ||
default = 0, | ||
nullable = False)) | ||
if name not in ('comment', 'link'): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the comments for the postmovement pull request, you mentioned that deduplicating and using append_column
"didn't work". I've been poking around the sqlalchemy source and it appears that all of the columns being passed to the constructor are set up in the same way as the column added with append_column
. (See _init_items
and append_column
in lib/sqlalchemy/schema.py
). Can you investigate further, find out what exactly is breaking when you revert to the old version (using append_column
). If you have trouble, get back to me with a test case of something that breaks and I'll take a look too.
Requested changes implemented. |
sa.DateTime(timezone = True), | ||
default = sa.func.now(), | ||
nullable = False)) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How did these shift all shift four spaces in? I can't see any signs of a tab/space mixup or anything, but it'd be good to have them lined up neatly. Besides, it'll keep the diff of the branch as a whole tidy,
Good to hear from you again. I've looked at the changes on this PR - just a -- Jack On Mon, Mar 24, 2014 at 2:58 PM, Lucas Sloan notifications@github.comwrote:
|
How would I go about testing this change? What behaviours should I be expecting? |
More or less, the changes here are invisible - that's why I didn't notice On Mon, Mar 24, 2014 at 3:52 PM, jack-trikeapps notifications@github.comwrote:
"And someday when the descendants of humanity have spread from star to -Eliezer Yudkowsky "Trust me" means "I love you" http://project-apollo.net/mos/mos114.html "This isn't even my final form!" -Tim Hausler |
Descendant karma attribute no longer disappears off python objects.
I've merged this and will fix the whitespace myself. Hopefully I'll have time to do a full manual test on a staging server later today. |
Currently when comments age out of cache, their descendant karma disappears. Now when they're rebuilt from the database, it gets set.