google / google/ground-platform

[Feature] Write a scheduled job to clean up unreferenced lois and submissions.

Open
#1,532 1 comment 0 reactions 1 assignee Claimed by @rfontanarosa View on GitHub
type: fr web
Dominant language
TypeScript
Stars
249
Forks
112
Avg merge
10h 7m
Merged PRs (30d)
4

Description

We made updating survey details & adding jobs & deleting jobs in one transaction in #1396. However, firestore has the [limitation](https://firebase.google.com/docs/firestore/manage-data/transactions#security_rules_limits) of accessing 20 docs in one transaction. So we had to call the deletion of associated LOIs and submissions asynchronously leaving chances of having unreferenced LOIs and submissions.

This ticket is about writing a scheduled job to clean up these unreferenced lois and submissions.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.