Commit Graph

171 Commits

Author SHA1 Message Date
Amine Hilaly
fc09f2a492
[bridge/github] exporter: Add test cases
correct delete repo
improve tests
set user identity
2019-06-24 21:33:15 +02:00
Amine Hilaly
12cc74e22b
[bridge/github] correct label & comment edit mutations bugs 2019-06-24 21:33:06 +02:00
Amine Hilaly
23f2c58e92
[bridge/github] create label: Generate hexColor from label rgba 2019-06-24 21:32:45 +02:00
Amine Hilaly
4ad3d336c6
[bridge/github] use context.WithTimeout on all graphql queries 2019-06-24 21:32:38 +02:00
Amine Hilaly
f70c279c1e
[bridge/github] exporter: Improve error handling
[bridge/github] queries: use api v4 for getLabel / createLabel

[bridge/github] add comments to getIdentityClient
2019-06-24 21:32:11 +02:00
Amine Hilaly
e511f3d885
[misc] update man docs and completion scripts
[cache] BugCache: Fix set metadata raw

[bridge/github] Fix graphql input objects
2019-06-24 21:30:45 +02:00
Amine Hilaly
a58ac69c1f
[bridge/github] exporter: Check bug import origin
[bridge/github] export only allowed bugs
2019-06-24 21:30:26 +02:00
Amine Hilaly
07492fb72a
[bridge/github] importer: tag imported issues with origin metadata
[bridge/github] exporter: correct export signature and cache maps
2019-06-24 21:29:57 +02:00
Amine Hilaly
1d42814166
[bridge/github] cache user token
fix import typo

init tests

verify issue
2019-06-24 21:29:37 +02:00
Amine Hilaly
a121991f55
[bridge/github] exporter: support multiple tokens/clients 2019-06-24 21:28:51 +02:00
Amine Hilaly
cbac482770
[bridge/github] update github bug exporter
- cache repository ID
- cache all comment IDs
2019-06-24 21:27:17 +02:00
Amine Hilaly
6451dd2928
[cache] BugCache: Add set metadata methods
[bridge/github] fix add/remove mutation requests

