Michael Muré
e1b172aaf0
dag: test op serialisation with the unmarshaller, to allow resolving entities
2022-08-24 21:31:48 +02:00
Michael Muré
45b04351d8
bug: have a type for combined ids, fix https://github.com/MichaelMure/git-bug/issues/653
2022-08-22 13:25:26 +02:00
Michael Muré
5511c230b6
move {bug,identity} to /entities, move input to /commands
2022-08-18 23:44:06 +02:00
Michael Muré
45f5f852b7
core: generalized resolvers to resolve any entity time when unmarshalling an operation
2022-08-18 15:55:48 +02:00
Michael Muré
3d454d9dc8
entity/dag: proper base operation for simplified implementation
...
- reduce boilerplace necessary to implement an operation
- consolidate what an operation is in the core, which in turn pave the way for a generic cache layer mechanism
- avoid the previously complex unmarshalling process
- support operation metadata from the core
- simplified testing
2022-07-25 13:27:17 +02:00
Michael Muré
c6be058871
doc: more tiny fixes
2022-06-25 12:44:42 +02:00
Michael Muré
b43a447ab6
doc: tiny tweaks
2022-06-25 12:20:32 +02:00
Steve Moyer
1d4667c825
refactor(809): eliminate need to defer CleanupTestRepos()
2022-06-16 09:02:52 -04:00
Steve Moyer
86dd450aaf
test: clean up temp dir and repo correctly
2022-05-31 12:04:26 +02:00
Steve Moyer
e120fdb97e
refactor: use namespace instead of application of applicationName
2022-05-26 13:39:13 -04:00
Steve Moyer
b42fae382a
feat: make local storage configurable
2022-05-25 07:55:28 -04:00
Michael Muré
8ee333582f
a few fixes
2022-04-26 19:36:46 +02:00
Michael Muré
450d7f7ade
entity/dag: add an extensive example
2022-03-22 21:34:55 +01:00
Michael Muré
c9cec5b17b
update doc
2022-03-22 21:28:10 +01:00
Michael Muré
069a4c975f
Merge pull request #763 from MichaelMure/resolve-entity
...
entity: allow to resolve identities when numashalling operations
2022-03-10 16:56:46 +01:00
Michael Muré
fd14a0763e
entity: allow to resolve identities when numashalling operations
2022-03-10 16:37:24 +01:00
Michael Muré
b11679bc80
Fix a bunch of comments and documentations
2022-03-10 16:30:27 +01:00
Michael Muré
44f61b6677
update keyring and migrate to github.com/ProtonMail/go-crypto
2022-02-15 21:35:49 +01:00
Michael Muré
5549925235
cache: many fixes following the dag entity migration
2021-04-08 16:18:31 +02:00
Michael Muré
cb9b06551d
entity: more comments
2021-04-04 11:23:04 +02:00
Michael Muré
5215634d0d
entity: add support for storing files
2021-03-21 18:22:04 +01:00
Michael Muré
214abe4dea
WIP operation with files
2021-03-14 18:41:22 +01:00
Michael Muré
f1d4a19af8
bug: nonce on all operation to prevent id collision
2021-03-14 18:40:50 +01:00
Michael Muré
45e540c178
bug: wrap dag.Entity into a full Bug in MergeAll
2021-02-14 12:38:09 +01:00
Michael Muré
1ced77af1a
fix merge
2021-02-14 12:24:40 +01:00
Michael Muré
d0d7be8db0
minor cleanups
2021-02-14 12:19:51 +01:00
Michael Muré
4b9862e239
entity: make sure merge commit don't have operations
2021-02-14 12:19:51 +01:00
Michael Muré
3f6ef50883
bug: migrate to the DAG entity structure!
2021-02-14 12:19:50 +01:00
Michael Muré
99b9dd84cb
entity: support different author in staging operations
2021-02-14 12:19:04 +01:00
Michael Muré
94f06cd54d
entity: pass the identity resolver instead of defining it once
...
Having the resolver in Definition doesn't actually work well as the resolver
is very situational.
2021-02-14 12:19:04 +01:00
Michael Muré
71e22d9f6e
entity: clock loader
2021-02-14 12:19:04 +01:00
Michael Muré
59e9981161
entity: expose create and edit lamport clocks
2021-02-14 12:19:03 +01:00
Michael Muré
ef05c15f87
entity: implement remove
2021-02-14 12:19:03 +01:00
Michael Muré
f74166914c
entity: remove the pack lamport time that doesn't bring anything actually
2021-02-14 12:19:03 +01:00
Michael Muré
2bdb1b60ff
entity: working commit signatures
2021-02-14 12:19:02 +01:00
Michael Muré
26a4b0332e
entity: test all merge scenario
2021-02-14 12:19:02 +01:00
Michael Muré
32c55a4985
entity: use BFS instead of DFS to get the proper topological order
2021-02-14 12:19:01 +01:00
Michael Muré
e35c7c4d17
entity: more testing and bug fixing
2021-02-14 12:19:01 +01:00
Michael Muré
fe4237df3c
entity: readAll and more testing
2021-02-14 12:19:01 +01:00
Michael Muré
dc5059bc33
entity: more progress on merging and signing
2021-02-14 12:19:00 +01:00
Michael Muré
8d63c983c9
WIP
2021-02-14 12:19:00 +01:00
Michael Muré
4ef92efeb9
entity: total ordering of operations
2021-02-14 12:19:00 +01:00
Michael Muré
51ece14908
entity: clocks and write
2021-02-14 12:18:59 +01:00
Michael Muré
9cca74cc33
entity: add embryo of a generic, DAG-enabled entity
2021-02-14 12:18:59 +01:00
Michael Muré
5f6a39145d
entity: add error to signal invalid format
2021-02-14 12:18:57 +01:00
Michael Muré
db7074301b
entity: generalize the combined Ids, use 64 length
2021-02-14 12:17:49 +01:00
Michael Muré
2bf2b2d765
entity: unique function to generate IDs
2021-02-14 12:17:47 +01:00
Michael Muré
ab57d74a31
deal with the previous changes
2021-02-14 12:17:47 +01:00
Michael Muré
7163b2283b
bug: Id from first operation data, not git + remove root link
2021-02-14 12:17:44 +01:00
vince
e3737f216a
expose format version
...
this commit exposes the format version of the operation pack and identity to reduce the changes needed in vendored code when migrating. This also creates error variables that can be propagated and tested against for migrations.
2020-12-15 14:11:07 +01:00