Arya Irani
690e5723d1
Merge remote-tracking branch 'origin/arya/Wno-type-defaults' into arya/ooo-sync
2022-04-29 19:13:24 -04:00
Arya Irani
d8f1a7870b
restore -Wtype-defaults
2022-04-29 19:06:53 -04:00
Mitchell Rosen
5e8f1101f9
add unison share url to loop state env
2022-04-28 12:00:44 -04:00
Mitchell Rosen
607f14a7a2
sketch out pushing to unison share from HandleInput
2022-04-27 21:59:23 -04:00
Mitchell Rosen
a6ff8ff8ed
add the codebase to LoopState
2022-04-27 16:58:50 -04:00
Mitchell Rosen
5707918fae
⅄ trunk → arya/ooo-sync
2022-04-26 13:36:56 -04:00
Mitchell Rosen
044f6ad727
some misc cleanup in sync code
2022-04-26 11:46:12 -04:00
Chris Penner
d79e396c44
Re-implement Browse API to avoid loading entire codebase root ( #3054 )
...
Swap Browse API to use V2 branches.
2022-04-26 09:41:31 -06:00
Mitchell Rosen
78774590fa
add namespace diff to share api types
2022-04-26 10:58:03 -04:00
Mitchell Rosen
abdda222ac
tempEntityToEntity PatchDiff case
2022-04-26 10:46:04 -04:00
Mitchell Rosen
6ebfaa919d
add patch diff to share api types
2022-04-26 10:44:29 -04:00
Mitchell Rosen
cd122e526e
implement most of expectEntity in Share.Sync, except for handling local diff formats
2022-04-25 21:57:13 -04:00
Mitchell Rosen
b3be5d06e4
take a connection rather than a transaction-running function, for incremental pulls
2022-04-25 16:10:04 -04:00
Mitchell Rosen
7315015302
unify ReadyEntity and TempEntity
2022-04-25 16:04:54 -04:00
Mitchell Rosen
56d70105f1
don't store hash jwts in temp_entity
2022-04-25 15:37:26 -04:00
Paul Chiusano
3bfb412a4d
Merge pull request #3052 from unisonweb/topic/handle-input-timing
...
Record timings of various operations in HandleInput
2022-04-21 09:29:39 -05:00
Mitchell Rosen
639706afb8
hit actual getCausalHashByPath endpoint
2022-04-19 22:43:52 -04:00
Mitchell Rosen
0320ca0711
delete unused function
2022-04-19 22:39:07 -04:00
Mitchell Rosen
4aa595f37c
handle a couple missing cases
2022-04-19 22:38:45 -04:00
Mitchell Rosen
3b8bd60531
⅄ trunk → arya/ooo-sync
2022-04-19 22:29:24 -04:00
Mitchell Rosen
500c6886b5
fill out insertEntity
2022-04-19 16:07:48 -04:00
Mitchell Rosen
1357e39465
fill out tempToSyncEntity
2022-04-19 15:57:19 -04:00
Mitchell Rosen
2a67ea4f9e
change some names
2022-04-19 15:46:20 -04:00
Mitchell Rosen
f08f7c1822
fill out the tempToSync* things
2022-04-19 15:13:46 -04:00
Paul Chiusano
ab1ff3ec5f
Add moar timing!
2022-04-16 17:38:58 -05:00
Paul Chiusano
25155233a3
add a bunch of timing logging (enabled/disabled by Timing.hs) to HandleInput
2022-04-16 17:25:46 -05:00
Arya Irani
84dc475799
please review
...
- refactored saveCausal to handle parents as well
- moved Q.saveCausal in Ops.saveBranch to after looking up parent ids
- fleshing out Q.tryMoveTempEntityDependents (needs another name)
- implemented decompose/recomposeTerm/DeclFormat for Q.saveReadyEntity
- replaced sketchy usages of decompose/recomposeComponent with decompose/recomposeTerm/DeclFormat in Sync22.hs
- needs audit
- would hide decompose/recomposeComponent from export list, but we don't have one yet.
2022-04-16 15:42:31 -05:00
Arya Irani
e6692b3eb3
delete temp comments
2022-04-14 14:19:18 -05:00
Arya Irani
758d2f20b7
switch EntityLocation/2 around
2022-04-14 12:27:36 -05:00
Mitchell Rosen
55561acd30
⅄ trunk → 21-12-04-use-unison-sqlite
2022-04-13 13:02:36 -04:00
Chris Penner
d4029a8e10
Prepare local-ui endpoints for use in share-server ( #3043 )
...
* Move auth checks up to the top-level for sharing with enlil
* Change handlers to use Backend monad rather than Handler
* Add some helpful Show/Eq instances
* Clarify runtime types
* Fix up Backend error outputs
2022-04-12 20:21:33 -06:00
Mitchell Rosen
92971e2e7a
cleanup
2022-04-12 21:52:50 -04:00
Mitchell Rosen
30e8c8b4a4
fill out pull
2022-04-12 21:49:33 -04:00
Mitchell Rosen
f6c6aa784f
actually call downloadEntities
2022-04-12 21:31:01 -04:00
Mitchell Rosen
abd67c6c13
move some code around and add docs
2022-04-12 21:27:10 -04:00
Mitchell Rosen
ca41818517
uploadEntities
2022-04-12 20:46:38 -04:00
Mitchell Rosen
62a1a60a81
use the real http update path
2022-04-12 20:43:36 -04:00
Arya Irani
c8cd5c4ce5
added value hash to api type
2022-04-12 18:16:17 -05:00
Mitchell Rosen
9715b1149f
fill out most of entityToTempEntity
2022-04-12 16:32:56 -04:00
Mitchell Rosen
dc26b0bb56
begin implementing entityToTempEntity
2022-04-12 16:22:04 -04:00
Mitchell Rosen
70ff3105bb
cleanup/refactoring
2022-04-12 16:12:46 -04:00
Mitchell Rosen
a2565618c2
use Base32Hex in unison-share-api
2022-04-12 15:54:48 -04:00
Mitchell Rosen
a06e6352d0
extract unison-util-base32hex package
2022-04-12 15:51:03 -04:00
Mitchell Rosen
3b62fa7774
serialize in insertTempEntity
2022-04-12 15:41:42 -04:00
Mitchell Rosen
cd11a9a076
finish tempToSyncTermComponent
2022-04-12 15:28:23 -04:00
Mitchell Rosen
5d7df3a7ff
get code compiling, bit of work on temp->main term
2022-04-12 15:24:52 -04:00
Arya Irani
7eadba793a
tempToSyncTermComponent
2022-04-12 13:56:55 -05:00
Arya Irani
28463439f4
maybe done with download?
2022-04-12 13:35:58 -05:00
Arya Irani
396ebc485e
partially broken stuff
2022-04-12 13:14:46 -05:00
Arya Irani
e698acf0e8
Sync.{makeTempEntity,tempEntityType}
2022-04-12 07:40:42 -05:00