Commit Graph

37 Commits

Author SHA1 Message Date
Michael Muré
3cf31fc404
repository: merge git.Hash in for one less /util package 2020-07-01 19:39:02 +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é
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é
67a3752e17 bug,entity: use a dedicated type to store IDs 2019-08-11 14:08:03 +02:00
Michael Muré
2e1a5e246e bug: compute op's ID based on the serialized data on disk 2019-08-08 19:02:46 +02:00
Amine Hilaly
31eebdf9da
[bridge/github] Correcte some types and add comments
General improvements

Co-Authored-By: Michael Muré <batolettre@gmail.com>

empty array check

an empty array is not nil

Co-Authored-By: Michael Muré <batolettre@gmail.com>
2019-06-24 21:35:24 +02:00
Amine Hilaly
e649a50396
[bug] Operations: add GetAuthor method for operation interface and
BaseOp
2019-06-24 21:27:39 +02:00
Michael Muré
0a71e6d269
commands: display comment's id in "git bug comment" 2019-03-28 01:21:41 +01:00
Michael Muré
d10c76469d
identity: somewhat getting closer ! 2019-03-01 22:40:21 +01:00
Michael Muré
feab9412df
WIP identity in git 2019-03-01 22:35:36 +01:00
Michael Muré
82701f8ce7
bug: add a new SetMetadataOperation to retroactively tag operations 2018-10-21 00:55:58 +02:00
Michael Muré
8ec1dd0926
github: working incremental + comment history for the first comment 2018-10-01 23:34:45 +02:00
Michael Muré
f18c2d2783
bug: make sure to invalidate the hash when changing an op's metadata 2018-10-01 23:33:25 +02:00
Michael Muré
3402230a55
bug: use a value embedding for OpBase 2018-10-01 11:37:17 +02:00
Michael Muré
d450c7a883
use more testify, fix unchecked errors 2018-09-29 21:09:09 +02:00
Michael Muré
c46d01f8c1
bug: implement comment edition
- add a new operation
- add a new "timeline" in the snapshot that hold a processed version of the operations
2018-09-29 20:41:19 +02:00
Michael Muré
41e61a67b6
bug: apply an operation with a pointer to the snapshot 2018-09-29 11:28:18 +02:00
Michael Muré
794d014fae
bug: define a hash-based identifier for an operation 2018-09-29 00:51:54 +02:00
Michael Muré
1bf268cebc
merge package operations into bug, they are tightly coupled anyway 2018-09-29 00:51:54 +02:00
Michael Muré
40c6e64e4b
cache: add raw edit functions to allow setting up the author, the timestamp and the metadatas 2018-09-25 17:56:58 +02:00
Michael Muré
a72ea453a9
bug: add the ability to store arbitrary metadata on an operation 2018-09-24 20:19:16 +02:00
Michael Muré
7bec0b1f13
bug: add a data validation process to avoid merging incorrect operations 2018-09-15 13:15:00 +02:00
Michael Muré
19f43a83c3
bug: proper int baked enum for merge result status instead of a string 2018-09-13 11:13:51 +02:00
Michael Muré
60fcfcdcb0
bug: change the OperationPack serialization format for Json
See https://github.com/MichaelMure/git-bug/issues/5 for the details of this choice
2018-09-12 16:57:46 +02:00
Michael Muré
3605887345 reorganize package for a more idomatic go 2018-09-11 22:14:46 +02:00
Michael Muré
2dcd06d1e7
bug: ensure that OpBase field are public and properly serialized
fix #37
2018-09-10 19:09:20 +02:00
Michael Muré
e7648996c8
bug: add a new BugExerpt that hold a subset of a bug state for efficient sorting and retrieval 2018-08-23 19:19:16 +02:00
Michael Muré
df144e727a
fix some linting trouble 2018-08-13 15:28:47 +02:00
Michael Muré
435be2b693
bug: add a Lamport logical clock to be able to sort bugs by creation time and edit time without having to rely on a timestamp 2018-08-06 20:31:20 +02:00
Michael Muré
d8f89726fe
implement media hosting in git for comments + API for the webui 2018-08-02 23:37:49 +02:00
Michael Muré
eb39c5c29b
cli: rework new and comment command to better use the editor
a nice templace is now provided with explanations

new: title and message can now be provided from the editor. Title will
be the first non-empty line
2018-07-31 16:44:23 +02:00
Michael Muré
cfa11372cb
implement label op+command 2018-07-18 16:41:09 +02:00
Michael Muré
ba3281dc99
all operations now have an author and a timestamp 2018-07-18 00:16:06 +02:00
Michael Muré
76ac1787b8
add bug status + open/close commands 2018-07-17 19:28:37 +02:00
Michael Muré
da470993d1
complete the storage/read process + tests (!) 2018-07-14 22:17:37 +02:00
Michael Muré
1779a0f3b9
serialize a Bug to git as a blob+tree+commit+ref 2018-07-13 21:21:24 +02:00
Michael Muré
bc12fee58e
create the Bug structure 2018-07-13 16:13:40 +02:00