Alexander Scharinger
d7f555b437
Github bridge: try again in case of web API error
2021-03-15 08:39:08 +01:00
Alexander Scharinger
93b14c509b
Remove maps containing channels.
...
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.
2021-03-15 07:15:00 +01:00
Alexander Scharinger
9a8e487613
Fix errors: deadlock and empty titles
2021-03-15 07:14:40 +01:00
Alexander Scharinger
689b640bbb
Deal with github bridge import rate limit
2021-02-28 21:03:10 +01:00
Matthias Simon
34e6f3c224
Fix comparison mix-up in gitlab importer
2021-02-07 17:01:59 +01:00
Michael Muré
1871f09345
Merge pull request #534 from MichaelMure/gh-bridge-pull-fix
...
Fix github bridge import
2021-02-01 11:46:31 +01:00
Alexander Scharinger
1ccbf2cb63
Add comments
2021-01-28 14:42:20 +01:00
Alexander Scharinger
62bcfd985d
Fix bug
2021-01-26 12:07:26 +01:00
Alexander Scharinger
2d6f34acad
Integrate new Github Bridge import
2021-01-24 21:37:44 +01:00
Alexander Scharinger
2c0cf10527
Add GraphQL github-bridge query for comment edits
2021-01-24 21:31:35 +01:00
Alexander Scharinger
955c6fa7d4
Add GraphQL github timeline query and iterator
2021-01-24 21:31:27 +01:00
Alexander Scharinger
799341baf2
Add issue edit iterator
2021-01-24 21:31:15 +01:00
Alexander Scharinger
824cefd2eb
Add issue iterator
2021-01-24 21:31:05 +01:00
Alexander Scharinger
d08f01c8c3
Add GraphQL github issue query
2021-01-24 21:30:44 +01:00
Alexander Scharinger
0baf65cd64
WIP: Pinpoint some of the reasons for bug #385
...
Work in progress. The github bridge contains a bug documented in issue #385 .
This commit shows what is the problem. There might be more problems. I have
changed the GraphQL query for timeline items and there are much less wrong
imports now. (Are there any malformed imports left?) I would like to rework the
entire bridge/github/iterator in the near future in order to create a reliable
fix for this bug.
2020-12-12 23:57:46 +01:00
Michael Muré
52ef5e96f5
add github actions
2020-12-08 15:03:56 +01:00
Michael Muré
9daa8ad04d
github: minor cleanups
2020-11-22 14:04:47 +01:00
Alexander Scharinger
eded1f10c4
Change return type from map to struct
2020-11-18 09:18:32 +01:00
rng-dynamics
09a845855f
Apply suggestions from code review
...
Co-authored-by: Michael Muré <batolettre@gmail.com>
2020-11-18 09:18:32 +01:00
Alexander Scharinger
1b889a9198
Revision of Github bridge device authorization grant
2020-11-18 09:18:32 +01:00
Alexander Scharinger
dfa3a6d849
Replace Github authorization endpoint by device authorization grant
...
Fix issue #484
2020-11-18 09:18:32 +01:00
vince
4f31e24467
cleanup title on gitlab import
2020-10-28 09:44:08 +08:00
6543
4143c3d176
Vendor: updage xanzy/go-gitlab to v0.38.2 ( #473 )
...
* build(deps): bump github.com/xanzy/go-gitlab from 0.33.0 to 0.38.2
* migrate
* refactor
2020-10-25 01:05:34 +02:00
Michael Muré
1a0c86a12d
repo: use go-git in more places, fix push
2020-10-04 19:56:16 +02:00
Michael Muré
3ecbf8db28
bridge: store credentials in the Keyring instead of the git config
2020-09-29 20:42:21 +02:00
Michael Muré
0590de9f04
gitlab: skip the broken test as "known broken" :(
2020-07-26 11:35:08 +02:00
Michael Muré
3fcdd7ec80
update go-gitlab
2020-07-26 11:28:51 +02:00
Michael Muré
88ad7e606f
repository: remove tie to Bug, improved and reusable testing
...
- allow the creation of arbitrary Lamport clocks, freeing the way to new entities and removing Bug specific (upper layer) code.
- generalize the memory-only and persisted Lamport clocks behind a common interface
- rework the tests to provide reusable testing code for a Repo, a Clock, a Config, opening a path to add a new Repo implementation more easily
- test previously untested components with those new tests
Note: one problem found during this endeavor is that `identity.Version` also need to store one time + Lamport time for each other Entity (Bug, config, PR ...). This could possibly done without breaking change but it would be much easier to wait for https://github.com/MichaelMure/git-bug-migration to happen.
2020-06-26 19:14:22 +02:00
Michael Muré
aab3a04d0c
bug: harmonize how time are used, fix some issues in command special formats
...
This assume that the convertion from time.Time <--> Unix timestamp is lossless which seems to be.
2020-06-25 23:18:17 +02:00
Michael Muré
903549cadf
gitlab: fix iterator (paginate with first index 1) and avoid the trailing API call
2020-04-04 12:42:08 +02:00
Michael Muré
f4ca533fe1
gitlab: refactor the iterator, fix bugs
...
Notably, properly reset sub iterators when changing to the next issue
2020-03-28 21:23:18 +01:00
Michael Muré
38b42bc867
jira/gitlab: fix a bad login handling in the configurator
2020-03-28 20:10:52 +01:00
Michael Muré
aec81b7039
launchpad: fix a nil value access
2020-03-28 18:41:14 +01:00
Michael Muré
a8666bfeb8
launchpad: tighten the bug matching
2020-03-28 17:08:58 +01:00
Michael Muré
fae3b2e7db
github: tighten the import matching
2020-03-28 17:08:27 +01:00
Michael Muré
4397766800
jira: tag bugs with the base URL, tighten the matching
2020-03-28 17:07:57 +01:00
Michael Muré
8389df0711
gitlab: match bugs on IDs + baseURL because the URL is not stable
2020-03-28 17:06:33 +01:00
amine
49285b03c9
gitlab: fix bugs import url
2020-03-15 19:32:32 +01:00
Michael Muré
0b559bacd5
Merge pull request #344 from MichaelMure/github-lowercase-login
...
github: fix matching cred/identity with badly cased login
2020-02-29 17:26:33 +01:00
Michael Muré
a90954ae1a
github: fix tests
2020-02-29 17:21:46 +01:00
Michael Muré
fe38af05a8
github: correct casing for user provided login
2020-02-29 15:04:48 +01:00
Michael Muré
893de4f5c0
identity: bring back the login to hold that info from bridges (purely informational)
2020-02-25 21:35:57 +01:00
Michael Muré
8ef6438fb4
Merge pull request #341 from MichaelMure/bridges-default-login
...
bridge: record the login used during the configure and use it as default credential
2020-02-23 19:20:45 +01:00
Michael Muré
f87d63b3c6
Merge pull request #331 from MichaelMure/webui/mutations
...
Webui: add comments
2020-02-23 14:49:09 +01:00
Michael Muré
dc21ad0892
use regex.MustCompile instead of dealing with the error
2020-02-23 14:23:34 +01:00
Michael Muré
0cebe1e57e
bridge: record the login used during the configure and use it as default credential
...
fix #338
2020-02-23 14:20:54 +01:00
Josh Bialkowski
4827d3f9ab
metaKeyJiraOperationId -> metaKeyJiraDerivedId
2020-02-17 13:37:57 -08:00
Josh Bialkowski
d349137ea5
fix usage of newIdentityRaw
2020-02-17 13:13:25 -08:00
Josh Bialkowski
bbd31adbff
Fix jira bridge config didn't save credentials or store URL metadata
2020-02-17 12:43:42 -08:00
Michael Muré
218d460590
webui: style SetStatus
2020-02-17 13:17:44 +01:00