Commit Graph

175 Commits

Author SHA1 Message Date
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
Josh Bialkowski
cd889572f7 codereview #2: some cleanup, correct use of nothing-events
* return error, don't panic
* skipping status export is an error
* use switch in config.go
* move PromptPassword to input
* move client construction into getIdentityClient
* use non-pointer context throughout client since it is an interface
* remove some TODOs
* don't emit multiple nothing-events, just one per bug only if nothing
  happened.
* rename EditBody to EditCreateComment
* add configuration notes about additional values
* store bug id map in a dictionary in the config
* some fixes from testing
2019-12-18 07:42:16 -08:00
Josh Bialkowski
eff830bdcb Implement jira bridge 2019-12-18 07:42:13 -08:00
Michael Muré
283e97111b bug: make sure there is no Operation's hash collision 2019-11-19 19:51:18 +01:00
Michael Muré
ed2ac793e9
bug: use NeedCommit() in the interface, drop HasPendingOp() 2019-11-19 00:28:06 +01:00
Michael Muré
a9b32e6bda
repo: esthetism rename 2019-11-19 00:27:40 +01:00
Michael Muré
0b2a99ab96
bug: don't forget to assign the new packs after a merge
fix #235
2019-11-19 00:26:38 +01:00
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