From ac459828aec5b97567ff1c2f03fd324f6c6e811f Mon Sep 17 00:00:00 2001 From: Kendall Nelson Date: Tue, 20 Mar 2018 15:49:12 -0700 Subject: [PATCH] Duplicating Users at Migration Time The old login.launchpad.net service has been deprecated and replaced by/merged with the login.ubuntu.com service. All out existing users with old OpenID URLs were manually updated to the new provider hostname but, in at least some cases, the Launchpad API returns the old URLs for queried accounts. In an effort to avoid future duplication of StoryBoard accounts on import, edit the link to match the ubuntu login link early enough that we still check that it doesn't already exist before adding it. Change-Id: Ib3202522d948b2c12cc85dfc12ed5f7f2daf31a9 --- storyboard/migrate/launchpad/writer.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/storyboard/migrate/launchpad/writer.py b/storyboard/migrate/launchpad/writer.py index bd08caa1..63c6f4e4 100644 --- a/storyboard/migrate/launchpad/writer.py +++ b/storyboard/migrate/launchpad/writer.py @@ -116,6 +116,8 @@ class LaunchpadWriter(object): display_name = lp_user.display_name user_link = lp_user.web_link + user_link.replace('login.launchpad.net', 'login.ubuntu.com') + # Resolve the openid. if user_link not in self._openid_map: try: