Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2020年8月分Facebookイベント集計 #948

Merged
merged 1 commit into from
Sep 6, 2020

Conversation

Yuppymam
Copy link
Contributor

@Yuppymam Yuppymam commented Sep 5, 2020

やったこと

  • 2020年8月分のFacebookイベントを集計しました📊
  • rails statistics:aggregation[202008,202008,facebook,]異常なし ✅
  • 追加されたのをコンソールで確認 ✅
# 開催数
EventHistory.where(evented_at: (DateTime.now.prev_month.beginning_of_month..DateTime.now.prev_month.end_of_month)).for(:facebook).count
   (8.9ms)  SELECT COUNT(*) FROM "event_histories" WHERE "event_histories"."evented_at" BETWEEN $1 AND $2 AND "event_histories"."service_name" = $3  [["evented_at", "2020-07-31 15:00:00"], ["evented_at", "2020-08-31 14:59:59.999999"], ["service_name", "facebook"]]
=> 7

# 参加者数
EventHistory.where(evented_at: (DateTime.now.prev_month.beginning_of_month..DateTime.now.prev_month.end_of_month)).for(:facebook).sum(:participants) 
  (0.2ms)  SELECT SUM("event_histories"."participants") FROM "event_histories" WHERE "event_histories"."evented_at" BETWEEN $1 AND $2 AND "event_histories"."service_name" = $3  [["evented_at", "2020-07-31 15:00:00"], ["evented_at", "2020-08-31 14:59:59.999999"], ["service_name", "facebook"]]
=> 13

@yasulab yasulab temporarily deployed to coderdojo-pi-add-2020-0-xsjkey September 5, 2020 10:50 Inactive
@Yuppymam Yuppymam force-pushed the Add_2020_08_facebook_event branch from c0cf152 to 06ebf25 Compare September 5, 2020 10:52
@yasulab yasulab temporarily deployed to coderdojo-pi-add-2020-0-xsjkey September 5, 2020 10:52 Inactive
@yasulab
Copy link
Member

yasulab commented Sep 6, 2020

良さそうですね!対応ありがとうございます!😻🆒✨

下記 Issue にもそのうち対応したいなと考えているので、もし Kashiwa 関連のイベントを集計していましたら、下記実装後、データのすり合わせをさせていただけると助かります (>人< )💖

CoderDojo Kashiwa にあるイベント情報を、近日開催の道場で表示させたい #929

@yasulab yasulab merged commit b279bc8 into master Sep 6, 2020
@yasulab yasulab deleted the Add_2020_08_facebook_event branch September 6, 2020 00:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants