aboutsummaryrefslogtreecommitdiffstats
path: root/bridge/github/import_mediator.go
Commit message (Collapse)AuthorAgeFilesLines
* github: minor cleanupsMichael Muré2021-04-091-15/+15
|
* Improve feedback for user when Github rate limitingAlexander Scharinger2021-04-081-4/+4
| | | | | | | | The Github bridge itself should not write anything. This commit removes code writing to stdout and itroduces an event `ImportEventRateLimiting` to `core.ImportResult` in order to inform about a rate limiting situation of the Github GraphQL API. Now the communication with the user is delegated to the various user interfaces.
* Github bridge: stop sleep-timer on SIGINTAlexander Scharinger2021-03-271-2/+8
|
* Github bridge: RefactorAlexander Scharinger2021-03-221-218/+113
|
* Github bridge: send message to user when waitingAlexander Scharinger2021-03-181-47/+144
| | | | | | When the Github GraphQL API rate limit is exhausted print a message at the bottom of the terminal so the user knows why the import has been paused.
* Github bridge: try again in case of web API errorAlexander Scharinger2021-03-151-1/+23
|
* Remove maps containing channels.Alexander Scharinger2021-03-151-78/+42
| | | | | | | | | The old implementation of the github bridge used maps to store several channels holding data obtained from the Github API. Removing the maps and simply packing data and channels together in a struct and passing it through one single channel makes the program simpler in terms of concurrency and, additionally, enables the garbage collector to free the memory gradually without any additional provisions.
* Fix errors: deadlock and empty titlesAlexander Scharinger2021-03-151-156/+214
|
* Deal with github bridge import rate limitAlexander Scharinger2021-02-281-0/+394