forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
80707: server: correctly redact sql constants in ListSessions api r=matthewtodd a=xinhaoz Previously, there was a bug in the redaction of SQL constants for `VIEWACTIVITYREDACTED` users in the `ListSessions` api. Firstly, the range loop used to set the sql query field was manipulating the copy of the query object provided by the range. Secondly, the previous logic when redacting set the `Sql` and `LastActiveQuery` fields to empty strings. Since these fields are read in other parts of the codebase (e.g. to fill out columns of virtual tables), we should just set these fields to equal `SqlNoConstants` and `LastActiveQueryNoConstants` respectively. Release note (bug fix): constants in sql query fields are correctly removed for VIEWACTIVITYREDACTED users 81580: ci: update how the `tc_release_branch` check is performed r=rail a=rickystewart How TeamCity sets the `TC_BUILD_BRANCH` environment variable is a bit unpredictable. While we expect it to be a string like `master`, at times (see cockroachdb#81546) this variable can be set to a ref like `refs/heads/master`. This inconsistency means that we are sometimes not reporting issues to GitHub as we should be. To be resilient to this I make sure we strip off the `refs/heads/` prefix when performing the `tc_release_branch` check. Release note: None Co-authored-by: Xin Hao Zhang <[email protected]> Co-authored-by: Ricky Stewart <[email protected]>
- Loading branch information
Showing
5 changed files
with
30 additions
and
12 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
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