[bridge/github] iterator: fix typo
2019-06-24 21:26:34 +02:00
Amine Hilaly
2f620e65b8
[bridge/github] exporter: add graphql functionalities
[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
2019-06-24 21:24:04 +02:00
Amine Hilaly
fbb0e836d3
[bridge/github] Add exporter implementation 2019-06-24 21:20:45 +02:00
Michael Muré
54e95cf36f
Merge pull request #171 from MichaelMure/graphql-mutation-relay
Graphql mutation relay
2019-06-23 21:36:42 +02:00
Amine Hilaly
319b648d0f
Naming fixes 2019-06-16 23:02:59 +02:00
Michael Muré
08c0e18ade cache: expose the operation when creating a new bug 2019-06-16 21:04:36 +02:00
Amine Hilaly
f70e775dbd
Store bridge type alongside the other params in the config 2019-06-15 02:33:06 +02:00
Amine Hilaly
8d6bdb6507
rename GITHUB_TOKEN to GITHUB_PRIVATE_TOKEN 2019-06-07 01:43:48 +02:00
Amine Hilaly
a6c8b6b78d
make token visible in configuration process
validate token
global fixes
2019-06-07 01:17:59 +02:00
Amine
c52a467302
Allow cancelling configuration
correct error message

Co-Authored-By: Michael Muré <batolettre@gmail.com>
2019-06-05 01:40:37 +02:00
Amine Hilaly
7923d6c942
Skip test validateUsername in travis environment 2019-06-03 20:33:33 +02:00
Amine Hilaly
ebebdfdf35
add unit tests for launchpad bridge configuration
add tests for validateUsername in Github bridge
panic when compile regex fail
2019-05-30 12:50:21 +02:00
Amine Hilaly
45d47a0966
Update configuration process and add unit tests
Update launchpad bridge
2019-05-29 22:58:01 +02:00
Amine
5ea0cb138b
Update documentation and function naming
Co-Authored-By: Michael Muré <batolettre@gmail.com>
2019-05-29 22:58:01 +02:00
Amine Hilaly
5911cb96c0
Change github regex for better matching
Remove '.git' suffixes from URLs
Change token scope for public repositories to `repo:public_repo`
2019-05-29 22:58:01 +02:00
Amine Hilaly
99b6107487
Disable bridgeConfigure sort flags option
rename `validateGithubURLRemotes` to `getValideGithubRemoteURLs`
2019-05-29 22:58:01 +02:00
Amine Hilaly
1c146a1b67
Change client default timeout value to 60 seconds
add named return values for
easier validation for 2FA codes
2019-05-29 22:58:01 +02:00
Amine
1022b9e536
Update flags descriptions
Enhance printing in prompt

Co-Authored-By: Michael Muré <batolettre@gmail.com>
2019-05-29 22:58:01 +02:00
Amine Hilaly
43758a14fd
Add warning messages for launchpad-preview
fix --target flag description
improve comments
2019-05-29 22:58:01 +02:00
Amine Hilaly
0de2bd92b0
Launchpad bridge configuration from BridgeParams Project and URL
Improve Github config comments
2019-05-29 22:58:01 +02:00
Amine Hilaly
46ce1059b6
Update Github bridge configuration
Use GetRemotes in `promptURL` to suggest repo urls
Add `promptTokenOptions` to select token a configuration option
2019-05-29 22:58:01 +02:00
Amine Hilaly
70268ff4ec
Change keyUser to keyOwner in Github bridge 2019-05-29 22:58:01 +02:00
Amine Hilaly
6deb6ec469
Github bridge updates
Use bridge params to configure the bridge
2019-05-29 22:58:01 +02:00
Michael Muré
c7abac388a repo: refactor how test repo are created/cleaned 2019-05-27 21:14:55 +02:00
Amine Hilaly
a6d85fbdbb
improve github importer and iterator
drop  and use query variables instead
initialize timeline query variables in the constructor
improve naming and add comments to public functions
2019-05-23 14:21:44 +02:00
Amine Hilaly
458f4da101
fix imported bugs count 2019-05-23 14:21:44 +02:00
Amine Hilaly
2a97056124
introduce nextValidIssueEdit and nextValidCommentEdit to escape empty Diffobjects
calling nextValidEdit functions directly after a new query (Fixing a bug where capacity=2)
2019-05-23 14:21:44 +02:00
Amine Hilaly
12f6fd61be
call NextIssueEdit from ensureIssue 2019-05-23 14:21:44 +02:00
Amine Hilaly
b6dfd45602
Fix importer/exporter design errors 2019-05-23 14:21:44 +02:00
Amine Hilaly
2e17f37175 Add unicode control characters test case
Move `cleanupText` to utils/text/transform.go
`text.Cleanup`: removing unicode control characters except for those allowed by `text.Safe`

Add golang.org/x/text dependencies

fix text.Cleanup

Fix import panic
2019-05-05 18:16:10 +02:00
Amine Hilaly
537eddb978 Fix import bug 2019-05-05 18:16:10 +02:00
Amine Hilaly
7d02963372 Add old importer comments in the iterator
Test operation authors
Fix typo in test repo url
2019-05-05 18:16:10 +02:00
Michael Muré
eec17050f1 github: simplify and improve the import test 2019-05-05 18:16:10 +02:00
Amine Hilaly
390ca86724 Improve naming and functions signatures
expose `NewIterator` in `github` package
remove `exist` in tests cases
skip tests when env var GITHUB_TOKEN is not given
2019-05-05 18:16:10 +02:00
Amine Hilaly
f7ea3421ca Add ForceLabelChange functionalities 2019-05-05 18:16:10 +02:00
Amine Hilaly
0d976f66e8 Add importer tests
Changes to Importer and exporter interface
Improve importer
Fix extra edits bug
2019-05-05 18:16:10 +02:00
Amine Hilaly
3bcaa35b5d Integrate iterator with importer 2019-05-05 18:16:10 +02:00
Amine Hilaly
c8ad4dbfd9 Add github iterator
use `goto` in .Next* functions
Update iterator.go
2019-05-05 18:16:10 +02:00
Michael Muré
b6bed784e5
github: fix potential bug due to var aliasing 2019-03-01 23:07:24 +01:00
Michael Muré
268f6175fe
github: simplify some code 2019-03-01 22:48:50 +01:00
Michael Muré
e100ee9f10
github: fix 3 edge-case failures 2019-03-01 22:48:50 +01:00
Michael Muré
864eae0d6b
identity: work on higher level now, cache, first two identity commands 2019-03-01 22:40:25 +01:00
Michael Muré
844616baf8
identity: more progress and fixes 2019-03-01 22:40:21 +01:00
Michael Muré
bdbe9e7e82
identity: more progress and fixes 2019-03-01 22:35:37 +01:00
Michael Muré
7cb7994cda
github: also pull users email 2018-10-07 18:27:23 +02:00
Michael Muré
64133ee5ba
github: deal with the deleted user case where github return a null actor 2018-10-06 11:55:16 +02:00
Michael Muré
558e149b25
github: handle the case where no diff is available for a comment edition 2018-10-05 17:53:06 +02:00
Michael Muré
f464363213
github: explain better what happen with the user credentials 2018-10-03 21:07:58 +02:00
Michael Muré
b5025a51a2
github: incremental import for labels, title edition, status changes 2018-10-02 13:16:07 +02:00
Michael Muré
892c25aa25
github: incremental import of comments + editions 2018-10-02 13:02:16 +02:00
Michael Muré
8ec1dd0926
github: working incremental + comment history for the first comment 2018-10-01 23:34:45 +02:00
Michael Muré
a4b218adec
add documentation 2018-10-01 21:47:12 +02:00
Michael Muré
879e147e2b
bridge: first working github importer 2018-09-25 19:10:38 +02:00
Michael Muré
c4a207622a
github: query most of the data 2018-09-24 19:22:32 +02:00
Michael Muré
c86e7231b2
bridge: validate config before use 2018-09-24 17:21:24 +02:00
Michael Muré
061e83d4b4
commands: add "bridge rm" 2018-09-24 16:24:38 +02:00
Michael Muré
5e8fb7ec50
bridge: big refactor and cleanup 2018-09-24 15:25:15 +02:00
Michael Muré
921cd18cf9
bridge: better interfaces, working github configurator 2018-09-21 18:53:44 +02:00
Michael Muré
6a575fbf48
bridge: make github 2FA work 2018-09-21 14:38:44 +02:00
Michael Muré
1c86a66cbe
bridge: add the beginning of a github importer 2018-09-21 12:54:48 +02:00