Michael Muré
dc21ad0892
use regex.MustCompile instead of dealing with the error
2020-02-23 14:23:34 +01:00
Michael Muré
e231b6e839
bridges: pass the context to Init for when a client build process needs it
2020-02-15 15:46:36 +01:00
Michael Muré
87b97ca4b2
bridges: more refactor and cleanup
2020-02-15 13:45:14 +01:00
Michael Muré
fe3d5c95e4
bridges: massive refactor
...
- automatic flag validation and warning
- generalized prompt
- cleanups
2020-02-15 02:55:19 +01:00
Michael Muré
646fd681ff
it compiles \o/
2020-02-08 17:19:57 +01:00
Michael Muré
26f0152384
WIP
2020-02-08 17:18:28 +01:00
Josh Bialkowski
a785bcdad6
codereview #6 : don't fail one warning
...
* presence of an error in the import event doesn't indicate failure
2020-01-04 13:04:21 +01:00
Michael Muré
864d3ed335
bridge: allow to configure and pull without having set a user first
...
- init() only the importer or exporter as required
- assign a "default user" user Id to credentials at creation if no user has been set
- "bridge auth": also display the user
- "bridge auth show": adapt to a potential "default user" user Id
- "bridge configure": allow to run without a user set
- "bridge pull": allow to run without a user set
- "user adopt": replace "default user" by the actual user id when run
2019-12-25 23:25:39 +01:00
amine
f6b4830c0b
bridge/gitlab: support self-hosted GitLab instance
2019-12-10 21:05:55 +01:00
Michael Muré
b92adfcb5f
bridge: huge refactor to accept multiple kind of credentials
2019-12-08 21:28:27 +01:00
Michael Muré
1a1e313f30
bridge: move export event handling to the CLI
2019-11-26 20:46:00 +01:00
amine
bf7583862d
bridge/core: load token value in ensureInit
...
bridge/core: add more token functionalities
2019-11-23 19:20:19 +01:00
Michael Muré
e01cefff98
Merge pull request #247 from MichaelMure/bridge-origin
...
bridge: move keyOrigin to core package
2019-11-19 19:25:43 +01:00
amine
8ffe2a9b03
bridge/launchpad: add missing metadata
...
bridge: use a specific key for origin metadata
2019-11-19 19:16:16 +01:00
Michael Muré
e2445edcb9
bridge: various improvement on the global token PR
2019-11-10 14:53:40 +01:00
Michael Muré
57e23c8ada
bridge: improvement on the import resume feature
2019-11-03 17:23:05 +01:00
amine
614bc5a2c5
commands: support bridge imports after a given date and resumable imports
2019-11-03 17:21:27 +01:00
amine
60c6bd360f
bridge: use new repository configuration interface
...
commands/webui: use new repository configuration interface
2019-11-01 22:44:11 +01:00
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
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 Hilaly
0329bfdf44
bridge/gitlab: change validateProjectURL signature
...
bridge/gitlab: code cleanup
2019-07-23 17:29:53 +02:00
Michael Muré
dc289876c6
bridge: detect when trying to configure a bridge with a name already taken
2019-07-07 12:15:01 +02:00
Michael Muré
5b1a8cdefa
bridge: use a single KeyTarget constant for all bridges
2019-07-07 11:10:58 +02:00
Amine
93e731fd0d
[bridge/github] improve comments and documentation
...
[bridge/github] improve error handling and tests
Co-Authored-By: Michael Muré <batolettre@gmail.com>
2019-07-05 18:46:59 +02:00
Amine Hilaly
1f365b2369
[core] Implement ExportResults
...
Use ExportResult chan to send export events
Remove exportedBugs and exportedLabels
2019-06-30 15:42:45 +02:00
Amine Hilaly
316b4ea6c2
LoadBridge create a bridge using loadConfig
...
update loadConfig signature
2019-06-17 00:19:01 +02:00
Amine Hilaly
319b648d0f
Naming fixes
2019-06-16 23:02:59 +02:00
Amine Hilaly
f70e775dbd
Store bridge type alongside the other params in the config
2019-06-15 02:33:06 +02:00
Michael Muré
d69dcce806
Merge pull request #153 from A-Hilaly/bridge-configuration
...
[Breaking] Bridge configuration enhancements
2019-06-07 02:53:21 +02:00
Amine Hilaly
da3281c474
Sort bridges list
2019-06-06 01:05:38 +02:00
Amine Hilaly
f124df7e73
changes to the BridgeImpl Interface
...
Add bridge params
Change bridge.Configure signature
2019-05-29 22:58:01 +02:00
Amine Hilaly
0d976f66e8
Add importer tests
...
Changes to Importer and exporter interface
Improve importer
Fix extra edits bug
2019-05-05 18:16:10 +02:00
Michael Muré
b59623a835
bridge: fix typo
2019-03-01 22:40:29 +01:00
Michael Muré
feab9412df
WIP identity in git
2019-03-01 22:35:36 +01:00
Michael Muré
e171448902
bridge: simplify regex
2018-12-04 23:43:57 +01:00
Michael Muré
a133cdffaf
bridge: slightly better error message
2018-12-04 23:43:22 +01:00
Michael Muré
64133ee5ba
github: deal with the deleted user case where github return a null actor
2018-10-06 11:55:16 +02:00
Michael Muré
a4b218adec
add documentation
2018-10-01 21:47:12 +02:00
Michael Muré
c86e7231b2
bridge: validate config before use
2018-09-24 17:21:24 +02:00
Michael Muré
2282cbb595
commands: add "bridge pull"
2018-09-24 17:11:50 +02:00
Michael Muré
061e83d4b4
commands: add "bridge rm"
2018-09-24 16:24:38 +02:00
Michael Muré
5e8fb7ec50
bridge: big refactor and cleanup
2018-09-24 15:25:15 +02:00
Michael Muré
921cd18cf9
bridge: better interfaces, working github configurator
2018-09-21 18:53:44 +02:00
Michael Muré
1c86a66cbe
bridge: add the beginning of a github importer
2018-09-21 12:54:48 +02:00