imported bugs: resolve bridge-specific URIs and references to git-bug IDs when viewing

Labels: area/bridge kind/feature priority/awaiting-more-evidence

Timeline

sudoforge opened

right now, when importing bugs from a bridge (say, github), URIs like github.com/git-bug/git-bug/issues/000 and #000 are not able to be correlated with a refs/bug object. in an ideal world, we would show git-bug IDs in place of these -- transparently rewriting the references.

it would be great to handle this translation as part of the import/export workflow, such that

  • a reference to a refs/bug object is translated to the bridge object on export, and
  • a reference to the bridge object is translated to the refs/bug object on import

today, we store the bridge issue id in an operation's metadata.<name>, e.g. metadata.github-id and metadata.gitlab-id (these are internal IDs, not the "friendly" ID you see in the UI like #123). we could potentially use this at render time to work out the strings to replace, or we could expand the metadata with raw values relevant, like the "friendly" id and url.

sudoforge added label area/bridge

sudoforge added label kind/feature

sudoforge added label priority/awaiting-more-evidence

sudoforge changed the title from imported bugs: resolve bridge-specific URIs and references to git-bug IDs when viewing to imported bugs: resolve bridge-specific URIs and references to git-bug IDs when viewing