Skip to content

Commit 892f55b

Browse files
authored
Merge pull request #32 from unisoncomputing/syncv2/migrate-entities
Add SyncV2 and add migration to store serialized components
2 parents 224fef8 + 40e05bd commit 892f55b

31 files changed

+1232
-98
lines changed

package.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ dependencies:
4444
- bytestring
4545
- bytes
4646
- case-insensitive
47+
- cborg
4748
- clock
49+
- conduit
4850
- containers
4951
- cookie
5052
- cryptonite
@@ -94,7 +96,10 @@ dependencies:
9496
- servant-auth
9597
- servant-client
9698
- servant-server
99+
- servant-conduit
100+
- serialise
97101
- stm
102+
- stm-chans
98103
- text
99104
- these
100105
- time

share-api.cabal

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ library
3434
Share.BackgroundJobs.Monad
3535
Share.BackgroundJobs.Search.DefinitionSync
3636
Share.BackgroundJobs.Search.DefinitionSync.Types
37+
Share.BackgroundJobs.SerializedEntitiesMigration.Queries
38+
Share.BackgroundJobs.SerializedEntitiesMigration.Worker
3739
Share.BackgroundJobs.Workers
3840
Share.Branch
3941
Share.Codebase
@@ -94,6 +96,7 @@ library
9496
Share.Utils.Logging.Types
9597
Share.Utils.Postgres
9698
Share.Utils.Servant
99+
Share.Utils.Servant.CBOR
97100
Share.Utils.Servant.Client
98101
Share.Utils.Servant.PathInfo
99102
Share.Utils.Servant.RawRequest
@@ -152,6 +155,9 @@ library
152155
Share.Web.UCM.Sync.HashJWT
153156
Share.Web.UCM.Sync.Impl
154157
Share.Web.UCM.Sync.Types
158+
Share.Web.UCM.SyncV2.API
159+
Share.Web.UCM.SyncV2.Impl
160+
Share.Web.UCM.SyncV2.Queries
155161
Unison.PrettyPrintEnvDecl.Postgres
156162
Unison.Server.NameSearch.Postgres
157163
Unison.Server.Share.Definitions
@@ -208,7 +214,9 @@ library
208214
, bytes
209215
, bytestring
210216
, case-insensitive
217+
, cborg
211218
, clock
219+
, conduit
212220
, containers
213221
, cookie
214222
, cryptonite
@@ -252,13 +260,16 @@ library
252260
, raven-haskell
253261
, safe
254262
, semialign
263+
, serialise
255264
, servant
256265
, servant-auth
257266
, servant-client
267+
, servant-conduit
258268
, servant-server
259269
, share-auth
260270
, share-utils
261271
, stm
272+
, stm-chans
262273
, text
263274
, these
264275
, time
@@ -351,7 +362,9 @@ executable share-api
351362
, bytes
352363
, bytestring
353364
, case-insensitive
365+
, cborg
354366
, clock
367+
, conduit
355368
, containers
356369
, cookie
357370
, cryptonite
@@ -395,14 +408,17 @@ executable share-api
395408
, raven-haskell
396409
, safe
397410
, semialign
411+
, serialise
398412
, servant
399413
, servant-auth
400414
, servant-client
415+
, servant-conduit
401416
, servant-server
402417
, share-api
403418
, share-auth
404419
, share-utils
405420
, stm
421+
, stm-chans
406422
, text
407423
, these
408424
, time

sql/2023-10-18-00-00_temp_entities.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ END;
9292
$$ LANGUAGE plpgsql;
9393

9494
-- Copies ALL dependencies of a causal into the codebase.
95+
--
96+
-- Note: This has been replaced in a later migration.
9597
CREATE OR REPLACE FUNCTION copy_causal_into_codebase(causal_id_to_copy INTEGER, from_codebase_user_id UUID, to_codebase_user_id UUID)
9698
RETURNS VOID AS $$
9799
DECLARE copied_hash TEXT;

0 commit comments

Comments
 (0)