focalboard/server/services/store/sqlstore
Miguel de la Cruz 3ae821d2e8
Refactor websockets state and lifecycle (#3315)
* Refactor websockets state and lifecycle

This PR moves the state of the authentication and subscriptions to the
websockets client, allowing for multiple components to communicate
with it and request subscriptions independently. With this change, the
lifecycle of the websockets client is now managed on a component, and
a hook is provided for easy access to it from individual components.

* Fix linter

* Integrating the new websockets in channels integration with the RHS and board selector

* Some small fixes around boards-channels relationship

* Make the boards unfurl to always use the current team

* Fixing weird behaviors in websockets and other small data related bugs in channel-board relationship

* Only warn if withWebSockets is used without a base connection

* Fix tests

* Fix linter

* Update snapshot

* Fixing plugin tests

Co-authored-by: Jesús Espino <jespinog@gmail.com>
2022-07-14 12:31:51 +02:00
..
migrations Initial Boards+Channels implementation (#3110) 2022-07-07 16:46:53 +02:00
blocks.go don't copy 'comment' blocks (#3267) 2022-06-22 15:57:27 -06:00
board.go Refactor websockets state and lifecycle (#3315) 2022-07-14 12:31:51 +02:00
boards_and_blocks.go don't copy 'comment' blocks (#3267) 2022-06-22 15:57:27 -06:00
category.go Standardize err not found (#2834) 2022-04-20 11:02:12 -04:00
category_boards.go Updated update category-board mapping method to not rely on DB returning affected rows (#2840) 2022-04-20 09:21:53 -06:00
cloud.go Adds limits implementation to the server (#3213) 2022-06-15 12:17:44 +02:00
data_migrations.go Fixed a bug where migrations didn't run on a clean DB (#3104) 2022-05-24 09:40:34 +02:00
data_migrations_test.go Permissions feature branch (#2578) 2022-03-22 08:24:34 -06:00
data_retention.go Implement Boards Data Retention - Take 2 (#2859) 2022-04-25 12:58:08 -06:00
file.go Forward-porting fileinfo limits (#3164) 2022-06-13 13:35:42 +05:30
helpers_test.go Permissions feature branch (#2578) 2022-03-22 08:24:34 -06:00
legacy_blocks.go fix postgres SQL for legacyBoardFields (#3111) 2022-05-26 18:11:53 -04:00
migrate.go Refactor websockets state and lifecycle (#3315) 2022-07-14 12:31:51 +02:00
migrate_test.go Fix MySQL migration connection when the DSN doesn't contain any query parameters (#557) 2021-06-11 11:18:11 +02:00
notificationhints.go Standardize err not found (#2834) 2022-04-20 11:02:12 -04:00
params.go Initialise the store with a single user flag and pass it to the migrations (#2906) 2022-04-27 15:11:27 +02:00
public_methods.go Refactor websockets state and lifecycle (#3315) 2022-07-14 12:31:51 +02:00
session.go Adds a generator that wraps store methods with transactions and migrates implementations to use transactions (#1440) 2021-10-22 12:48:53 +02:00
sharing.go Permissions feature branch (#2578) 2022-03-22 08:24:34 -06:00
sqlstore.go Initial Boards+Channels implementation (#3110) 2022-07-07 16:46:53 +02:00
sqlstore_test.go Adds limits implementation to the server (#3213) 2022-06-15 12:17:44 +02:00
subscriptions.go Standardize err not found (#2834) 2022-04-20 11:02:12 -04:00
system.go Standardize err not found (#2834) 2022-04-20 11:02:12 -04:00
team.go Permissions feature branch (#2578) 2022-03-22 08:24:34 -06:00
templates.go GH-2745 Don't init default templates when unit testing (#2748) 2022-04-08 13:46:16 +02:00
user.go Ported view limits to main (#3252) 2022-06-29 18:05:24 +05:30
util.go Adds limits implementation to the server (#3213) 2022-06-15 12:17:44 +02:00