Commit Graph

162 Commits

Author SHA1 Message Date
Josh Bialkowski
eff830bdcb Implement jira bridge 2019-12-18 07:42:13 -08:00
Michael Muré
da6591e480 cmd: "user create" only assign the user identity if not set 2019-12-10 20:13:49 +01:00
amine
8b5685bb99 bridge/github: importer corectly emit events 2019-11-19 19:54:07 +01:00
amine
618f896f66 cache: update RepoCache and identity to use new repository Config 2019-11-01 22:01:21 +01:00
Sebastien Devaux
7e123fbfca issue 178: fetch the repo dir with rev-parse --git-dir
Since is returns the .git dir directly, it is not more needed to
concatenate .git.
2019-08-24 22:42:25 +02:00
Amine Hilaly
5ca326af83 bridge/core: add context.Context to ImportAll and ExportAll signatures
bridge/core: add ImportResult objects to stream import events

bridge/core: launchpad support asynchronous import

bridge/github: cancellable export and import functions

bridge/gitlab: cancellable export and import functions

commands: bridge pull/push gracefull kill

bridge/github: fix github import

bridge/github: use simple context for imports

bridge/core: name parameters in interfaces

github/core: Add EventError to export and import events types

bridge/gitlab: add context support in gitlab requests functions

bridge/gitlab: remove imported events count from importer logic

bridge/github: remove imported events count from importer logic

bridge/github: add context support in query and muration requets

bridge/github: fix bug duplicate editions after multiple calls

bridge/core: import import and export events String methods
bridge/gitlab: fix error handling in note import events

commands/bridge: Add statistics about imports and exports

bridge/gitlab: properly handle context cancellation

bridge/github: improve error handling

bridge: break iterators on context cancel or timeout

bridge: add context timeout support

bridge: improve event formating and error handling

commands: handle interrupt and switch cases

bridge/github: add export mutation timeouts

bridge: fix race condition bug in the github and gitlab importers
bridge/github: improve context error handling
2019-08-18 00:14:22 +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
Amine Hilaly
e511f3d885
[misc] update man docs and completion scripts
[cache] BugCache: Fix set metadata raw

[bridge/github] Fix graphql input objects
2019-06-24 21:30:45 +02:00
Amine Hilaly
6451dd2928
[cache] BugCache: Add set metadata methods
[bridge/github] fix add/remove mutation requests

[bridge/github] iterator: fix typo
2019-06-24 21:26:34 +02:00
Michael Muré
9f4da4ce4f
cache: consistently use "ref" to fetch a repository 2019-06-23 21:28:01 +02:00
Michael Muré
bc03a89aa7 fix tests 2019-06-16 21:40:45 +02:00
Michael Muré
b2f8572c44 graphql: change mutations to respect the Relay specification
https://facebook.github.io/relay/graphql/mutations.htm

This specification also allow to expose a mutationId for fire and forget,
as well as the created operation.
2019-06-16 21:29:49 +02:00
Michael Muré
08c0e18ade cache: expose the operation when creating a new bug 2019-06-16 21:04:36 +02:00
Sladyn
2c4c0132bf
Add GetRemotes functionalities 2019-05-29 22:58:01 +02:00
Michael Muré
d564e37b31 repository: add ReadConfigBool and ReadConfigString functions 2019-05-27 21:39:55 +02:00
Michael Muré
c7abac388a repo: refactor how test repo are created/cleaned 2019-05-27 21:14:55 +02:00
Amine Hilaly
f7ea3421ca Add ForceLabelChange functionalities 2019-05-05 18:16:10 +02:00
Michael Muré
cc3a21acb6 doc: add an architecture overview 2019-04-18 02:48:27 +02:00
Michael Muré
5eeeae7cdf
commands: fix ls not displaying the new Identities properly 2019-04-11 20:04:44 +02:00
Amine Hilaly
1d00ded250 implement identityExcerpt match method and integrate it into filters
Update docs
2019-04-05 16:56:08 +02:00
Amine Hilaly
98169d5ad1 Support query with identity ID and truncated ID 2019-04-05 15:29:14 +02:00
Amine Hilaly
57f0c2f25d improve docs 2019-04-05 00:01:08 +02:00
Amine Hilaly
682da55271 Improve actor/participant query filters
Lower case identity login
2019-04-04 17:21:40 +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é
96987bf6ae
cache: add a push/pull test 2019-04-02 22:01:42 +02:00
Sladyn
1d758f9f64 cache/filter.go: Fix and match for labels
Fixed filter query for multiple labels from
`OR` to `AND` according to github conventions.

Fixed https://github.com/MichaelMure/git-bug/issues/115
2019-03-31 16:09:29 +05:30
Michael Muré
24d6714dd5 cache: properly push/pull identities and bugs 2019-03-27 21:44:11 +01:00
Michael Muré
d27e3849b8 cache: add basic unit testing 2019-03-25 22:06:01 +01:00
Michael Muré
408654514e
cache: make the title filter case insensitive 2019-03-03 15:23:20 +01:00
Sladyn
6fee8a4442
Commit to chane the description of function 2019-03-03 10:38:33 +05:30
Sladyn
f1d5ca4ff4 Rebased and updated. 2019-03-02 23:58:15 +05:30
Sladyn
0c42a7c33e Rectified Tests 2019-03-02 23:06:55 +05:30
Sladyn
e825525a08 Fixed filter.go
GolangCI complained about an if return else return statement which is fixed in this commit.
2019-03-02 23:06:55 +05:30
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
Sladyn
43e56692e8 ls.go:git bug ls should be faster
Added `Title` to BugExcerpt
Added `TitleFilter` to `filter.go`
Used BugExcerpt in `ls` command to improve performance.

