Skip to content

Conversation

@boojack
Copy link
Contributor

@boojack boojack commented Dec 19, 2025

The rollout list date filter was failing because the WHERE clause tried to reference updated_at which is a computed column alias in the SELECT clause. SQL doesn't allow referencing column aliases in the WHERE clause of the same query.

Fix by using the same COALESCE subquery expression in the filter instead of the column alias.

Also changed frontend to use toISOString() for more reliable RFC3339 date formatting.

Close BYT-8568

🤖 Generated with Claude Code

@boojack boojack requested a review from a team as a code owner December 19, 2025 09:43
@cla-bot cla-bot bot added the cla-signed label Dec 19, 2025
The rollout list date filter was failing because the WHERE clause
tried to reference `updated_at` which is a computed column alias
in the SELECT clause. SQL doesn't allow referencing column aliases
in the WHERE clause of the same query.

Fix by using the same COALESCE subquery expression in the filter
instead of the column alias.

Also changed frontend to use toISOString() for more reliable
RFC3339 date formatting.

Added unit tests for GetListRolloutFilter.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@boojack boojack force-pushed the fix/rollout-date-filter branch from 82e38f2 to b232f60 Compare December 19, 2025 09:47
@d-bytebase d-bytebase merged commit bc60fd7 into main Dec 19, 2025
16 checks passed
@d-bytebase d-bytebase deleted the fix/rollout-date-filter branch December 19, 2025 10:41
@boojack
Copy link
Contributor Author

boojack commented Dec 22, 2025

/backport

github-actions bot pushed a commit that referenced this pull request Dec 22, 2025
The rollout list date filter was failing because the WHERE clause
tried to reference `updated_at` which is a computed column alias
in the SELECT clause. SQL doesn't allow referencing column aliases
in the WHERE clause of the same query.

Fix by using the same COALESCE subquery expression in the filter
instead of the column alias.

Also changed frontend to use toISOString() for more reliable
RFC3339 date formatting.

Added unit tests for GetListRolloutFilter.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.5 <[email protected]>
(cherry picked from commit bc60fd7)
@github-actions
Copy link

Successfully created backport PR for release/3.12.2:

@github-actions
Copy link

Successfully created backport PR for release/3.13.0:

github-actions bot pushed a commit that referenced this pull request Dec 22, 2025
The rollout list date filter was failing because the WHERE clause
tried to reference `updated_at` which is a computed column alias
in the SELECT clause. SQL doesn't allow referencing column aliases
in the WHERE clause of the same query.

Fix by using the same COALESCE subquery expression in the filter
instead of the column alias.

Also changed frontend to use toISOString() for more reliable
RFC3339 date formatting.

Added unit tests for GetListRolloutFilter.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.5 <[email protected]>
(cherry picked from commit bc60fd7)
boojack added a commit that referenced this pull request Dec 22, 2025
The rollout list date filter was failing because the WHERE clause
tried to reference `updated_at` which is a computed column alias
in the SELECT clause. SQL doesn't allow referencing column aliases
in the WHERE clause of the same query.

Fix by using the same COALESCE subquery expression in the filter
instead of the column alias.

Also changed frontend to use toISOString() for more reliable
RFC3339 date formatting.

Added unit tests for GetListRolloutFilter.

🤖 Generated with [Claude Code](https://claude.com/claude-code)


(cherry picked from commit bc60fd7)

Co-authored-by: boojack <[email protected]>
Co-authored-by: Claude Opus 4.5 <[email protected]>
boojack added a commit that referenced this pull request Dec 22, 2025
The rollout list date filter was failing because the WHERE clause
tried to reference `updated_at` which is a computed column alias
in the SELECT clause. SQL doesn't allow referencing column aliases
in the WHERE clause of the same query.

Fix by using the same COALESCE subquery expression in the filter
instead of the column alias.

Also changed frontend to use toISOString() for more reliable
RFC3339 date formatting.

Added unit tests for GetListRolloutFilter.

🤖 Generated with [Claude Code](https://claude.com/claude-code)


(cherry picked from commit bc60fd7)

Co-authored-by: boojack <[email protected]>
Co-authored-by: Claude Opus 4.5 <[email protected]>
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.

4 participants