-
Notifications
You must be signed in to change notification settings - Fork 14
Generate thumbnail generation tails after a bulk transaction #167
Conversation
} | ||
var row = result.rows[0]; | ||
server.methods.pages.min([ | ||
page.project_id |
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.
I'm curious about this - what's the reason that you want the lowest page id in a project?
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.
Like, is the lowest page id always guaranteed to be the center?
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.
That's what we determined to be "the thumbnail page" for all projects. in most cases, it's the first page made, unless they delete it.
pendingUpdates.push(result); | ||
return pendingUpdates; | ||
}, []) | ||
.map(function(result) { |
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.
I think this should be a forEach
since you're not returning the value here, right?
i am r+ this with several conditions:
|
@cadecairos r+ |
@ashleygwilliams Lets file some issues around those points |
Generate thumbnail generation tails after a bulk transaction
Fixes #165
This PR is missing three lines of test coverage. We need to craft specific test payloads so that these code paths can be executed.
cc/ @ashleygwilliams & @jbuck