Commit Graph

152 Commits

Author SHA1 Message Date
Amine Hilaly
f3d8da1075
bridge/core: add tokenStdin field to bridgeParams
commands: move tokenStdin handling logic to bridge.Configure
2019-09-02 09:44:00 +02:00
Amine Hilaly
46f9573444
bridge/github: move cleaners to where is called 2019-09-01 00:04:01 +02:00
Amine Hilaly
be94780315
bridge/github: recover terminal state in password prompts
commands: error if a token is provide but not the bridge name and target
2019-08-31 23:02:20 +02:00
Amine
65d7ce7c05
commands: enhance flag description
bridge/github: improve configuration logic

Co-Authored-By: Michael Muré <batolettre@gmail.com>
2019-08-31 23:02:20 +02:00
Amine Hilaly
0381400bfd
commands: read token from stdin in bridge configuration
bridge: improve bridge config validation
2019-08-31 23:02:20 +02:00
Amine Hilaly
c8fdaab50a
bridge/gitlab: remove gitlab url checking before export 2019-08-24 13:22:23 +02:00
Amine Hilaly
22960159e9 bridge/gitlab: exporter ignore issues imported from or exported to different projects 2019-08-23 15:16:58 +02:00
Amine Hilaly
63e7b08628 bridge/gitlab: improve exporter error handling and label change operations 2019-08-23 01:55:57 +02:00
Amine Hilaly
514dc30c20 bridge/gitlab: fix edit comment request and remove label functionalities 2019-08-19 23:56:50 +02:00
Amine Hilaly
f1be129d75 bridge/gitlab: rebase and correct exporter 2019-08-19 13:50:48 +02:00
Amine Hilaly
c7e932e5a9 bridge/gitlab: add exporter e2e tests
bridge/gitlab: fix export bugs and rebase
2019-08-19 10:38:09 +02:00
Amine Hilaly
f1c65a9f86 bridge/gitlab: add exporter implementation 2019-08-19 10:38:09 +02:00
Amine Hilaly
4a4e238d1f bridge/github: add exporter test cases for label change bug 2019-08-19 00:44:35 +02:00
Amine Hilaly
d19b8e1a09 bridge/github: fix name case sensitivity in retrieving and creating labels using github graphql api 2019-08-19 00:44:33 +02:00
Amine Hilaly
df412430ab bridge/github: improve error handling and Nothing events
vendor: add package golang.org/x/sync/errgroup
2019-08-18 23:50:13 +02:00
Amine Hilaly
501a931080 bridge/gthub: use errgroup.Group instead of sync.WaitGroup 2019-08-18 00:14:22 +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
Amine
cf960bc7a5
Merge pull request #193 from MichaelMure/immutableID
Future proof the operation's ID
2019-08-13 16:47:24 +02:00
Michael Muré
c809d37152
more hash-->id fixes 2019-08-13 16:23:05 +02:00
Michael Muré
99b5c58d43 finish the refactoring for the dedicated identifier type 2019-08-12 16:12:14 +02:00
Amine Hilaly
ca5e40e523
bridge/gitlab: importer handle mentions in other issue and merge requests 2019-08-11 00:08:26 +02:00
Michael Muré
a0dfc20211 github: fix bad refactor 2019-08-08 19:06:13 +02:00
Michael Muré
612a29b031 fix everything following the hash-->id change 2019-08-08 19:06:13 +02:00
Amine Hilaly
e678e81bc7
bridge/gitlab: fix bug when running import multiple times 2019-07-31 19:22:23 +02:00
Amine Hilaly
5327983b7a
bridge/gitlab: handle other notes cases 2019-07-26 16:35:38 +02:00
Michael Muré
9ecbcb1cf6
Merge pull request #179 from MichaelMure/gitlab-support
Add gitlab bridge configuration and importer
2019-07-23 19:50:58 +02:00
Amine Hilaly
29fdd37ce6
bridge/github: add getNewTitle tests 2019-07-23 19:49:53 +02:00
Amine Hilaly
0c8f1c3a58
bridge/gitlab: fix comment edition target hash in the import
bridge/gitlab: global changes, typo fixes, comments addition
2019-07-23 18:40:10 +02:00
Amine Hilaly
0329bfdf44
bridge/gitlab: change validateProjectURL signature
bridge/gitlab: code cleanup
2019-07-23 17:29:53 +02:00
Amine Hilaly
b82ef04452
fix index out of range panic in github configuration 2019-07-23 17:20:42 +02:00
Amine
d098a96407
bridge/gitlab: global code and comment updates
Co-Authored-By: Michael Muré <batolettre@gmail.com>
2019-07-23 17:18:04 +02:00
Amine Hilaly
ece2cb1262
bridge/gitlab: improve tests and errors
bridge/gitlab: global fixes
2019-07-23 17:18:04 +02:00
Amine Hilaly
b27647c7a0
bridge/gitlab: Fix test project path
bridge/gitlab: update comments
2019-07-23 17:18:04 +02:00
Amine Hilaly
b18507836c
bridge/gitlab: add gitlab client default timeout
bridge/gitlab: fix import bug
2019-07-23 17:18:04 +02:00
Amine Hilaly
5e2eb5000b
bridge/gitlab: remove exporter 2019-07-23 17:18:04 +02:00
Amine Hilaly
b9a5338049
bridge/gitlab: move constants to gitlab.go 2019-07-23 17:18:04 +02:00
Amine Hilaly
7726bbdbcf
bridge/gitlab: add bridge config tests 2019-07-23 17:18:04 +02:00
Amine Hilaly
ce3a2788ab
bridge/gitlab: fix note error handling bug
bridge/gitlab: remove unused functions
2019-07-23 17:18:04 +02:00
Amine Hilaly
05a3aec1a8
bridge/gitlab: add import unit tests 2019-07-23 17:18:04 +02:00
Amine Hilaly
76a389c93d
bridge/gitlab: make resolve error unique within the importer 2019-07-23 17:18:04 +02:00
Amine Hilaly
e012b6c622
bridge/gitlab: check notes system field 2019-07-23 17:18:04 +02:00
Amine Hilaly
ffb8d34e4f
bridge/gitlab: check identity cache in ensurePerson 2019-07-23 17:18:04 +02:00
Amine Hilaly
8b6c896369
bridge/gitlab: complete importer 2019-07-23 17:18:04 +02:00
Amine Hilaly
53f99d3b85
bridge/gitlab: add import note utilities
bridge/gitlab: set default capacity to 20
2019-07-23 17:18:04 +02:00
Amine Hilaly
89227f92b5
bridge/gitlab: add iterator LabelEvents 2019-07-23 17:18:04 +02:00
Amine Hilaly
b512108ac7
bridge/gitlab: fix iterator bugs and enhacements 2019-07-23 17:18:04 +02:00
Amine Hilaly
612264a00f
bridge/gitlab: fix iterator out of index bug 2019-07-23 17:18:04 +02:00
Amine Hilaly
6c02f0951d
bridge/gitlab: prompt only for user provided token 2019-07-23 17:18:04 +02:00
Amine Hilaly
aea88180d3
bridge/gitlab: add method to query all project labels 2019-07-23 17:18:04 +02:00
Amine Hilaly
5144525649
bridge/gitlab: remove request token methodes 2019-07-23 17:18:04 +02:00