PR

【1/20】課金者層集計スクリプト修正 #1468

wada opened this at 2022-01-14T16:42:17; closed

Description

opened by wada at 2022-01-14T16:42:17; updated 2022-01-31T10:17:03

概要

管理画面、課金者層集計用データの集計スクリプトを修正
日、月、四半期、年の4期間ごとに集計

tool_系が過去データ集計
cpanel_系が毎日の集計

本番反映後、cronに設定して毎日実行

テスト方法、確認した内容

dbごとに以下のデータが必要です。

  • jrye

cpanel_payment_log
user_info
dau_login
cpanel_tutorial_last_log

  • jrye_log

dau_login

tool_系実行時は、ソース内の$start_*変数を調整してください。

TODO

管理画面側はデータ集計完了後対応

Comment

#16642 by wada at 2022-01-14T16:43:13; updated 2022-01-14T16:43:13

@iwamoto @kouho
レビューお願いします。

wada change_title at 2022-01-17T16:52:14: 【1/18】課金者層集計スクリプト修正 【1/20】課金者層集計スクリプト修正

Comment

#16678 by wada at 2022-01-17T16:52:31; updated 2022-01-17T16:52:31

そこまで急いでないので優先度下げておきます。

Comment

#16787 by iwamoto at 2022-01-21T14:42:50; updated 2022-01-21T14:42:50

@wada
確認しました。
恐らく、問題ないと思います。

動作には影響のないところですが
tool_repeat_monthly_active_user.phptool_repeat_yearly_active_user.php
echo 'INSERT cpanel_repeat_~~ start'."\n"; にて表示されるテーブル名が間違っているようでした。

kouho add_label at 2022-01-21T15:05:31: 皇甫 LGTM

Comment

#16789 by kouho at 2022-01-21T15:05:42; updated 2022-01-21T15:05:42

@wada
確認しました。問題ないと思います。

Comment

#16791 by wada at 2022-01-21T15:58:29; updated 2022-01-21T15:58:29

@iwamoto
出力テキストの修正対応しました。

Comment

#16795 by iwamoto at 2022-01-21T19:11:04; updated 2022-01-21T19:11:04

@wada
確認しました。問題ないと思います。

iwamoto add_label at 2022-01-21T19:11:08: 岩本 LGTM
wada merge at 2022-01-27T16:51:12: 【1/20】課金者層集計スクリプト修正
wada close at 2022-01-27T16:51:12: Close
wada refer at 2022-01-31T10:17:03: 1518:【1/31】リリース

Commit range

base9723282d18df0be0ac88b4cd21791b58602712ba
head4e17a2ed97c6719182e774cdb9ecad2e2b8286a0
base branchjolly/jr-web:develop
head branchjolly/jr-web:fix_repeat_active

View commits

Commit details are loaded from Git when a dynamic archive server is running, or can be embedded with --include-commits.
Files changed9 filesView patch
statusfile
modifiedlib/exec/cpanel_repeat_daily_active_user.php
modifiedlib/exec/cpanel_repeat_data.sh
modifiedlib/exec/cpanel_repeat_monthly_active_user.php
modifiedlib/exec/cpanel_repeat_quarterly_active_user.php
modifiedlib/exec/cpanel_repeat_yearly_active_user.php
modifiedlib/exec/tool_repeat_daily_active_user.php
modifiedlib/exec/tool_repeat_monthly_active_user.php
modifiedlib/exec/tool_repeat_quarterly_active_user.php
modifiedlib/exec/tool_repeat_yearly_active_user.php
Patch body is stored as a separate file to keep this page lightweight.