Michael Muré
432a816dde
Merge remote-tracking branch 'origin/master' into cheshirekow-jira
2020-02-15 03:07:45 +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é
e9aff2a2a1
Merge remote-tracking branch 'origin/master' into cheshirekow-jira
2020-02-14 22:56:59 +01:00
Michael Muré
34083de0df
auth: refactor and introduce Login and LoginPassword, salt IDs
2020-02-12 23:37:57 +01:00
Michael Muré
bd7b50bc86
github/gitlab: many fixes and improvments at the config step
2020-02-10 01:22:01 +01:00
Michael Muré
b3d3612393
Merge remote-tracking branch 'origin/master' into cheshirekow-jira
2020-02-09 20:23:38 +01:00
Michael Muré
9b1aaa032d
bridge: fix 2 uncatched errors
2020-02-08 22:08:35 +01:00
Michael Muré
a335725cc5
bridge: fix wrong error used
2020-02-08 22:04:51 +01:00
Michael Muré
646fd681ff
it compiles \o/
2020-02-08 17:19:57 +01:00
Michael Muré
74e9114410
more more wip
2020-02-08 17:19:57 +01:00
Michael Muré
ae2f942ef9
more wip
2020-02-08 17:18:28 +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
Josh Bialkowski
f15206e7b1
* Fix git config reader can't read values with spaces
...
* Add NewImportWarning for things that aren't exactly errors.
Use this for unhandled changelog events.
* Add NewExportWarning for things that aren't exactly errors.
Use this for un-exportable status changes.
2020-01-04 13:04:15 +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
Josh Bialkowski
3384d1b26b
codereview #6 : don't fail one warning
...
* presence of an error in the import event doesn't indicate failure
2019-12-18 07:42:16 -08:00
Josh Bialkowski
4e64c834e2
codereview #5 : reverse-map and ImportWarning
...
* Fix git config reader can't read values with spaces
* Add bug-id-revmap config option for the reverse map, and use this
in the importer
* Add NewImportWarning for things that aren't exactly errors.
Use this for unhandled changelog events.
* Add NewExportWarning for things that aren't exactly errors.
Use this for un-exportable status changes.
* Strip newlines from titles on import
2019-12-18 07:42:16 -08:00
amine
f6b4830c0b
bridge/gitlab: support self-hosted GitLab instance
2019-12-10 21:05:55 +01:00
amine
58c0e5aac9
auth: Correctly cast configs[configKeyKind]
2019-12-09 17:16:44 +01:00
Michael Muré
4c6d33e48e
type the CredentialKind values
...
Co-Authored-By: Amine <hilalyamine@gmail.com>
2019-12-09 16:43:30 +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
06abb5a531
bridge/gitlab: add gitlab bridge configuration
2019-11-24 18:04:48 +01:00
amine
da2d7970cd
bridge/core: add LoadTokensWithTarget and LoadOrCreateToken functions
...
bridge/github: global fixes
2019-11-24 14:38:44 +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é
76b612936d
bridge: use the target as well in the token ID
2019-11-19 21:23:03 +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é
67c82f4a2d
bridge/core: document import/export events
2019-11-19 19:13:15 +01:00
Michael Muré
f8cf3fea03
cli: add bridge token show
2019-11-10 15:50:56 +01:00
Michael Muré
e2445edcb9
bridge: various improvement on the global token PR
2019-11-10 14:53:40 +01:00
amine
45653bd31d
token: regenerate documentation and fix imports
2019-11-09 14:55:27 +01:00
amine
bbbf3c6c7f
bridge/core: store token in the global config and replace scopes with create date
2019-11-09 14:52:20 +01:00
amine
4dc7b8b06e
tokens: use entity.Id as id type
2019-11-09 13:26:52 +01:00
amine
baefa687b5
tokens: use a hash as token identifier instead of the token it self
2019-11-09 13:26:52 +01:00
Michael Muré
3984919a3d
bridge: various cleanups
2019-11-09 13:26:48 +01:00
Amine
3433fa5def
commands: use token value as identifier
2019-11-09 13:25:07 +01:00
Amine
967e168333
bridge/core: use token id instead of name
...
commands: add bridge token rm/add
commands: improve bridge token printing
2019-11-09 13:25:07 +01:00
Amine
56551b6a22
bridge/core: comment token functionalities
2019-11-09 13:24:44 +01:00
Amine
a6ce534403
bridge/core: Implement token functionalities
2019-11-09 13:13:13 +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
514dc30c20
bridge/gitlab: fix edit comment request and remove label functionalities
2019-08-19 23:56:50 +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
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
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