feat: delete last-seen BQ rows as part of record purge by chenba · Pull Request #2672 · mozilla-services/syncstorage-rs · GitHub
Skip to content

feat: delete last-seen BQ rows as part of record purge - #2672

Merged
chenba merged 5 commits into
masterfrom
feat/purge-last-seen-on-acct-del-stor-691
Oct 21, 2026
Merged

chenba merged 5 commits into
masterfrom
feat/purge-last-seen-on-acct-del-stor-691

Conversation

@chenba

@chenba chenba commented Oct 19, 2026

Copy link
Copy Markdown
Collaborator

Because:

  • we should delete an account's last-seen records in BQ when the account is deleted

This commit:

  • deletes the account's last-seen records from the staging and final BQ tables as part of the record purge job
  • increases the default grace period slightly to account for upload delays of BQ last-seen rows

Issue(s)

Closes STOR-691

@chenba
chenba force-pushed the feat/purge-last-seen-on-acct-del-stor-691 branch from 33a73a2 to 62b9bd3 Compare October 19, 2026 16:28
Because:
 - we should delete an account's last-seen records in BQ when the
   account is deleted

This commit:
 - deletes the account's last-seen records from the staging and final BQ
   tables as part of the record purge job
 - increases the default grace period slightly to account for upload
   delays of BQ last-seen rows
@chenba
chenba force-pushed the feat/purge-last-seen-on-acct-del-stor-691 branch from 62b9bd3 to cdb6b12 Compare October 19, 2026 17:19
Comment thread tools/tokenserver/purge_old_records.py Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO I really don't see this and the test_last_seen_job_error_raises test (along with the associated 2 classes) as worth having

I'm leaning the same direction for test_last_seen_respects_max_records as well

chenba and others added 3 commits October 21, 2026 13:00
@chenba
chenba merged commit f2154b8 into master Oct 21, 2026
32 checks passed
@chenba
chenba deleted the feat/purge-last-seen-on-acct-del-stor-691 branch October 21, 2026 23:17
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.

2 participants