Merged
Conversation
Contributor
Author
|
@sugiwe |
Contributor
|
@SuzukiShuntarou |
Contributor
Author
|
@sugiwe
大丈夫です!お忙しいところ恐れ入りますがよろしくお願いいたします! |
sugiwe
approved these changes
Mar 22, 2025
Contributor
sugiwe
left a comment
There was a problem hiding this comment.
@SuzukiShuntarou
お疲れ様です、大変お待たせいたしました🙇♂️
無事動作確認もできました、コードも確認して問題ないかと思いますので、僕からはApproveとさせていただきます!
Contributor
Author
15 tasks
MikotoMakizuru
pushed a commit
that referenced
this pull request
Mar 29, 2025
…tired-from-6months-to-3months-hibernation 休会から自動退会される日数を六ヶ月から三ヶ月に変更する
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue
概要
変更確認方法
chore/change-user-status-to-retired-from-6months-to-3months-hibernationをローカルに取り込む。git fetch origin chore/change-user-status-to-retired-from-6months-to-3months-hibernationgit checkout chore/change-user-status-to-retired-from-6months-to-3months-hibernationrails db:seedを実行して初期データを変更する。foreman start -f Procfile.devでローカル環境を立ち上げる。komagataパスワードtesttestでログインする。(管理者でログイン)rails cを実行しコンソールでemails配列を作成する。自動退会機能の実装時動作確認方法 の記載の通り、ダミーのサブスクリプション番号が登録されており、これらのユーザーを退会させようとすると定期支払い削除処理で以下のようなエラーになるため、コンソール上で削除しておく。

退会処理用のAPIを実行するために以下を実行する。詳細はこちらのPR #6970
echo $TOKENで$TOKENの設定がないことを確認export TOKEN=hogeで$TOKENの設定を追加(ターミナルを終了するとデータがなくなる)echo $TOKENで$TOKENの設定が追加されたことを確認再度ローカル環境を立ち上げて http://localhost:3000/admin/users?target=hibernated にアクセスすると以下の通りになっていることを確認する。(サブスクが登録されていたユーザが削除)
TOKENの設定をしたターミナル)でローカル環境を立ち上げる。別ターミナルで立ち上げると『手順11』で正しくAPIが実施されない。nagai-kyuukai(Nagai Kyu Kai) をクリックしてプロフィールを確認し『休会情報(非公開)』 『区分:休会中(休会から90日目)』が表示されることを確認する。


http://localhost:3000/scheduler/daily/auto_retire?token=hoge へアクセスする。(退会処理用のAPIを実行している。)正しくトークンが設定されていると真っ白のページが表示される。

http://localhost:3000/admin/users?target=hibernated へアクセスし

nagai-kyuukai(Nagai Kyu Kai)が削除されていることを確認するnagai-kyuukai(Nagai Kyu Kai) をクリックしてプロフィールを確認し、退会理由に『(休会後三ヶ月経過したため自動退会)』 と『区分:退会』表示されることを確認する。


http://localhost:3000/letter_opener を開き、管理者・メンターにメール通知が飛んでいること、文言が三ヶ月に変更されていることを確認する。

自動退会したユーザ(

nagai-kyuukai)宛てにメール通知が飛んでいること、文言が三ヶ月に変更されていることを確認する。nagai-kyuukaiユーザのプロフィールページへアクセスし、右下にある『管理者として情報変更』をクリックする『管理者のみ操作』できる項目の『ユーザステータス』が『退会済』であること、『自動退会設定』の文言が『三ヶ月』に変更されていることを確認する

Screenshot
変更前
自動退会されたユーザへ通知されるメールの文言

管理者・メンターへ通知されるメールの文言

自動退会時の退会理由

自動退会設定の文言

変更後
管理者・メンターへ通知されるメールの文言

自動退会されたユーザへ通知されるメールの文言

自動退会時の退会理由

自動退会設定の文言
