Skip to content

[v13] Fix resources being deleted from Firestore on update#30287

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

[v13] Fix resources being deleted from Firestore on update#30287
rosstimothy merged 1 commit intobranch/v13from
bot/backport-30272-branch/v13

Conversation

@rosstimothy
Copy link
Copy Markdown
Contributor

Backport #30272 to branch/v13

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 added this pull request to the merge queue Aug 10, 2023
Merged via the queue into branch/v13 with commit e59af61 Aug 10, 2023
@rosstimothy rosstimothy deleted the bot/backport-30272-branch/v13 branch August 10, 2023 17:38
@fheinecke fheinecke mentioned this pull request Sep 26, 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