Skip to content

[v12] Fix resources being deleted from Firestore on update#30288

Merged
rosstimothy merged 1 commit intobranch/v12from
bot/backport-30272-branch/v12
Aug 10, 2023
Merged

[v12] Fix resources being deleted from Firestore on update#30288
rosstimothy merged 1 commit intobranch/v12from
bot/backport-30272-branch/v12

Conversation

@rosstimothy
Copy link
Copy Markdown
Contributor

Backport #30272 to branch/v12

The change to use `Update` in #28473 caused a 0 value to be written
to the expires field of the document. When using `Create` or `Set`
a zero expiry value would result in an empty expires field for that
document. Now that the expires column was containing a 0 value the
purgeExpiredDocuments loop was detecting the document as needing
to be removed. To prevent removing resources that have no expiry
the purge loop now explicitly ignores any resources that have a 0
expiry value.

Fixes #30236
@public-teleport-github-review-bot public-teleport-github-review-bot Bot removed the request for review from smallinsky August 10, 2023 17:23
@rosstimothy rosstimothy enabled auto-merge August 10, 2023 17:23
@rosstimothy rosstimothy added this pull request to the merge queue Aug 10, 2023
Merged via the queue into branch/v12 with commit 385ed00 Aug 10, 2023
@rosstimothy rosstimothy deleted the bot/backport-30272-branch/v12 branch August 10, 2023 17:39
@camscale camscale mentioned this pull request Aug 22, 2023
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.

3 participants