code: func updateDeviceReportFields(from models.DeviceReport, to *models.DeviceReport, w http.ResponseWriter) error {
  	if from.Device != "" {
  		to.Device = from.Device
  		if err := validateDevice(to.Device, w); err != nil {
  			return err
  		}
  	}
  	if from.Action != "" {
  		to.Action = from.Action
  	}
  	if from.Expected != nil {
  		to.Expected = from.Expected
  		// TODO: Someday find a way to check the value descriptors
  	}
  	if from.Name != "" {
  		to.Name = from.Name
  	}
  	if from.Origin != 0 {
  		to.Origin = from.Origin
  	}
  
  	return nil
  }
docs: // Update the relevant fields for the device report