Commit Graph

208 Commits

Author SHA1 Message Date
Michael Muré
c5b70d8d94 bug: don't serialize multiple time the author, only once in OperationPack 2022-03-15 22:01: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é
2415515622
Merge pull request #631 from MichaelMure/comment-edit
Fix ID string in order to find correct bug instance on comment edit operation
2021-04-18 20:37:47 +02:00
Alexander Scharinger
6a5ffd94e0
Fix ID string in order to find correct bug instance 2021-04-17 20:03:33 +02:00
Michael Muré
51a2c85954
make sure every text input is safe and validated
fix #630
2021-04-17 17:40:11 +02:00
Michael Muré
5549925235
cache: many fixes following the dag entity migration 2021-04-08 16:18:31 +02: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é
bd09541752
entity: no sign-post needed 2021-02-20 14:37:06 +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é
d0d7be8db0
minor cleanups 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é
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é
db7074301b
entity: generalize the combined Ids, use 64 length 2021-02-14 12:17:49 +01:00
Michael Muré
fcf43915e1
bug: fix tests 2021-02-14 12:17:49 +01:00
vince
d96284da64
Change the comment ID to use both bug and comment ID references.
Add comment edit command
This commit adds the comment edit command, which provides a CLI tool that allows a user to edit a comment.
2021-02-14 12:17:48 +01:00
Michael Muré
2788c5fc87
bug: don't store the id in Bug, match how it's done for Identity 2021-02-14 12:17:48 +01:00
Michael Muré
497ec1376a
bug: debug 2021-02-14 12:17:48 +01:00
Michael Muré
2bf2b2d765
entity: unique function to generate IDs 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
Michael Muré
fb0c5fd061
repo: expose all lamport clocks, move clocks in their own folder 2021-02-14 12:15:41 +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
Michael Muré
4ef2c11040
repo: finish RepoStorage move 2020-12-08 13:07:51 +01:00
vince
647b05eee4
add remove identity feature
also adds:
- listlocalidentities
- refactors refstoids into entity package
2020-11-22 15:20:51 +01:00
Michael Muré
499dbc0a03
identity: remove support for legacy identity 2020-10-04 20:50:15 +02:00
Michael Muré
ca720f165c
cache,bug,identity: structural change
- bug doesn't commit identities anymore, only make sure they are commit
- cache use an IdentityResolver to load bugs with identities from the cache (deps injection)
- IdentityCache now are identity.Interface
2020-10-04 20:39:10 +02:00
Michael Muré
1a0c86a12d
repo: use go-git in more places, fix push 2020-10-04 19:56:16 +02:00
Michael Muré
60466f86c8
bug: fix tests 2020-08-26 00:41:52 +02:00
Michael Muré
47ea66f602
bug: use sha256 to compute labels color, to use a single hash function in the codebase 2020-08-26 00:29:26 +02:00
Michael Muré
a62ce78c4f
bug: code cleanup for the rm feature 2020-07-28 14:30:07 +02:00
vince
18ddc77590
Fix bug tests 2020-07-28 14:30:07 +02:00
vince
4e5f377d75
Remove need to specify remote
This commit makes the removeBug command use the listRefs repo command to search for the bug, eliminating the need to input the remote the bug came from.
2020-07-28 14:30:06 +02:00
vince
4e4ca106ae
Allow user to delete remote bugs 2020-07-28 14:30:05 +02:00
Michael Muré
c448cf8cd3
typos and minor readme fix 2020-07-15 11:57:42 +02:00
Vincent Tiu
f3304bdc1c
Add functionality to remove bugs from a local repository. (#423)
Add functionality to remove bugs from a local repository.

This adds a function to remove git references in the repo and another one to remove bugs.
2020-07-09 14:40:44 +02:00
Michael Muré
3cf31fc404
repository: merge git.Hash in for one less /util package 2020-07-01 19:39:02 +02:00
Michael Muré
939bcd57b9
repo: more tests 2020-06-27 22:00:15 +02:00
Michael Muré
88ad7e606f
repository: remove tie to Bug, improved and reusable testing
- allow the creation of arbitrary Lamport clocks, freeing the way to new entities and removing Bug specific (upper layer) code.
- generalize the memory-only and persisted Lamport clocks behind a common interface
- rework the tests to provide reusable testing code for a Repo, a Clock, a Config, opening a path to add a new Repo implementation more easily
- test previously untested components with those new tests

Note: one problem found during this endeavor is that `identity.Version` also need to store one time + Lamport time for each other Entity (Bug, config, PR ...). This could possibly done without breaking change but it would be much easier to wait for https://github.com/MichaelMure/git-bug-migration to happen.
2020-06-26 19:14:22 +02:00
Michael Muré
aab3a04d0c
bug: harmonize how time are used, fix some issues in command special formats
This assume that the convertion from time.Time <--> Unix timestamp is lossless which seems to be.
2020-06-25 23:18:17 +02:00
Michael Muré
9a00ffb72e
bug: make sure to disable label color escape when not on a terminal 2020-06-14 18:06:42 +02:00
Michael Muré
b3d3612393
Merge remote-tracking branch 'origin/master' into cheshirekow-jira 2020-02-09 20:23:38 +01:00
Michael Muré
81f5c3e0af
graphql: use the cache in priority for fast browsing at < 20ms instead of seconds 2020-02-09 02:18:44 +01:00
Michael Muré
74e9114410
more more wip 2020-02-08 17:19:57 +01:00
Michael Muré
97bc5ccd22
various cleanups suggested by golang-ci 2020-02-08 16:17:15 +01:00