We currently grant full collections via gift crates, which causes a client hang. This replaces the gift crate process with a helper method called from the user creation flow. Tested locally and was able to get a full collection with no client hang.
App changes (app/, etc.):
Removed the old achievement and gift crate for the full collection
Moved some card attributes (e.g. unlockable) behind the allCardsAvailable config flag
Unlocks all factions via the allCardsAvailable config flag
Server changes (config/, server/, worker/, etc.):
Changes the default value of allCardsAvailable to true
Adds a grantFullCollection() helper to server/lib/collection.coffee
Calls grantFullCollection() from the createNewUser() flow
Testing
Have you have tested your changes in the following scenarios?
Feel free to check off scenarios which don't apply.
[x] Starting backend services locally with docker compose up succeeds.
[x] I am able to create a new user and log in locally.
[x] I am able to complete a practice game locally.
[x] I am able to complete a purchase of Orbs, etc.
Summary
We currently grant full collections via gift crates, which causes a client hang. This replaces the gift crate process with a helper method called from the user creation flow. Tested locally and was able to get a full collection with no client hang.
App changes (
app/
, etc.):allCardsAvailable
config flagallCardsAvailable
config flagServer changes (
config/
,server/
,worker/
, etc.):allCardsAvailable
totrue
grantFullCollection()
helper toserver/lib/collection.coffee
grantFullCollection()
from thecreateNewUser()
flowTesting
Have you have tested your changes in the following scenarios? Feel free to check off scenarios which don't apply.
docker compose up
succeeds.