Implement Room Workflow #16

Merged
HueHe merged 17 commits from implement-rooms into main 2023-06-14 15:05:24 +02:00
Contributor

Implements #3

Implements #3
Update run instructions to be clearer
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
9552660bf9
HueHe force-pushed implement-rooms from 9552660bf9
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
to 560327d5cd
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2023-06-05 14:54:43 +02:00
Compare
Update entities to have more options
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
906f929144
HueHe force-pushed implement-rooms from 906f929144
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
to ecc4f0db10
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2023-06-05 15:34:29 +02:00
Compare
HueHe force-pushed implement-rooms from 9d73018cea to 4ef070ed85 2023-06-05 15:57:40 +02:00 Compare
HueHe force-pushed implement-rooms from 32ec96187b to 233df882ae 2023-06-06 12:03:17 +02:00 Compare
HueHe force-pushed implement-rooms from 233df882ae to d45edc95e4 2023-06-06 18:21:44 +02:00 Compare
HueHe force-pushed implement-rooms from cc8fa5838a to 5f947b5deb 2023-06-06 18:51:39 +02:00 Compare
HueHe force-pushed implement-rooms from 5f947b5deb to 113f061b8e 2023-06-06 18:52:08 +02:00 Compare
HueHe force-pushed implement-rooms from 113f061b8e to dcb231af93 2023-06-06 18:58:39 +02:00 Compare
HueHe force-pushed implement-rooms from dcb231af93 to ad9b6226b7 2023-06-07 14:13:41 +02:00 Compare
HueHe force-pushed implement-rooms from ad9b6226b7 to ba03626051 2023-06-07 14:32:06 +02:00 Compare
Author
Contributor

Synapse overwrites the room owner sent upon creation with the authenticated user sending the request. This causes us a few problems, as we can't create direct chats over the API, for example.

Possible solutions that come to my mind are:

  1. Creating rooms directly in SQL. This might inflict consistency problems.
  2. Creating rooms via the API, changing the room ownership events via SQL.
  3. Saving the access token we get as a response to user creation, then using this to create the rooms a user owns. Consequentially, we can use them to join rooms as well, which will be another upcoming issue.

Any opinions, @sven.seeberg or @TreJo?

Synapse overwrites the room owner sent upon creation with the authenticated user sending the request. This causes us a few problems, as we can't create direct chats over the API, for example. Possible solutions that come to my mind are: 1. Creating rooms directly in SQL. This might inflict consistency problems. 1. Creating rooms via the API, changing the room ownership events via SQL. 1. Saving the access token we get as a response to user creation, then using this to create the rooms a user owns. Consequentially, we can use them to join rooms as well, which will be another upcoming issue. Any opinions, @sven.seeberg or @TreJo?
Owner

I think option 3 is definitely the best option. We will need user acces tokens anyways, because as you already mentioned we can only invite people into rooms over the API, but they still need to accept the invite, which they should not need to do manually.

I think option 3 is definitely the best option. We will need user acces tokens anyways, because as you already mentioned we can only invite people into rooms over the API, but they still need to accept the invite, which they should not need to do manually.
HueHe force-pushed implement-rooms from ba03626051 to 08fcca5ed2 2023-06-07 15:46:56 +02:00 Compare
HueHe force-pushed implement-rooms from 08fcca5ed2 to 924f606b4d 2023-06-07 16:36:18 +02:00 Compare
Author
Contributor

With #18 the token is saved now, I'll see to use it for room creation now.

With #18 the token is saved now, I'll see to use it for room creation now.
HueHe force-pushed implement-rooms from 924f606b4d to ce5a668f1c
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2023-06-07 18:08:58 +02:00
Compare
Move helper modules
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
31b07fbe8d
HueHe force-pushed implement-rooms from 31b07fbe8d
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
to 98fe90264f
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2023-06-07 18:10:05 +02:00
Compare
Add room handler
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
ae3353c6cb
Move handlers and clean up
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
34670d4459
HueHe force-pushed implement-rooms from 34670d4459
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
to 07a4f426bf
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2023-06-07 18:25:29 +02:00
Compare
HueHe force-pushed implement-rooms from 07a4f426bf
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
to 0b27d5ad28
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2023-06-07 18:41:25 +02:00
Compare
HueHe force-pushed implement-rooms from 0b27d5ad28
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
to 4692c7edea
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2023-06-07 18:49:23 +02:00
Compare
Make accessTokens nullable in storage
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
91fa37f82d
Add public room visibility to public chats
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
997ebf3ebb
Update reset instructions
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
f4891fdc83
Add createMembership function
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
e706451d90
Fix promises to be awaited
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
25f6284d06
HueHe force-pushed implement-rooms from 25f6284d06
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
to 5d5c751de8
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2023-06-12 17:39:37 +02:00
Compare
Fix error for duplicate room memberships
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
4a54b63cc0
Add instructions for rate limiting
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
f767753bb3
Fixes #19
HueHe force-pushed implement-rooms from 375afc834c to 33d37b025c 2023-06-14 12:20:23 +02:00 Compare
HueHe force-pushed implement-rooms from 33d37b025c to a06e379531
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2023-06-14 13:08:01 +02:00
Compare
Add cleanup script to reset dev environment
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
8b8b7b290d
Add membership handling
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ab597195da
HueHe changed title from WIP: Implement Room Workflow to Implement Room Workflow 2023-06-14 15:04:56 +02:00
HueHe merged commit 83b830e0fc into main 2023-06-14 15:05:24 +02:00
HueHe deleted branch implement-rooms 2023-06-14 15:05:24 +02:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
NB-Public/rocketchat2matrix!16
No description provided.