mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +03:00
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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user