This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Inline SQL queries using boolean parameters #15525
Inline SQL queries using boolean parameters #15525
Changes from 8 commits
5cfdae4
cd4359a
3857478
2ea3b58
44aedd8
7d60307
36c4012
e5c5d35
07e90d4
c29c05f
be3fbc1
8737a24
24f4de0
7eb4f91
e5a668d
aa97aa2
f733e25
7ae7fef
b33a4d2
152e015
97f337b
53d04b9
19e15c3
32d8dd4
99e265b
e871524
1c5a66e
3e7c901
34e98ec
66b8ab0
634b269
8f7029d
ea1fbfc
cafd08e
aaa1ad2
c4340ff
37d3013
b9e505a
4506e7f
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
I think there are a lot more of these instances. If I just search for
outlier = ?
, I see 5 things and only 3 places changed in this PR.We probably need to go through any
boolean
column insynapse/storage/schema/main/full_schemas/72/full.sql.postgres
and do the same search across the codebase.And figure out a plan for how you want to tackle and split things if there are too many.
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.
I think that would be a good way to check all the inline queries in the codebase.
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.
(Note that the schema dump is a little out of date; there will likely be new boolean columns added since then.)
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.
I think that the
synapse_port_db
script might have the most up-to-date list of boolean columns to check:synapse/synapse/_scripts/synapse_port_db.py
Lines 107 to 129 in 7c9b917