Skip to content

Commit

Permalink
Filter #1 comments in the migration
Browse files Browse the repository at this point in the history
Fixes #14
  • Loading branch information
danez committed Aug 31, 2016
1 parent 984afec commit 26f38b7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sqlite/eachIssue.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ FROM maniphest_transaction AS mt
INNER JOIN maniphest_transaction_comment AS mtc ON mt.commentPHID = mtc.phid
WHERE mt.transactionType = "core:comment" AND
mt.objectPHID = ? AND
mtc.isDeleted = 0
mtc.isDeleted = 0 AND
trim(mtc.content) != '+1' AND
trim(mtc.content) != '👍' -- thumb up
GROUP BY mtc.transactionPHID
-- select only the latest version of the comment by sorting
ORDER BY mtc.id, mtc.commentVersion
Expand Down

0 comments on commit 26f38b7

Please sign in to comment.