-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Fix for Webhook Event GC #12559
Conversation
/werft run 👍 started the job as gitpod-build-at-test-events.2 |
3b906c4
to
a591c0b
Compare
.update() | ||
.set({ deleted: true }) | ||
.where("event.creationTime < :expirationDate", { expirationDate }); |
There was a problem hiding this comment.
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. 🤷🏻
There was a problem hiding this 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!
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