in models/v3/msgs/subject.go [28:43]
func subject(res []types.NotificationResource) string {
if len(res) == 0 {
return ""
}
max := asSlice(res[0].ArmResource.ResourceID())
for i := 1; i < len(res); i++ {
max = maxSharedPrefix(max, asSlice(res[i].ArmResource.ResourceID()))
}
if len(max) <= 1 { // only the tenant-level scope was shared or no scopes were shared
return "/"
}
return max[0].String()
}