-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Syntax error in custom interval SQL clause since 7.2 upgrade
Intervals in the latency filter scopes must not be coded as `interval ?` anymore, but only `?`, despite being passed as strings only. Otherwise, the following error is raised: ActiveRecord::StatementInvalid: PG::SyntaxError: ERROR: syntax error at or near "$1" LINE 1: ...traces".* FROM "traces" WHERE ((stop - start) < interval $1) ^ This commit further extracts the two latency param filters into model scopes, and adds specs for both. Since we have no request/system specs here yet, testing the scopes on the models is easier, and will continue to ensure that these scopes do work.
- Loading branch information
Showing
3 changed files
with
54 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters