aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/gitlab/import.go
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #571 from 5nord/add-new-gitlab-iteratorMichael Muré2022-02-011-107/+67
|\ | | | | [gitlab] Add new iterator with state change events
| * gitlab: order events on the flyMichael Muré2021-12-051-1/+7
| |
| * gitlab: Add new iterator with state change eventsMatthias Simon2021-04-231-107/+61
| | | | | | | | | | | | | | | | | | Retrieving events is spread across various various Gitlab APIs. This makes importing and sorting Gitlab events by time quite complicated. This commit replaces the old iterators with a goroutine/channel-based iterator, which merges the individual Gitlab API streams into a single (sorted) event stream.
* | Bump github.com/xanzy/go-gitlab from 0.48.0 to 0.50.0dependabot[bot]2021-05-241-1/+1
|/ | | | | | | | | Bumps [github.com/xanzy/go-gitlab](https://github.com/xanzy/go-gitlab) from 0.48.0 to 0.50.0. - [Release notes](https://github.com/xanzy/go-gitlab/releases) - [Changelog](https://github.com/xanzy/go-gitlab/blob/master/releases_test.go) - [Commits](https://github.com/xanzy/go-gitlab/compare/v0.48.0...v0.50.0) Signed-off-by: dependabot[bot] <support@github.com>
* make sure every text input is safe and validatedMichael Muré2021-04-171-21/+8
| | | | fix #630
* deal with the previous changesMichael Muré2021-02-141-0/+1
|
* Fix comparison mix-up in gitlab importerMatthias Simon2021-02-071-2/+2
|
* cleanup title on gitlab importvince2020-10-281-3/+7
|
* gitlab: refactor the iterator, fix bugsMichael Muré2020-03-281-2/+3
| | | | Notably, properly reset sub iterators when changing to the next issue
* gitlab: match bugs on IDs + baseURL because the URL is not stableMichael Muré2020-03-281-1/+6
|
* identity: bring back the login to hold that info from bridges (purely ↵Michael Muré2020-02-251-0/+1
| | | | informational)
* bridge: record the login used during the configure and use it as default ↵Michael Muré2020-02-231-1/+2
| | | | | | credential fix #338
* bridges: pass the context to Init for when a client build process needs itMichael Muré2020-02-151-1/+1
|
* bridges: massive refactorMichael Muré2020-02-151-5/+5
| | | | | | - automatic flag validation and warning - generalized prompt - cleanups
* github/gitlab: many fixes and improvments at the config stepMichael Muré2020-02-101-1/+5
|
* gitlab also compileMichael Muré2020-02-081-16/+1
|
* bridge: allow to configure and pull without having set a user firstMichael Muré2019-12-251-0/+4
| | | | | | | | | | - 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
* bridge/gitlab: support self-hosted GitLab instanceamine2019-12-101-1/+5
|
* bridge: huge refactor to accept multiple kind of credentialsMichael Muré2019-12-081-6/+30
|
* bridge/gitlab: add gitlab bridge configurationamine2019-11-241-1/+1
|
* bridge/gitlab: importer and exporter correctly emit NothingEventsamine2019-11-191-5/+4
|
* bridge/launchpad: add missing metadataamine2019-11-191-17/+17
| | | | bridge: use a specific key for origin metadata
* bridge/gitlab: fix edit comment request and remove label functionalitiesAmine Hilaly2019-08-191-1/+1
|
* bridge/github: improve error handling and Nothing eventsAmine Hilaly2019-08-181-2/+1
| | | | vendor: add package golang.org/x/sync/errgroup
* bridge/core: add context.Context to ImportAll and ExportAll signaturesAmine Hilaly2019-08-181-60/+96
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Merge pull request #193 from MichaelMure/immutableIDAmine2019-08-131-13/+12
|\ | | | | Future proof the operation's ID
| * more hash-->id fixesMichael Muré2019-08-131-1/+1
| |
| * finish the refactoring for the dedicated identifier typeMichael Muré2019-08-121-2/+2
| |
| * fix everything following the hash-->id changeMichael Muré2019-08-081-12/+11
| |
* | bridge/gitlab: importer handle mentions in other issue and merge requestsAmine Hilaly2019-08-111-1/+3
|/
* bridge/gitlab: fix bug when running import multiple timesAmine Hilaly2019-07-311-7/+18
|
* bridge/gitlab: handle other notes casesAmine Hilaly2019-07-261-1/+9
|
* bridge/github: add getNewTitle testsAmine Hilaly2019-07-231-6/+6
|
* bridge/gitlab: fix comment edition target hash in the importAmine Hilaly2019-07-231-58/+45
| | | | bridge/gitlab: global changes, typo fixes, comments addition
* bridge/gitlab: change validateProjectURL signatureAmine Hilaly2019-07-231-3/+3
| | | | bridge/gitlab: code cleanup
* bridge/gitlab: improve tests and errorsAmine Hilaly2019-07-231-6/+8
| | | | bridge/gitlab: global fixes
* bridge/gitlab: Fix test project pathAmine Hilaly2019-07-231-0/+4
| | | | bridge/gitlab: update comments
* bridge/gitlab: add gitlab client default timeoutAmine Hilaly2019-07-231-1/+1
| | | | bridge/gitlab: fix import bug
* bridge/gitlab: move constants to gitlab.goAmine Hilaly2019-07-231-5/+1
|
* bridge/gitlab: fix note error handling bugAmine Hilaly2019-07-231-1/+1
| | | | bridge/gitlab: remove unused functions
* bridge/gitlab: make resolve error unique within the importerAmine Hilaly2019-07-231-19/+16
|
* bridge/gitlab: check identity cache in ensurePersonAmine Hilaly2019-07-231-0/+15
|
* bridge/gitlab: complete importerAmine Hilaly2019-07-231-2/+309
|
* bridge/gitlab: init new bridgeAmine Hilaly2019-07-231-0/+30