Comments (3)
Yeah, this one is a tough.
Ideally we could retrieve the email address of the BB user and find the GH account associated with that email, but I'm not aware of any API endpoints that let us easily extract that info.
It is an easy fix to check if the GH user exists, and if it 404's to state that the GH handle of the user is unknown.
Beyond that, I think it's better to include links using the naiive assumption that BB and GH urls are the same. While certainly not always a correct assumption, it is correct most of the time. The utility of having those links (even with the occasional incorrect one) is much higher than not having any links at all... which is what will happen most of the time if we require the user to generate a custom username mapping.
I already had a note in the Readme mentioning this assumption, so the fix here is to just add the 404 check of the BB username.
from bitbucket-issue-migration.
Agree on all points. One thing I considered was simple adding "guess" or "maybe" or "?" Indicating that it's not a verified match.
Another check might be to confirm that the full names or emails match... Even if the correct link cannot be detected, it's better to omit the link than provide an incorrect one.
Thanks for considering this.
from bitbucket-issue-migration.
One thing I considered was simple adding "guess" or "maybe" or "?" Indicating that it's not a verified match.
I'm in favor of this--we should be making this assumption explicit. The verbiage needs to be both clear and concise. Everything that I've experimented with feels either confusing or wordy. What do you think about "Github (best guess)" or "Github (unverified)" for the anchor text?
Another check might be to confirm that the full names or emails match...
Both of these aren't 100% accurate, so I wouldn't exclude the link even if they don't match. However, if they do match, then that's probably good enough that we don't need to mark the Github link as '(unverified)'.
Is there a relatively straightforward way to retrieve a user's email from BB and GH?
I'm not aware of one except by looking for a commit by the user, then checking the commit to see their email. Feels overly complicated to get an email this way just so we can remove '(unverified)'.
Even if the correct link cannot be detected, it's better to omit the link than provide an incorrect one.
Absolutely, as long as we know for certain it's incorrect.
from bitbucket-issue-migration.
Related Issues (20)
- Support for attachments? HOT 12
- Repeated failures verifying github issue import HOT 6
- Proposal: Truncate all labels to 50 characters HOT 1
- dry-run crashes in milestone code HOT 1
- shorter/prettier style for gh issues HOT 5
- Doesn't work for private Github repos HOT 3
- Cannot install dependencies because venv tool deprecated. HOT 1
- KeyError assuming "username" key HOT 3
- Failed to POST due to unexpected HTTP status code: 410 HOT 2
- Import crashes due to name clash between default labels and imported labels HOT 1
- Github rejects comments where the body is just a newline
- Creates invalid BitBucket user links for users without username HOT 2
- Read user mapping from file HOT 1
- Properly attribute comments to users HOT 3
- Permission denied if issues are private HOT 3
- Support bitbucket priorities
- Does not support images within issue comments
- No such file or directory: '' HOT 3
- Older issues that reference newer issues don't automatically link
- Does this close the Bitbucket issues? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bitbucket-issue-migration.