Performer disambiguation and aliases (#3113)

* Refactor performer relationships
* Remove checksum from performer
* Add disambiguation, overhaul aliases
* Add disambiguation filter criterion
* Improve name matching during import
* Add disambiguation filtering in UI
* Include aliases in performer select
This commit is contained in:
WithoutPants
2022-12-01 13:54:08 +11:00
committed by GitHub
parent d2395e579c
commit 4daf0a14a2
72 changed files with 2283 additions and 993 deletions

View File

@@ -14,14 +14,14 @@ func (r *updateRecord) set(destField string, v interface{}) {
r.Record[destField] = v
}
// func (r *updateRecord) setString(destField string, v models.OptionalString) {
// if v.Set {
// if v.Null {
// panic("null value not allowed in optional string")
// }
// r.set(destField, v.Value)
// }
// }
func (r *updateRecord) setString(destField string, v models.OptionalString) {
if v.Set {
if v.Null {
panic("null value not allowed in optional string")
}
r.set(destField, v.Value)
}
}
func (r *updateRecord) setNullString(destField string, v models.OptionalString) {
if v.Set {
@@ -32,7 +32,7 @@ func (r *updateRecord) setNullString(destField string, v models.OptionalString)
func (r *updateRecord) setBool(destField string, v models.OptionalBool) {
if v.Set {
if v.Null {
panic("null value not allowed in optional int")
panic("null value not allowed in optional bool")
}
r.set(destField, v.Value)
}