Commit Graph
2567 Commits
Author SHA1 Message Date
Antonio Scandurra 2a63987d55 Get basic calls working again with sea-orm 2022-12-01 16:17:24 +01:00
Antonio Scandurra 5252f2f581 Implement Database::create_room 2022-12-01 15:22:20 +01:00
Antonio Scandurra 93c4dbeec2 Go back to a compiling state, panicking on unimplemented db methods 2022-12-01 15:13:57 +01:00
Antonio Scandurra 40f2e5730b Start using the new sea-orm backed database 2022-12-01 14:41:59 +01:00
Antonio Scandurra 357de21bdb Implement signups using sea-orm 2022-12-01 11:58:07 +01:00
Antonio Scandurra 456a3dab00 Implement invite codes using sea-orm 2022-12-01 11:10:51 +01:00
Antonio Scandurra db82b434c3 Implement db2::Database::fuzzy_search_users 2022-12-01 10:09:53 +01:00
Max Brunsfeld 03a109cc57 collab 0.2.5 2022-11-30 14:10:10 -08:00
Antonio Scandurra 5baeeb1c0d Implement db2::Database::remove_contact 2022-11-30 17:39:17 +01:00
Antonio ScandurraandNathan Sobo 2df67f29e3 Implement contacts using sea-orm
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2022-11-30 17:36:25 +01:00
Antonio Scandurra e00428b0c6 Implement db2::Database::get_user_metrics_id 2022-11-30 15:06:04 +01:00
Antonio Scandurra e188730546 Implement access tokens using sea-orm 2022-11-30 14:47:03 +01:00
Antonio Scandurra ff9624e7e6 Implement db2::Database::get_user_by_github_account 2022-11-30 14:18:46 +01:00
Antonio Scandurra 9d0b5851a3 Make some db tests pass against the new sea-orm implementation 2022-11-30 12:13:16 +01:00
Joseph T. Lyons 3d71b3760d Merge pull request #1913 from zed-industries/Add-column-to-signups-for-added-to-mailing-list
Add "added_to_mailing_list" column on signups table
2022-11-29 19:30:11 -05:00
e7312c80bf WIP: move to a non-generic test database struct
Co-Authored-By: Mikayla Maki <mikayla@zed.dev>
Co-Authored-By: Julia Risley <julia@zed.dev>
2022-11-29 19:20:11 +01:00
Joseph Lyons d48d244af4 Order invites by creation time 2022-11-29 12:57:51 -05:00
Antonio Scandurra fdbb4bb974 Start on a new db2 module that uses SeaORM 2022-11-29 16:49:04 +01:00
Antonio Scandurra 0ad040f4d2 Start moving towards using sea-query to construct queries 2022-11-29 13:55:08 +01:00
Antonio Scandurra c6227a0fb2 Increase probability of creating new files in randomized test 2022-11-29 11:02:14 +01:00
Joseph Lyons ccca00344b Add "added_to_mailing_list" column on signups table 2022-11-29 02:13:13 -05:00
Antonio Scandurra 0791ac42e9 💄 2022-11-28 17:44:18 +01:00
Antonio Scandurra 68a40f777c Introduce per-room lock acquired before committing a transaction 2022-11-28 17:00:47 +01:00
Antonio Scandurra 810bb99fa1 Fix integration test incorrectly assuming a certain ordering 2022-11-28 13:57:15 +01:00
Antonio Scandurra 7b4e4474ee Check the correct serialization failure code when retrying transaction 2022-11-28 13:56:03 +01:00
Antonio Scandurra 7b26fceb7b Remove version from Room
We won't need it once we add the per-room lock.
2022-11-18 20:18:48 +01:00
Antonio Scandurra fde148d365 Don't take an Arc<Server> in message handlers 2022-11-18 11:45:42 +01:00
Max Brunsfeld 8b38bcb8b6 collab 0.2.4 2022-11-17 11:44:29 -08:00
Antonio Scandurra b3e7eea7e5 Rename Store to ConnectionPool 2022-11-17 19:03:59 +01:00
Antonio Scandurra 0bb9fe84c6 Remove obsolete code from Store 2022-11-17 18:46:39 +01:00
Antonio ScandurraandNathan Sobo b1e7672b2b WIP: Introduce a db field to Session
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2022-11-17 17:30:26 +01:00
Antonio ScandurraandNathan Sobo f0dd39a3d2 Introduce a new Session struct to server message handlers
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2022-11-17 17:11:06 +01:00
Antonio Scandurra 1e3cb72b20 Revert "Don't replace newer diagnostics with older ones"
This reverts commit b55a13831a.
2022-11-17 16:57:40 +01:00
Antonio Scandurra 915b7280d4 Revert "Wait for previous UpdateFollowers message ack before sending new ones"
This reverts commit ceb40613bc.
2022-11-17 16:57:32 +01:00
Antonio Scandurra 9e4ce5afa8 Use int8 for scan_id and inode in Postgres 2022-11-17 16:56:43 +01:00
Antonio Scandurra 6cf8013f9e 🎨 2022-11-17 15:35:18 +01:00
Antonio Scandurra be76c9430e Fix seed script 2022-11-17 15:34:35 +01:00
Antonio Scandurra 3388db42e9 Fix errors in Postgres schema 2022-11-17 15:34:12 +01:00
Antonio Scandurra ceb40613bc Wait for previous UpdateFollowers message ack before sending new ones 2022-11-17 14:12:00 +01:00
Antonio Scandurra d3e2d26050 Remove unwrap from Server::share_project 2022-11-17 13:33:26 +01:00
Antonio Scandurra b55a13831a Don't replace newer diagnostics with older ones 2022-11-17 12:21:51 +01:00
Antonio Scandurra 6eab8578f0 Use Db::get_guest_connection_ids in other db methods 2022-11-17 11:38:00 +01:00
Nathan Sobo 0b4b99140b Fix column name in query 2022-11-16 19:40:53 -07:00
Nathan Sobo 715cb4527a Move unshare_project to db module 2022-11-16 18:28:45 -07:00
Nathan Sobo 42c0288c9f Move leave_project from Store to db module 2022-11-16 17:45:47 -07:00
Nathan Sobo fcc6b162d9 Fix typo in query 2022-11-16 16:52:05 -07:00
Joseph Lyons b299a8f7c9 Move comment to correct location 2022-11-16 17:28:50 -05:00
Antonio ScandurraandNathan Sobo bfc6c566db Batch some of the new queries in Db
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2022-11-16 17:19:06 +01:00
Antonio Scandurra d054ca68e9 Wait for acknowledgment before sending the next diagnostic summary 2022-11-16 16:03:01 +01:00
Antonio Scandurra a079fb5626 Move Store::start_language_server to Db 2022-11-16 15:48:26 +01:00