diff options
author | Josh Bialkowski <josh.bialkowski@gmail.com> | 2019-12-04 22:50:35 -0800 |
---|---|---|
committer | Josh Bialkowski <josh.bialkowski@gmail.com> | 2019-12-18 07:42:16 -0800 |
commit | a59aaebc7e2fb6b1d14d6637cad7522463c0b25f (patch) | |
tree | e0f480918a4b16e0ac336e9ac46e6f3ce2007742 /bridge/jira/export.go | |
parent | cd889572f7870a62758240b323a9086a76c5120a (diff) | |
download | git-bug-a59aaebc7e2fb6b1d14d6637cad7522463c0b25f.tar.gz |
codreview #3: two credential types, more fixes
* Support both token and session credential types
* use getTimeDervedID in export.go
* keyOrigin -> core.KeyOrigin
* fix one indentation
* remove project key from operation metadata
* fix missing credentials codepath if not using sidecar
Diffstat (limited to 'bridge/jira/export.go')
-rw-r--r-- | bridge/jira/export.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bridge/jira/export.go b/bridge/jira/export.go index 8d8d326d..02ec5e14 100644 --- a/bridge/jira/export.go +++ b/bridge/jira/export.go @@ -171,7 +171,7 @@ func (self *jiraExporter) exportBug( author := snapshot.Author // skip bug if it was imported from some other bug system - origin, ok := snapshot.GetCreateMetadata(keyOrigin) + origin, ok := snapshot.GetCreateMetadata(core.KeyOrigin) if ok && origin != target { out <- core.NewExportNothing( b.Id(), fmt.Sprintf("issue tagged with origin: %s", origin)) @@ -342,7 +342,7 @@ func (self *jiraExporter) exportBug( // so we use the comment ID plus the timestamp of the update, as // reported by JIRA. Note that this must be consistent with the importer // during ensureComment() - id = fmt.Sprintf("%s-%d", comment.ID, comment.Updated.Unix()) + id = getTimeDerivedID(comment.ID, comment.Updated) } case *bug.SetStatusOperation: |