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

Migrate default values to old Character/Party fields #134

Merged
merged 4 commits into from
Jul 12, 2023
Merged

Conversation

fmasa
Copy link
Owner

@fmasa fmasa commented Jul 12, 2023

As new fields are introduced to Party and Character objects, the database rules now must support them as optional because of old entries in the database. This PR fills these top-level fields with default values so that I can reduce this complexity.

This also allows us to improve the performance of some queries as we can filter in Firestore instead of the app.

@fmasa fmasa self-assigned this Jul 12, 2023
@fmasa fmasa merged commit 9f62b87 into master Jul 12, 2023
8 checks passed
@fmasa fmasa deleted the db-cleanup branch July 13, 2023 06:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant