ludovicm67
209d337bbd
bug: fix tests
2019-10-15 21:03:27 +02:00
ludovicm67
75004e1298
bug: rename RGBA to Color
2019-10-15 20:42:27 +02:00
ludovicm67
d0d9ea56b9
termui: add colors for labels
2019-10-15 20:42:27 +02:00
Michael Muré
99b5c58d43
finish the refactoring for the dedicated identifier type
2019-08-12 16:12:14 +02:00
Michael Muré
67a3752e17
bug,entity: use a dedicated type to store IDs
2019-08-11 14:08:03 +02:00
Michael Muré
612a29b031
fix everything following the hash-->id change
2019-08-08 19:06:13 +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
d34eae189c
bug: add snapshot.SearchComment method
2019-07-23 17:18:04 +02:00
Amine Hilaly
570ae5f75e
[bug] add snapshot.GetCreateMetadata method
...
[bug] add snapshot.HasParticipant(id string)
[bug] add snapshot.HasAnyParticipant(ids ...string)
[bug] add snapshot.HasActor(id string)
[bug] add snapshot.HasAnyActor(ids ...string)
[bridge/github] improve comments
[bridge/github] exporter tests: register deleteRepository in cleaner
[bridge/github] tests rebase
2019-06-30 15:33:27 +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é
5bae915b53
minor cleanup
2019-06-23 18:32:22 +02:00
Michael Muré
777ccb9c68
bug: fix Bug's Lamport edit time potentially wrong due to rebase
2019-06-19 13:55:22 +02:00
Michael Muré
c7abac388a
repo: refactor how test repo are created/cleaned
2019-05-27 21:14:55 +02:00
Quentin Gliech
1c2ee10ce7
graphql: Implement Authored
whenever possible
...
webui: Use a fragment for Authored nodes
2019-05-22 21:46:43 +02:00
ludovicm67
9adf6de4b5
graphql: expose label color
2019-05-22 20:22:35 +02:00
ludovicm67
d156f41d99
core: use RBGA color from image/color
2019-05-22 20:22:35 +02:00
ludovicm67
9839d8bc00
core: rename Color to RGBColor
2019-05-22 20:22:35 +02:00
ludovicm67
e3ce535705
test: add some tests for label color
2019-05-22 20:22:35 +02:00
ludovicm67
1d94fd1b31
core: format and add some comments for color label
2019-05-22 20:22:34 +02:00
ludovicm67
93bed322fa
core: add color for label
2019-05-22 20:22:33 +02:00
Amine Hilaly
f7ea3421ca
Add ForceLabelChange functionalities
2019-05-05 18:16:10 +02:00
Michael Muré
ef84fda0d4
bug: fix a potential crash with malformed data in EditCommentOperation
...
crashed with indexOutOfRange when the target of the op existed but wasn't a
CreateOperation or a AddCommentOperation
2019-04-17 18:27:55 +02:00
Michael Muré
d862575d80
bug: fix EditCommentOperation targeting the wrong comment
...
fix #126
2019-04-14 14:12:44 +02:00
Amine Hilaly
2a5fbc4dc9
Expose actors and participants in snapshot and bug excerpt
...
Append operations authors to each list on Apply() call
Expose actors and participants in graphql
Add actor/participant query filter and documentation
2019-04-04 00:37:57 +02:00
Michael Muré
0a71e6d269
commands: display comment's id in "git bug comment"
2019-03-28 01:21:41 +01:00
Michael Muré
24d6714dd5
cache: properly push/pull identities and bugs
2019-03-27 21:44:11 +01:00
Michael Muré
a40dcc8a6a
bug: don't make bug actions drive identity actions
...
Turns out it was a mistake, who is suprised ?
It leaks the abstraction and it's generally much cleaner to let the cache layer make both calls
2019-03-25 22:06:01 +01:00
Sladyn
beecd2dbe4
Made requested changes
...
Made changes to the doc files and remaining areas which required updation.
2019-03-02 23:06:55 +05:30
Michael Muré
c235d89d36
commands: show the last modification time in "user"
2019-03-01 22:52:54 +01:00
Michael Muré
46beb4b886
identity: another round of cleanups
2019-03-01 22:52:53 +01:00
Michael Muré
475b7b4c49
a round of cleanup
2019-03-01 22:52:53 +01:00
Michael Muré
71f9290fda
identity: store the times properly
2019-03-01 22:40:27 +01:00
Michael Muré
d2483d83dd
identity: I can compile again !!
2019-03-01 22:40:24 +01:00
Michael Muré
cd7ed7ff9e
identity: add more test for serialisation and push/pull/merge + fixes
2019-03-01 22:40:24 +01:00
Michael Muré
21048e785d
identity: wip
2019-03-01 22:40:23 +01:00
Michael Muré
328a4e5abf
identity: wip push/pull
2019-03-01 22:40:23 +01:00
Michael Muré
56c6147eb6
identity: more refactoring progress
2019-03-01 22:40:22 +01:00
Michael Muré
14b240af8f
identity: more cleaning and fixes after a code review
2019-03-01 22:40:22 +01:00
Michael Muré
d10c76469d
identity: somewhat getting closer !
2019-03-01 22:40:21 +01:00
Michael Muré
844616baf8
identity: more progress and fixes
2019-03-01 22:40:21 +01:00
Michael Muré
06d9c68726
identity: implement the loading from git
2019-03-01 22:35:37 +01:00
Michael Muré
feab9412df
WIP identity in git
2019-03-01 22:35:36 +01:00
Sebastien Devaux
76386720fe
Issue #87 : use same id format function in snapshot.go than in bug.go
2019-01-04 12:27:03 +01:00
Cyril Roelandt
11e04748b9
Allow empty messages in comments.
...
Some bug trackers, like Launchpad, allow messages to be empty (when adding a
file to the bug, for instance).
2018-12-26 23:23:07 +01:00
Michael Muré
96f514168f
repo: minor cleaning
2018-12-25 16:35:37 +01:00
Michael Muré
94b28b68e5
termui: display an explicit placeholder for empty messages
2018-12-23 21:46:47 +01:00
Michael Muré
0d5bd6b18a
graphql: now that it's possible, split the schema for clarity
2018-12-23 17:55:41 +01:00
Michael Muré
1410a1af75
upgrade gqlgen to v0.7.1
2018-12-23 17:11:37 +01:00
Rafael Ascensão
8dcd3d21cd
tests: configure user ident in repos used by tests
...
Some git operations require the user to have an identity configured and
will exit with failure if none is set (or if git can't guess it). As a
direct consequence of this, the test suite may fail depending on the
user local configuration.
The error itself is justified as regular users *should* configure their
identity themselves. However, when building in chrooted environments
it's unlikely the git identity will be set making the test suite fail
unnecessarily.
To prevent such unnecessary failures, let's make a dummy identity for
repos created and used by the test suite.
2018-12-10 22:14:27 +00:00
Michael Muré
82701f8ce7
bug: add a new SetMetadataOperation to retroactively tag operations
2018-10-21 00:55:58 +02:00
Michael Muré
7cb7994cda
github: also pull users email
2018-10-07 18:27:23 +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é
0fe7958aba
bug: message can be empty on edit comment
2018-10-01 23:32:52 +02:00
Michael Muré
6ea6f3614e
bug: in op convenience function, return the new op to be able to set metadata later
2018-10-01 23:31:16 +02:00
Michael Muré
f026f61aaa
bug: custom error for the different error case when loading a bug
2018-10-01 23:27:34 +02:00
Michael Muré
de81ed49e6
bug: add a new no-op operation to store arbitrary metadata on a bug
2018-10-01 21:58:50 +02:00
Michael Muré
a4b218adec
add documentation
2018-10-01 21:47:12 +02:00
Michael Muré
97d9494853
bug: add a test for operations hash
2018-10-01 21:44:42 +02:00
Michael Muré
bda9b01b5a
bug: add a test for OpBase metadata
2018-10-01 11:37:37 +02:00
Michael Muré
3402230a55
bug: use a value embedding for OpBase
2018-10-01 11:37:17 +02:00
Michael Muré
7f86898ef9
bug: use deditated type for all TimelineItem
2018-09-30 17:15:54 +02:00
Michael Muré
037f5bf50b
timeline: various minor improvements
2018-09-30 11:03:42 +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é
5d7c3a76af
bug: add the optional field AvatarUrl to Person
2018-09-25 17:55:20 +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é
82eaceffc1
repo: split the Repo interface to avoid abstraction leak in RepoCache
2018-09-21 18:53:37 +02:00
Michael Muré
d57e2fdd19
commands: fix a panic on merge invalid
2018-09-19 21:45:52 +02:00
Michael Muré
1060acfd53
bug: reclassify some merge error as "invalid" instead of hard error
2018-09-19 21:45:52 +02:00
Michael Muré
8455567900
bug: readBug returns better errors
2018-09-18 23:36:22 +02:00
Michael Muré
0d5998eb67
commands: add a package to handle implicit bug selection
2018-09-18 12:49:16 +02:00
Michael Muré
6f5d433e33
docs & cleaning
2018-09-16 13:50:53 +02:00
Michael Muré
bfb5e96aab
commands: git bug comment now show the comments of a bug
2018-09-15 20:30:31 +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é
fb0f5530f1
catch a lot of error not being checked
2018-09-13 12:43:47 +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é
30d4bc2121
fix english grammar
2018-09-09 20:17:12 +02:00
Michael Muré
13797c3b77
person: add a function to test the matching of a query
2018-09-09 20:14:52 +02:00
Michael Muré
877f3bc21e
status: add a function to parse a status
2018-09-09 20:13:46 +02:00
Michael Muré
6d7e79a277
cache: refactor to handle bug changes during Pull
2018-09-08 14:17:08 +02:00
Michael Muré
61a1173ec3
bug: refactor the Pull code to have the message formating in the upper layers
2018-09-07 17:10:40 +02:00
Michael Muré
d17cd003ed
bug: also update the operations incrementaly in the snapshot
...
fix #39
2018-09-04 20:06:26 +02:00
Michael Muré
e2a0d178cf
bug: make sure the lamport values are set properly after a commit
2018-09-03 21:39:10 +02:00
Michael Muré
6ff02ed842
add some documentation
2018-09-02 15:37:28 +02:00
Michael Muré
7397c94d99
make CLI commands use the cache to lock the repo properly
2018-08-31 17:22:10 +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é
16f55e3f4d
bug: introduce WithSnapshot to maintain incrementally and effitiently a snapshot
2018-08-23 19:15:50 +02:00
Michael Muré
08127d8d1c
bug: add benchmarcks for bug merge
2018-08-19 20:40:50 +02:00
Michael Muré
b58812136e
bug: remove use of the too recent %(refname:lstrip=-1) of git
...
fix #24
2018-08-19 13:58:55 +02:00
Michael Muré
a474093774
bug: add "was" on SetTitleOperation to store what the title was
2018-08-15 22:01:45 +02:00
Michael Muré
4c850b5989
cleanup go imports
2018-08-13 18:39:19 +02:00