Commit Graph

43 Commits

Author SHA1 Message Date
Arya Irani
461ac1f992 json instances for DownloadEntitiesResponse 2022-05-26 19:40:30 -04:00
Arya Irani
535b8589b8 download entities 2022-05-26 19:22:26 -04:00
Chris Penner
cc34cb8242 Remove entity type from hashjwt for now. 2022-05-26 14:21:51 -06:00
Chris Penner
8b96376399 Expose implementations for use in Share server 2022-05-26 14:20:06 -06:00
Chris Penner
fd2ab0ac23 Merge remote-tracking branch 'origin/arya/ooo-sync' into arya/ooo-sync 2022-05-26 11:47:47 -06:00
Chris Penner
86c04e6771 Adds ToJWT/FromJWT instances for HashJWT 2022-05-26 11:31:28 -06:00
Mitchell Rosen
6ddf2ee72e tweak fast-forward path to align with server's expectations 2022-05-26 12:13:57 -04:00
Arya Irani
2743c06edb fix json instances 2022-05-26 11:28:43 -04:00
Arya Irani
a18ef837c5 add FastForwardPathrequest.expectedHash field 2022-05-26 11:25:15 -04:00
Arya Irani
7af936320a export HashMismatchForEntity and InvalidParentage 2022-05-26 10:46:54 -04:00
Arya Irani
f789e4310f reexport Data.Tuple.Only, move entityExists, update Sync error types 2022-05-25 18:18:32 -04:00
Mitchell Rosen
37ac68c88e ⅄ trunk → arya/ooo-sync 2022-05-19 09:39:13 -04:00
Mitchell Rosen
bf2c6d6329 more pretty-printing work 2022-05-13 12:25:09 -04:00
Arya Irani
5d5e425b32 refactored RepoPath into a non-empty Path 2022-05-11 10:29:46 -04:00
Chris Penner
6847d6cfdd
More sensible readme selection strategy (#3067) 2022-05-09 08:40:48 -06:00
Chris Penner
5e09f7788a
Allow fetching namespace details (and readme) without loading root branch (#3066)
* Lazily fetch readme doc without loading whole v1 branch

* De-orphan any instances which are in the same package

* Add namespace-details transcript

* Fix transcript naming

* Update unison-share-api/src/Unison/Server/Backend.hs

Co-authored-by: Arya Irani <538571+aryairani@users.noreply.github.com>

Co-authored-by: Arya Irani <538571+aryairani@users.noreply.github.com>
2022-05-06 15:10:23 -06:00
Mitchell Rosen
7735cdb6dd delete unused TypedHash 2022-05-05 15:40:59 -04:00
Mitchell Rosen
2d0c8d55b1 organize share types module 2022-05-05 15:37:46 -04:00
Mitchell Rosen
11b1cefaf7 ⅄ trunk → arya/ooo-sync 2022-05-05 15:09:06 -04:00
Mitchell Rosen
28425c6d2e ⅄ trunk → arya/ooo-sync 2022-05-05 15:06:36 -04:00
Chris Penner
e8ad5e6a17
Load names from index for faster definition and find endpoints (#3059)
Allow using names index to back the backend so we can call it faster from Enlil.
2022-05-05 11:19:09 -06:00
Mitchell Rosen
55b7d318a5 start implementing fast-forward push 2022-05-04 18:04:48 -04:00
Mitchell Rosen
adff263d9e add fast-forward path api 2022-05-04 12:14:27 -04:00
Chris Penner
c073117871
Allow testing Share API in transcripts (#3062)
* Support API calls in transcripts
2022-05-02 09:55:15 -06:00
Mitchell Rosen
2bbeeaca0e decode hash jwts 2022-04-28 11:26:46 -04:00
Mitchell Rosen
5707918fae ⅄ trunk → arya/ooo-sync 2022-04-26 13:36:56 -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
6ebfaa919d add patch diff to share api types 2022-04-26 10:44:29 -04:00
Mitchell Rosen
3b8bd60531 ⅄ trunk → arya/ooo-sync 2022-04-19 22:29:24 -04:00
Arya Irani
62a8b0ca7e add fail responses to Sync.Types 2022-04-15 10:17:12 -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
abd67c6c13 move some code around and add docs 2022-04-12 21:27:10 -04:00
Arya Irani
c8cd5c4ce5 added value hash to api type 2022-04-12 18:16:17 -05:00
Mitchell Rosen
a2565618c2 use Base32Hex in unison-share-api 2022-04-12 15:54:48 -04:00
Arya Irani
28463439f4 maybe done with download? 2022-04-12 13:35:58 -05:00
Chris Penner
b224bb09c7 Move the Share server into its own package. 2022-04-11 09:57:58 -06:00
Mitchell Rosen
3abdda60e3 ⅄ trunk → arya/ooo-sync 2022-04-11 10:12:11 -04:00
Arya Irani
85770e12f4 more work on ooo-sync downloading entities 2022-04-07 16:51:34 -05:00
Chris Penner
3aca147a82 Implement sync http client 2022-04-06 15:48:59 -06:00
Mitchell Rosen
359b587144 more ooo sync work 2022-04-05 17:01:02 -04:00
Chris Penner
52da285bf6
Add unison-share-api package with Sync APIs (#3018) 2022-04-01 10:14:01 -06:00