Skip to content

Fix for Webhook Event GC #12559

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

Merged
merged 1 commit into from
Sep 1, 2022
Merged

Fix for Webhook Event GC #12559

merged 1 commit into from
Sep 1, 2022

Conversation

AlexTugarev
Copy link
Member

@AlexTugarev AlexTugarev commented Aug 31, 2022

Fixing DB query with test. This is currently broken on main/prod :-(

Aftermath of #12472 (comment)

how to test

run db-test or check the test logs of the werft job and find the ✔️ passing test in there

[components/gitpod-db:dbtest]   WebhookEventDBSpec
...
[components/gitpod-db:dbtest]     ✓ testDeleteOldEvents
NONE
  • /werft with-preview

@AlexTugarev
Copy link
Member Author

AlexTugarev commented Aug 31, 2022

/werft run

👍 started the job as gitpod-build-at-test-events.2
(with .werft/ from main)

@AlexTugarev AlexTugarev changed the title WIP testing WebhookEventDBImpl.deleteOldEvents Fix for Webhook Event GC Aug 31, 2022
@AlexTugarev AlexTugarev requested a review from geropl August 31, 2022 18:40
.update()
.set({ deleted: true })
.where("event.creationTime < :expirationDate", { expirationDate });
Copy link
Member Author

Choose a reason for hiding this comment

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

for some reasons, aliasing doesn't work with typeorm here. 🤷🏻

@AlexTugarev AlexTugarev marked this pull request as ready for review September 1, 2022 05:16
@AlexTugarev AlexTugarev requested a review from a team September 1, 2022 05:16
@github-actions github-actions bot added the team: webapp Issue belongs to the WebApp team label Sep 1, 2022
Copy link
Member

@svenefftinge svenefftinge left a comment

Choose a reason for hiding this comment

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

thanks for adding a test!

@roboquat roboquat merged commit 8f59fb6 into main Sep 1, 2022
@roboquat roboquat deleted the at/test-events branch September 1, 2022 05:30
@roboquat roboquat added deployed: webapp Meta team change is running in production deployed Change is completely running in production labels Sep 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployed: webapp Meta team change is running in production deployed Change is completely running in production release-note size/S team: webapp Issue belongs to the WebApp team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants