| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
|
|
|
| |
- reduce boilerplace necessary to implement an operation
- consolidate what an operation is in the core, which in turn pave the way for a generic cache layer mechanism
- avoid the previously complex unmarshalling process
- support operation metadata from the core
- simplified testing
|
|
|
|
|
|
|
|
|
|
| |
I believe the issue was twofold:
When done importing, the calling context is likely still valid, so if the output channel is not read enough and reach capacity, some event producer down the line can be blocked trying to send in that channel. When closing it, this send is still trying to proceed, which is illegal in go.
In rateLimitHandlerClient, there was a need to 2 different type of output channel: core.ExportResult and ImportEvent. To do so, the previous code was using a single channel type RateLimitingEvent and a series of goroutines to read/cast/send to the final channel. This could result in more async goroutine being stuck trying to send in an at-capacity channel. Instead, the code now use a simple synchronous callback to directly push to the final output channel. No concurrency needed anymore and the code is simpler.
Any of those fixes could have resolved the data race, but both fixes is more correct.
|
|
|
| |
Unified handling of rate limiting of github graphql api
|
| |
|
| |
|
|
|
|
| |
This assume that the convertion from time.Time <--> Unix timestamp is lossless which seems to be.
|
|
|
|
|
|
| |
credential
fix #338
|
| |
|
|
|
|
|
|
| |
- automatic flag validation and warning
- generalized prompt
- cleanups
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
bridge: use a specific key for origin metadata
|
| |
|
|
|
|
| |
using github graphql api
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
[bridge/core] rename `EventStatus` to `ExportEvent`
|
|
|
|
|
|
| |
[bridge/github] improve error handling and tests
Co-Authored-By: Michael Muré <batolettre@gmail.com>
|
|
|
|
|
| |
Use ExportResult chan to send export events
Remove exportedBugs and exportedLabels
|
|
|
|
|
|
|
|
|
|
| |
[bug] add snapshot.HasParticipant(id string)
[bug] add snapshot.HasAnyParticipant(ids ...string)
[bug] add snapshot.HasActor(id string)
[bug] add snapshot.HasAnyActor(ids ...string)
[bridge/github] improve comments
[bridge/github] exporter tests: register deleteRepository in cleaner
[bridge/github] tests rebase
|
|
|
|
|
|
|
|
|
|
|
|
| |
General improvements
Co-Authored-By: Michael Muré <batolettre@gmail.com>
empty array check
an empty array is not nil
Co-Authored-By: Michael Muré <batolettre@gmail.com>
|
|
|
|
|
|
|
|
|
|
| |
[bridge/github] exporter tests: add more test cases and global tests
[bridge/github] rename export_query to export_mutation
[bridge/github] exporter: Log number of exported issues and labels
[bridge/github] Improve comments
|
|
|
|
|
|
| |
correct delete repo
improve tests
set user identity
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
[bridge/github] queries: use api v4 for getLabel / createLabel
[bridge/github] add comments to getIdentityClient
|
|
|
|
|
|
| |
[cache] BugCache: Fix set metadata raw
[bridge/github] Fix graphql input objects
|
|
|
|
| |
[bridge/github] export only allowed bugs
|
|
|
|
| |
[bridge/github] exporter: correct export signature and cache maps
|
|
|
|
|
|
|
|
| |
fix import typo
init tests
verify issue
|
| |
|
|
|
|
|
| |
- cache repository ID
- cache all comment IDs
|
|
|
|
|
|
| |
[bridge/github] fix add/remove mutation requests
[bridge/github] iterator: fix typo
|
|
|
|
|
|
|
|
|
| |
[bridge/github] graphql mutation objects
[bridge/github] github create and get labels
[bridge/github] repository node_id query
[bridge/github] exporter: ignore old bugs and old operations
[bridge/github] add update labels/status functionalities
[bridge/github] exporter: cache labels while exporting
|
|
|