Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MBS-9608: Update URL cleanup to handle new Bandsintown’s URL format #604

Merged
merged 5 commits into from Jan 23, 2018

Conversation

yvanzo
Copy link
Contributor

@yvanzo yvanzo commented Jan 18, 2018

MBS-9608: Update Bandsintown URL cleanup to the new format

Bandsintown recently changed its default URL pattern: It uses one-letter prefix (instead of no prefix for artist and type name for event and venue) and numeric ID everywhere (instead of artist name).
While Bandinstown correctly redirect URLs using the old format, MusicBrainz doesn’t accept entering URLs in the new format yet.

This patch updates Bandsintown URL cleanup to handle both URL formats from user input, to convert input URLs in old format to the new format, and to validate URLs in the new format only.

Additionally, it normalizes Bandsintown URLs to use the new default subdomain ẁww of bandsintown.com. It should prevent potential further reopening of MBS-9559.

Bandsintown recently changed its default URL pattern:  It uses
one-letter prefix (instead of no prefix for artist and type name for
event and venue) and numeric ID everywhere (instead of artist name).
Bandinstown correctly redirect URLs using the old format, but
MusicBrainz does not accept entering URLs in the new format yet.

This patch updates Bandsintown URL cleanup to handle both URL
formats from user input, to convert input URLs in old format to the
new format, and to validate URLs in the new format only.
@yvanzo yvanzo changed the title MBS-9608: Update URL cleanup for Bandsintown venues MBS-9608: Update URL cleanup to handle new Bandsintown’s URL format Jan 18, 2018
@yvanzo yvanzo force-pushed the mbs-9608-bandsintown-venues branch from ea8a355 to 0a1e6dd Compare January 18, 2018 10:59
Bandsintown redesigned its website and changed its default domain
name.  Although redirects work (more or less according to MBS-9559),
newly entered URLs should not artificially require it.

This patch normalize newly entered/edited Bandsintwon URLs to the
new default `www.bandsintown.com` instead of `bandsintown.com`.
It also prevents any potential further resurgence of MBS-9559.
Input relationship type substitutes to expected relationship type to
test only valid entity types with user-selected relationship type.
@yvanzo
Copy link
Contributor Author

yvanzo commented Jan 18, 2018

Failing tests from t/script/NotifyOfNewReleases.t in build #806 are unrelated to this change.

@yvanzo yvanzo requested a review from mwiencek January 22, 2018 10:55
@yvanzo
Copy link
Contributor Author

yvanzo commented Jan 22, 2018

@brainzbot, retest this please.

@yvanzo yvanzo merged commit b9d82e8 into metabrainz:master Jan 23, 2018
@yvanzo yvanzo deleted the mbs-9608-bandsintown-venues branch July 26, 2018 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant