Skip to content
This repository has been archived by the owner on Feb 20, 2020. It is now read-only.

Blanked comments #105

Closed
mixmix opened this issue Jan 20, 2016 · 2 comments
Closed

Blanked comments #105

mixmix opened this issue Jan 20, 2016 · 2 comments
Labels

Comments

@mixmix
Copy link
Contributor

mixmix commented Jan 20, 2016

looks like this
selection_225


In the database :

bucket 280 :

b= Bucket.find 280
=> #<Bucket id: 280, created_at: "2015-11-14 13:22:07", updated_at: "2016-01-20 09:03:09", name: "PledgeMe Shares", description: "PledgeMe are crowdfunding for equity. I've heard s...", user_id: 408, target: #<BigDecimal:7fb77cac0248,'0.54E3',9(18)>, group_id: 41, status: "funded", funding_closes_at: nil, funded_at: "2016-01-20 09:03:09", live_at: "2015-11-14 13:22:07">

comments :

b.comments.map { |c| p c }
#<Comment id: 1461, body: "I left my laptop open and Billy topped this up to ...", user_id: 226, bucket_id: 280, created_at: "2016-01-20 09:20:01", updated_at: "2016-01-20 09:20:01">
#<Comment id: 1447, body: nil, user_id: 432, bucket_id: 280, created_at: "2016-01-18 23:35:51", updated_at: "2016-01-18 23:35:51">
#<Comment id: 1446, body: nil, user_id: 432, bucket_id: 280, created_at: "2016-01-18 23:35:41", updated_at: "2016-01-18 23:35:41">
#<Comment id: 1438, body: nil, user_id: 616, bucket_id: 280, created_at: "2016-01-18 19:53:11", updated_at: "2016-01-18 19:53:11">
#<Comment id: 1266, body: nil, user_id: 616, bucket_id: 280, created_at: "2015-12-02 19:29:52", updated_at: "2015-12-02 19:29:52">
@mixmix mixmix added the bug label Jan 20, 2016
@mixmix
Copy link
Contributor Author

mixmix commented Jan 20, 2016

further there are 37 comments in app with no body across many groups :

Comment.where(body: nil).map(&:bucket).
           map {|b|  [b.group.id, b.group.name] }.sort.
           map{ |result| p result }

# group_id,   group name

[30, "Cobudget Testing Group"]
[30, "Cobudget Testing Group"]
[30, "Cobudget Testing Group"]
[33, "Sprout"]
[33, "Sprout"]
[33, "Sprout"]
[33, "Sprout"]
[33, "Sprout"]
[33, "Sprout"]
[33, "Sprout"]
[33, "Sprout"]
[33, "Sprout"]
[37, "Evolutionary Leadership Community"]
[37, "Evolutionary Leadership Community"]
[37, "Evolutionary Leadership Community"]
[37, "Evolutionary Leadership Community"]
[40, "POC21 Community"]
[40, "POC21 Community"]
[40, "POC21 Community"]
[40, "POC21 Community"]
[40, "POC21 Community"]
[40, "POC21 Community"]
[40, "POC21 Community"]
[41, "Enspiral Foundation"]
[41, "Enspiral Foundation"]
[41, "Enspiral Foundation"]
[41, "Enspiral Foundation"]
[41, "Enspiral Foundation"]
[41, "Enspiral Foundation"]
[41, "Enspiral Foundation"]
[41, "Enspiral Foundation"]
[41, "Enspiral Foundation"]
[41, "Enspiral Foundation"]                                                                                                                                                                                       
[41, "Enspiral Foundation"]                                                                                                                                                                                       
[41, "Enspiral Foundation"]                                                                                                                                                                                       
[52, "YIP Co-Budget"]                                                                                                                                                                                             
[52, "YIP Co-Budget"]   
Comment.where(body: nil).map { |c| p c }

#<Comment id: 898, body: nil, user_id: 273, bucket_id: 193, created_at: "2015-09-26 21:17:56", updated_at: "2015-09-26 21:17:56">
#<Comment id: 998, body: nil, user_id: 273, bucket_id: 193, created_at: "2015-09-26 21:18:37", updated_at: "2015-09-26 21:18:37">
#<Comment id: 844, body: nil, user_id: 233, bucket_id: 202, created_at: "2015-09-10 21:16:16", updated_at: "2015-09-10 21:16:16">
#<Comment id: 1302, body: nil, user_id: 344, bucket_id: 297, created_at: "2015-12-07 07:40:11", updated_at: "2015-12-07 07:40:11">
#<Comment id: 1152, body: nil, user_id: 230, bucket_id: 244, created_at: "2015-10-25 14:25:27", updated_at: "2015-10-25 14:25:27">
#<Comment id: 1171, body: nil, user_id: 229, bucket_id: 248, created_at: "2015-11-03 12:44:51", updated_at: "2015-11-03 12:44:51">
#<Comment id: 1203, body: nil, user_id: 282, bucket_id: 237, created_at: "2015-11-16 20:36:16", updated_at: "2015-11-16 20:36:16">
#<Comment id: 1217, body: nil, user_id: 280, bucket_id: 237, created_at: "2015-11-20 07:44:10", updated_at: "2015-11-20 07:44:10">
#<Comment id: 1218, body: nil, user_id: 672, bucket_id: 247, created_at: "2015-11-20 08:54:07", updated_at: "2015-11-20 08:54:07">
#<Comment id: 1236, body: nil, user_id: 257, bucket_id: 287, created_at: "2015-11-23 07:59:15", updated_at: "2015-11-23 07:59:15">
#<Comment id: 1237, body: nil, user_id: 259, bucket_id: 230, created_at: "2015-11-23 08:08:30", updated_at: "2015-11-23 08:08:30">
#<Comment id: 1238, body: nil, user_id: 255, bucket_id: 220, created_at: "2015-11-23 08:24:02", updated_at: "2015-11-23 08:24:02">
#<Comment id: 1392, body: nil, user_id: 365, bucket_id: 314, created_at: "2015-12-30 16:41:37", updated_at: "2015-12-30 16:41:37">
#<Comment id: 1250, body: nil, user_id: 257, bucket_id: 220, created_at: "2015-11-30 08:57:47", updated_at: "2015-11-30 08:57:47">
#<Comment id: 1251, body: nil, user_id: 257, bucket_id: 220, created_at: "2015-11-30 08:57:49", updated_at: "2015-11-30 08:57:49">
#<Comment id: 1252, body: nil, user_id: 257, bucket_id: 288, created_at: "2015-11-30 09:02:34", updated_at: "2015-11-30 09:02:34">
#<Comment id: 1253, body: nil, user_id: 257, bucket_id: 287, created_at: "2015-11-30 09:03:03", updated_at: "2015-11-30 09:03:03">
#<Comment id: 1255, body: nil, user_id: 486, bucket_id: 260, created_at: "2015-12-01 09:10:15", updated_at: "2015-12-01 09:10:15">
#<Comment id: 1257, body: nil, user_id: 486, bucket_id: 260, created_at: "2015-12-01 09:13:12", updated_at: "2015-12-01 09:13:12">
#<Comment id: 1261, body: nil, user_id: 406, bucket_id: 292, created_at: "2015-12-01 20:28:40", updated_at: "2015-12-01 20:28:40">
#<Comment id: 1266, body: nil, user_id: 616, bucket_id: 280, created_at: "2015-12-02 19:29:52", updated_at: "2015-12-02 19:29:52">
#<Comment id: 1309, body: nil, user_id: 550, bucket_id: 268, created_at: "2015-12-07 13:57:46", updated_at: "2015-12-07 13:57:46">
#<Comment id: 1319, body: nil, user_id: 231, bucket_id: 297, created_at: "2015-12-08 08:04:51", updated_at: "2015-12-08 08:04:51">
#<Comment id: 1386, body: nil, user_id: 373, bucket_id: 314, created_at: "2015-12-30 01:57:08", updated_at: "2015-12-30 01:57:08">
#<Comment id: 1397, body: nil, user_id: 699, bucket_id: 315, created_at: "2015-12-31 00:17:03", updated_at: "2015-12-31 00:17:03">
#<Comment id: 1398, body: nil, user_id: 699, bucket_id: 316, created_at: "2015-12-31 00:17:27", updated_at: "2015-12-31 00:17:27">
#<Comment id: 1417, body: nil, user_id: 400, bucket_id: 320, created_at: "2016-01-10 07:40:00", updated_at: "2016-01-10 07:40:00">
#<Comment id: 1420, body: nil, user_id: 255, bucket_id: 220, created_at: "2016-01-11 09:31:31", updated_at: "2016-01-11 09:31:31">
#<Comment id: 1423, body: nil, user_id: 258, bucket_id: 322, created_at: "2016-01-11 16:25:44", updated_at: "2016-01-11 16:25:44">
#<Comment id: 1432, body: nil, user_id: 282, bucket_id: 320, created_at: "2016-01-17 00:25:30", updated_at: "2016-01-17 00:25:30">
#<Comment id: 1438, body: nil, user_id: 616, bucket_id: 280, created_at: "2016-01-18 19:53:11", updated_at: "2016-01-18 19:53:11">
#<Comment id: 1439, body: nil, user_id: 616, bucket_id: 276, created_at: "2016-01-18 19:53:48", updated_at: "2016-01-18 19:53:48">
#<Comment id: 1440, body: nil, user_id: 616, bucket_id: 300, created_at: "2016-01-18 19:54:46", updated_at: "2016-01-18 19:54:46">
#<Comment id: 1441, body: nil, user_id: 434, bucket_id: 281, created_at: "2016-01-18 20:03:31", updated_at: "2016-01-18 20:03:31">
#<Comment id: 1442, body: nil, user_id: 434, bucket_id: 281, created_at: "2016-01-18 20:08:00", updated_at: "2016-01-18 20:08:00">
#<Comment id: 1446, body: nil, user_id: 432, bucket_id: 280, created_at: "2016-01-18 23:35:41", updated_at: "2016-01-18 23:35:41">
#<Comment id: 1447, body: nil, user_id: 432, bucket_id: 280, created_at: "2016-01-18 23:35:51", updated_at: "2016-01-18 23:35:51">

@data-doge
Copy link
Contributor

resolved in #128

closing

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants