Skip to content

fix: query expires_at in GetExpiredDeployments - #5

Closed
CorentinFelten wants to merge 1 commit into
masterfrom
fix/expired-deployments-query
Closed

CorentinFelten wants to merge 1 commit into
masterfrom
fix/expired-deployments-query

Conversation

@CorentinFelten

Copy link
Copy Markdown
Owner

Fork-internal PR, only to run Galvanize's CI on this branch. Not to be merged into the fork.

GetExpiredDeployments filtered on expired_at, a column that does not
exist (the field is ExpiresAt, stored as expires_at), so any call
failed with "no such column". Nothing calls it yet, which is why it
went unnoticed.

The expiry scheduler ran its own, correct, copy of the query. Both now
use models.GetDeploymentsExpiringBy(db, t): running team deployments
expiring at t or earlier, soonest first. GetExpiredDeployments is that
query at time.Now(), and so, like the scheduler, it now leaves out
unique deployments, which have no team and never expire.
@CorentinFelten

Copy link
Copy Markdown
Owner Author

Superseded by #6, which combines all five fixes into one branch for the upstream PR.

@CorentinFelten
CorentinFelten deleted the fix/expired-deployments-query branch October 1, 2026 23:16
CorentinFelten added a commit that referenced this pull request Oct 2, 2026
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.

1 participant