Giter Site home page Giter Site logo

Comments (3)

jeffwidman avatar jeffwidman commented on June 3, 2024

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.

jaraco avatar jaraco commented on June 3, 2024

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.

jeffwidman avatar jeffwidman commented on June 3, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.