MBS-7617: Changing a URL's link type on a series edit page doesn't trigger any validation
mwiencek
Branch: mwiencek/musicbrainz-server:mbs-7617
mwiencek/musicbrainz-server:mbs-7617
Branch: metabrainz/musicbrainz-server:beta
metabrainz/musicbrainz-server:beta
Merged
#1059 · Created  · Last updated
Description
The problem was just that the validationRules weren't updated for series link types. I noticed that all the validation functions for Wikipedia/Wikidata were identical anyway, so I just defined one function for each and set everything in those categories to them. For discogs I set the the series validation to use the same as labels, so only discogs.com/label urls are accepted (which are all I see so far, not sure if there are gonna be exceptions).
The problem was just that the validationRules weren't updated for series link types. I noticed that all the validation functions for Wikipedia/Wikidata were identical anyway, so I just defined one function for each and set everything in those categories to them. For discogs I set the the series validation to use the same as labels, so only discogs.com/label urls are accepted (which are all I see so far, not sure if there are gonna be exceptions).