Commit Graph
6958 Commits
Author SHA1 Message Date
Antonio ScandurraandMax Brunsfeld fca76d9abe Remove stale Error variant
Co-Authored-By: Max Brunsfeld <max@zed.dev>
2022-12-02 19:20:51 +01:00
Antonio Scandurra 3fac823050 Merge branch 'main' into reconnections-2 2022-12-02 19:09:33 +01:00
Antonio Scandurra 1df91393a5 Delete empty rooms 2022-12-02 16:56:41 +01:00
Antonio Scandurra 21f5e6d8a6 Clear stale data on startup
This is a stopgap measure until we introduce reconnection support.
2022-12-02 16:30:00 +01:00
Antonio Scandurra 2b3b729895 Move modules into collab library as opposed to using the binary
This ensures that we can use collab's modules from the seed script
as well.
2022-12-02 14:37:52 +01:00
Antonio Scandurra ed7b6e3eb1 Make all tests pass again after migration to sea-orm 2022-12-02 14:22:36 +01:00
Antonio Scandurra 8a5f89eb56 Use i32 to represent Postgres INTEGER types in Rust 2022-12-02 13:58:54 +01:00
Antonio Scandurra 0ddca2b768 Finish porting remaining db methods to sea-orm 2022-12-02 13:58:23 +01:00
Joseph T. Lyons f43498e6a0 Merge pull request #1876 from zed-industries/update-release-urls-to-match-new-zed.dev-url-format
Update release urls to match new zed.dev url format
2022-12-01 20:32:14 -05:00
Antonio Scandurra b5676d0eae WIP 2022-12-01 18:39:24 +01:00
Antonio Scandurra 4229c49a0c Replace i32 with u32 for database columns
We never expect to return signed integers and so we shouldn't use
a signed type. I think this was a limitation of sqlx.
2022-12-01 17:47:51 +01:00
Antonio Scandurra 2a33aa6824 Implement Database::update_project 2022-12-01 17:36:36 +01:00
Antonio Scandurra 12178dae19 Implement Database::unshare_project 2022-12-01 16:26:13 +01:00
Antonio Scandurra 99b063f602 Implement Database::project_guest_connection_ids 2022-12-01 16:23:29 +01:00
Antonio Scandurra b55f6ec5bc Avoid using col_expr whenever possible
...and use the more type-safe `::set`.
2022-12-01 16:17:27 +01:00
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
Julia 5281f7c491 Merge pull request #1922 from zed-industries/dont-panic-clip-instead
Dont panic in point conversion, clip instead
2022-11-30 13:28:10 -05:00
JuliaandMax Brunsfeld 7f8aecd8f1 Style
Co-Authored-By: Max Brunsfeld <max@zed.dev>
2022-11-30 13:11:08 -05:00
JuliaandMax Brunsfeld 8a7d081b89 Change verify macro to debug panic
Co-Authored-By: Max Brunsfeld <max@zed.dev>
2022-11-30 13:03:15 -05:00
Julia a910ed490d Don't panic rope point conversions 2022-11-30 12:43:43 -05:00
Julia df65473139 Add verify macros & use in one location for point conversion 2022-11-30 12:43:43 -05: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
Joseph T. Lyons d7fbd08a75 Merge pull request #1920 from zed-industries/order-invites-by-creation-time
Order invites by creation time
2022-11-29 14:28:53 -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
Joseph T. Lyons 8054a8bb9e Merge pull request #1918 from zed-industries/remove-sign-in-telemetry-event
Remove sign in telemetry event
2022-11-29 01:59:33 -05:00
Joseph Lyons 974ddd27d6 Remove sign in telemetry event 2022-11-28 18:56:27 -05:00
Max Brunsfeld c035114c43 Merge pull request #1917 from zed-industries/integer-excerpt-ids
Use integers for excerpt ids, map them to locators internally
2022-11-28 14:27:35 -08:00
Max Brunsfeld 38699bcbb0 Implement Copy for multibuffer anchors 2022-11-28 14:18:49 -08:00
Max Brunsfeld 883d683ee8 Add a layer of indirection between excerpt ids and locators 2022-11-28 14:18:49 -08:00
Antonio Scandurra 871add9d65 Capture runnable backtraces only when detecting nondeterminism 2022-11-28 19:35:33 +01:00
Antonio Scandurra 3c4a8b6c01 Error if project is disconnected after getting completions response 2022-11-28 19:19:24 +01:00
Antonio Scandurra 7d91ae8d03 Introduce a new detect_nondeterminism = true attribute to gpui::test 2022-11-28 19:01:28 +01:00