PR

【8/11】LTV集計 #1033

wada opened this at 2021-08-10T15:50:41; closed

Description

opened by wada at 2021-08-10T15:50:41; updated 2025-03-31T10:19:17

概要

管理画面用データcpanel_monthly_user_ltvの集計
cronにtool_monthly_user_ltv.shを設定し、tool_monthly_user_ltv_cron.incを実行

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

以下のテーブルに本番データを挿入

user_info
cpanel_payment_log

データ挿入後に実行

ENVIRONMENT=develop PF=yamada HTTP_HOST=127.0.0.1 IS_DOCKER=true lib/exec/tool_monthly_user_ltv.sh
#or
cd lib/exec
ENVIRONMENT=develop PF=yamada HTTP_HOST=127.0.0.1 IS_DOCKER=true php tool_monthly_user_ltv_cron.inc

tool_monthly_user_ltv.incは使用しないので、無視して良いです。

管理画面

cpanelブランチで確認すると以下のような表示になります。
<img src="https://git.dev.d-es.co.jp/gitbucket/jolly/jr-web/_attached/1628578326428i8Sfu7f012" width="400">

<img src="https://git.dev.d-es.co.jp/gitbucket/jolly/jr-web/_attached/1628578355439Tswf0S7XWI" width="400">

TODO

マージ後にcron設定&実行

Comment

#12847 by wada at 2021-08-10T15:54:34; updated 2021-08-10T15:54:34

@iwamoto @kouho
レビューお願いします。
未集計データの対応です。

Comment

#12857 by iwamoto at 2021-08-10T17:36:27; updated 2021-08-10T17:36:27

@wada
確認しました。
こちらで問題ないと思います。

wada assign at 2021-08-10T18:45:39: Not assigned:wada

Comment

#12870 by kouho at 2021-08-10T19:06:50; updated 2021-08-10T19:06:50

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

kouho add_label at 2021-08-10T19:06:55: 皇甫 LGTM
iwamoto add_label at 2021-08-10T19:13:08: 岩本 LGTM
wada merge at 2021-08-11T10:27:31: 【8/11】LTV集計
wada close at 2021-08-11T10:27:31: Close

Commit range

basea45bdeb85ba536eca7a53ecbb655d71262fa8949
headbdec4038e84b887ac35f2d205c8700e85513fdc7
base branchjolly/jr-web:develop
head branchjolly/jr-web:monthly_ltv

View commits

Commit details are loaded from Git when a dynamic archive server is running, or can be embedded with --include-commits.
Files changed3 filesView patch
statusfile
modifiedlib/exec/tool_monthly_user_ltv.inc
modifiedlib/exec/tool_monthly_user_ltv.sh
modifiedlib/exec/tool_monthly_user_ltv_cron.inc
Patch body is stored as a separate file to keep this page lightweight.