Closes https://github.com/MichaelMure/git-bug/issues/98
2019-03-02 23:04:45 +05:30
Michael Muré
bad05a4f3d
cache: better API to access excerpts 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é
7a80d8f849
commands: add a super-fast "user ls" command 2019-03-01 22:48:51 +01:00
Michael Muré
8bba6d1493
cache: fix ResolveIdentityImmutableMetadata byt storing metadata in IdentityExcerpt 2019-03-01 22:48:50 +01:00
Michael Muré
e100ee9f10
github: fix 3 edge-case failures 2019-03-01 22:48:50 +01:00
Michael Muré
b8caddddc7
identity: some UX cleanup 2019-03-01 22:40:28 +01:00
Michael Muré
71f9290fda
identity: store the times properly 2019-03-01 22:40:27 +01:00
Michael Muré
54f9838f0a
identity: working identity cache 2019-03-01 22:40:26 +01:00
Michael Muré
947ea63522
identity: wip caching 2019-03-01 22:40:26 +01:00
Michael Muré
864eae0d6b
identity: work on higher level now, cache, first two identity commands 2019-03-01 22:40:25 +01:00
Michael Muré
da558b05ef
identity: all tests green o/ 2019-03-01 22:40:24 +01:00
Michael Muré
d2483d83dd
identity: I can compile again !! 2019-03-01 22:40:24 +01:00
Michael Muré
328a4e5abf
identity: wip push/pull 2019-03-01 22:40:23 +01:00
Michael Muré
14b240af8f
identity: more cleaning and fixes after a code review 2019-03-01 22:40:22 +01:00
Michael Muré
844616baf8
identity: more progress and fixes 2019-03-01 22:40:21 +01:00
Michael Muré
bdbe9e7e82
identity: more progress and fixes 2019-03-01 22:35:37 +01:00
Michael Muré
feab9412df
WIP identity in git 2019-03-01 22:35:36 +01:00
Michael Muré
0aefae6fcc
cache: fix unhandled error 2019-02-28 00:53:36 +01:00
Michael Muré
d380b3c16b cache: output the build info message on stderr to avoid breaking scripts 2019-02-20 21:58:29 +01:00
Michael Muré
8ec1dd0926
github: working incremental + comment history for the first comment 2018-10-01 23:34:45 +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é
be59fe0d67
cache: also index the first op metadata 2018-10-01 21:55:41 +02:00
Michael Muré
a4b218adec
add documentation 2018-10-01 21:47:12 +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é
061e83d4b4
commands: add "bridge rm" 2018-09-24 16:24:38 +02:00
Michael Muré
666586c5b9
repo: add functions to read/write git config 2018-09-24 15:21:34 +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é
6e44759413
commands: add a "ls-labels" command that output valid labels 2018-09-21 14:02:05 +02:00
Michael Muré
63d0b8b72f
cache: relay early the merge events 2018-09-19 21:45:52 +02:00
Michael Muré
760d077134
cache: don't ignore error when building the cache 2018-09-18 23:36:45 +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é
7bec0b1f13
bug: add a data validation process to avoid merging incorrect operations 2018-09-15 13:15:00 +02:00
Michael Muré
b168d71fc1
cache: attempt to future-proof the cache file 2018-09-13 17:59:02 +02:00
Michael Muré
f569e6aacc
operations: return a more convenient array of result for label changes 2018-09-13 12:20:28 +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é
3605887345 reorganize package for a more idomatic go 2018-09-11 22:14:46 +02:00
Michael Muré
7b05983c19
graphql: AllBugs now accept a query 2018-09-11 19:46:38 +02:00
Michael Muré
9cbd5b4ee1
termui: allow to change the bug query 2018-09-11 19:28:32 +02:00
Michael Muré
d1c5015eed
cache: resolved id by prefix using the cache instead of reading bugs 2018-09-11 17:11:16 +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é
9bb980e9de
ls: support expressing a query with flags as well 2018-09-10 18:18:00 +02:00
Michael Muré
c8239a990b
cache: doc & cleaning 2018-09-10 12:47:05 +02:00
Michael Muré
ece9e39461
cache: add the alias "state" for the qualifier "status"
both are commonly expected
2018-09-10 12:46:07 +02:00
Michael Muré
0dc705336e
cache: properly parse and clean qualifier with multi word 2018-09-10 11:12:22 +02:00
Michael Muré
28ee08af0d
doc: document the query DSL 2018-09-09 22:16:00 +02:00
Michael Muré
09e097e1bf
cache: combine sorting and filtering into a query with its micro-DSL 2018-09-09 20:22:27 +02:00
Michael Muré
21f9840e99
BugExcerpt: also store bug labels 2018-09-09 20:20:24 +02:00
Michael Muré
a38c1c23eb
cache: implement the filtering 2018-09-09 20:19:50 +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é
c0d3b4b032
cache: fix missed code path that should update the cache
fix #36
2018-09-04 18:20:21 +02:00
Michael Muré
0728c0050d
cache: provide a generic bug sorting function 2018-09-02 16:36:48 +02:00
Michael Muré
919f98efdb
cache: provide sorted (id, creation, edit) list of bugs 2018-09-02 15:46:43 +02:00
Michael Muré
90a45b4c09
cache: rename RootCache into MultiRepoCache
Underline the fact that it's fine to use RepoCache alone
2018-09-02 15:45:14 +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é
0514edad1a
cache: maintain, write and load from disk bug excerpts 2018-08-23 21:24:57 +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é
6d7dc465d8
cache: lock the repo with a pid file; automatic cleaning 2018-08-21 19:13:08 +02:00
Michael Muré
e2f4b027c9
termui: implement push/pull 2018-08-12 21:09:30 +02:00