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

Realtime trophy check #187

Merged
merged 10 commits into from
May 14, 2024
Merged

Realtime trophy check #187

merged 10 commits into from
May 14, 2024

Conversation

kinoppyd
Copy link
Member

@kinoppyd kinoppyd commented May 12, 2024

Add SolidQueue and new ActiveJob "TrophyJob" to check person has right to get new trophy.

Check by Trigger::Condition, new class for Trigger. Condition defines how to manipulate ApplicationRecord subclasses and how to compare values. TrophyJob checks Trigger's condition then fire trigger.

トロフィの獲得をチェックするために、新たにSolidQueueとTrophyJobを追加しました。

トロフィの獲得条件は、Triggerの新しいクラスであるConditionによりチェックされます。Conditionは、ApplicationRecordのサブクラスから値を取得する操作方法と、値の比較方法を定義します。TrophyJobは、Conditionを全てパスしたTriggerを発火させることで、トロフィを付与します。

@kinoppyd kinoppyd merged commit f027772 into main May 14, 2024
2 checks passed
@kinoppyd kinoppyd deleted the features/auto_trophy branch May 14, 2024 05:48
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.

1 participant