Commit Graph
14 Commits
Author SHA1 Message Date
Max Brunsfeld 095f52f78a Fix duplicated results in get_users_by_ids 2021-09-15 16:45:41 -07:00
Max BrunsfeldandNathan Sobo 4381e7b645 Get server integration tests passing again
* Set up UserStore to have the current user, so that
  channel messages can be sent. This is needed now that
  pending messages are represented more similarly to
  regular messages.
* Drop buffer inside of an `AppContext.update` block, so that
  the Buffer's release hook is called in time.

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-09-15 16:17:07 -07:00
Nathan Sobo c36f05a9ce Fix signups query 2021-09-14 13:23:35 -06:00
Antonio ScandurraandNathan Sobo b5c3798c39 Make scrolling up in chat panel smoother
This increases the threshold at which we start loading new messages
as well as the amount of messages we get back from the server every
time we fetch.

Also, we restructured the seed binary to use the methods in `Db` to
generate seed data and added random chat messages.

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-09-02 16:05:34 +02:00
Max Brunsfeld 0ad00f298a Drop the word 'recent' from get_channel_messages db method name 2021-08-27 15:50:45 -07:00
Max BrunsfeldandNathan Sobo 168aa11e64 Fetch older messages when scrolling up in the chat message list
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-27 14:58:28 -07:00
Antonio Scandurra dbb53093f5 Fix retrieving recent channel messages 2021-08-26 14:14:22 +02:00
Antonio Scandurra 1469db51f5 Extract a TestDb to setup and tear down a database instance 2021-08-26 12:51:48 +02:00
Nathan SoboandMax Brunsfeld b97e81c814 Associate messages with their sender, fetching senders if necessary
Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
2021-08-25 14:20:03 -06:00
Antonio ScandurraandNathan Sobo 555d5132b7 Make database interactions deterministic in test
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-20 16:24:33 +02:00
Antonio ScandurraandNathan Sobo 1128405fa5 Extract a Db::close method and remove deref to PgPool
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-20 14:58:14 +02:00
Max BrunsfeldandNathan Sobo 25fb1ead35 Implement initial RPC endpoints for chat
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
2021-08-06 13:43:06 -07:00
Max Brunsfeld 9bf5244d38 Start work on server-side RPC handling for chat 2021-08-05 19:59:54 -07:00
Max Brunsfeld cc6a1d44bb Add server methods for creating chat domain objects
Also, consolidate all sql into a `db` module
2021-08-05 19:16:36 -07:00