-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
optionally make users wait to join bridged rooms #1645
base: develop
Are you sure you want to change the base?
Changes from all commits
bf6d09c
c14c7c9
a6a4308
2304333
3cc0a91
bb9030b
eec46e2
07760d3
7fde752
4fae8fd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,6 +66,10 @@ export interface BridgeConfig { | |
inactiveAfterDays?: number; | ||
}; | ||
banLists?: MatrixBanSyncConfig; | ||
delayBridging?: { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think these need more descriptions about what they do. It might even make sense to have this go under the We should certainly make it obvious that these are seconds. |
||
secondsPlumbed: number, | ||
secondsPortaled: number, | ||
}; | ||
}; | ||
sentry?: { | ||
enabled: boolean; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { PoolClient } from "pg"; | ||
|
||
export async function runSchema(connection: PoolClient) { | ||
await connection.query(` | ||
ALTER TABLE last_seen ADD COLUMN first BIGINT; | ||
ALTER TABLE last_seen RENAME COLUMN ts TO last; | ||
UPDATE last_seen SET first = last; | ||
ALTER TABLE last_seen ALTER COLUMN first SET NOT NULL; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That might explode for all the existing items that don't have a value set. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. see the line above it; we backfill |
||
`); | ||
} |
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'd make this it's own function inside datastore personally, and have the logic for setting first seen time handled within. We might even be able to wrap the postgres stuff into one statement.