HOR-1319 "Registros corruptos: Crea 2 registros de un Elemento..." SOLVED
Issue:
Registros corruptos: Crea 2 registros de un Elemento con 2 Tareas, se debe borrar los q no se usan
Cause:
- El problema se presenta cuando se tiene la combinacion gateway-to-gateway y al hacer (por ejemplo) un movimiento
de algun elemento del proceso y posteriormente guardarlo. Esto ocasiona que se creen registros corruptos en las tablas
TASK, ROUTE y ELEMENT_TASK_RELATION
- Este problema fue ocasionado por:
> Commit: 137a4ea2237573a54964414f477e13a4f5c76a5d, Card: PMLOCAL-3840
El commit 137a4ea2237573a54964414f477e13a4f5c76a5d tambien origino los siguientes issues:
> Commit: 6bb8ad6cc05a3d8e671baa5d358b409c1f2710f6, Card: HOR-421
> Commit: 9e8030904a4c0f4f670fc159c9220fead10a5859, Card: PMLOCAL-4270
> Commit: d3296132bf13f81aee12c0f7696d5952d79ee323, Card: HOR-1383
> Commit: b58dc888c1f54d981fc329c3a35cb4294785e0f7, Card: HOR-1358
Solution:
Se revirtieron los cambios de los commits involucrados, con el siguiente detalle:
- Commit 137a4ea2237573a54964414f477e13a4f5c76a5d: Se revirtio el cambio; se soluciono el problema problema planteado en el card
- Commit 6bb8ad6cc05a3d8e671baa5d358b409c1f2710f6: Se revirtio el cambio; se soluciono el problema problema planteado en el card
- Commit 9e8030904a4c0f4f670fc159c9220fead10a5859: Se revirtio el cambio
- Commit d3296132bf13f81aee12c0f7696d5952d79ee323: Se revirtio el cambio
- Commit b58dc888c1f54d981fc329c3a35cb4294785e0f7: Se revirtio el cambio; se soluciono el problema planteado segun el analisis del commit
This commit is contained in:
@@ -57,12 +57,6 @@ abstract class BaseElementTaskRelation extends BaseObject implements Persistent
|
||||
*/
|
||||
protected $tas_uid;
|
||||
|
||||
/**
|
||||
* The value for the element_uid_dest field.
|
||||
* @var string
|
||||
*/
|
||||
protected $element_uid_dest = '';
|
||||
|
||||
/**
|
||||
* Flag to prevent endless save loop, if this object is referenced
|
||||
* by another object which falls in this transaction.
|
||||
@@ -132,17 +126,6 @@ abstract class BaseElementTaskRelation extends BaseObject implements Persistent
|
||||
return $this->tas_uid;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the [element_uid_dest] column value.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getElementUidDest()
|
||||
{
|
||||
|
||||
return $this->element_uid_dest;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the value of [etr_uid] column.
|
||||
*
|
||||
@@ -253,28 +236,6 @@ abstract class BaseElementTaskRelation extends BaseObject implements Persistent
|
||||
|
||||
} // setTasUid()
|
||||
|
||||
/**
|
||||
* Set the value of [element_uid_dest] column.
|
||||
*
|
||||
* @param string $v new value
|
||||
* @return void
|
||||
*/
|
||||
public function setElementUidDest($v)
|
||||
{
|
||||
|
||||
// Since the native PHP type for this column is string,
|
||||
// we will cast the input to a string (if it is not).
|
||||
if ($v !== null && !is_string($v)) {
|
||||
$v = (string) $v;
|
||||
}
|
||||
|
||||
if ($this->element_uid_dest !== $v || $v === '') {
|
||||
$this->element_uid_dest = $v;
|
||||
$this->modifiedColumns[] = ElementTaskRelationPeer::ELEMENT_UID_DEST;
|
||||
}
|
||||
|
||||
} // setElementUidDest()
|
||||
|
||||
/**
|
||||
* Hydrates (populates) the object variables with values from the database resultset.
|
||||
*
|
||||
@@ -302,14 +263,12 @@ abstract class BaseElementTaskRelation extends BaseObject implements Persistent
|
||||
|
||||
$this->tas_uid = $rs->getString($startcol + 4);
|
||||
|
||||
$this->element_uid_dest = $rs->getString($startcol + 5);
|
||||
|
||||
$this->resetModified();
|
||||
|
||||
$this->setNew(false);
|
||||
|
||||
// FIXME - using NUM_COLUMNS may be clearer.
|
||||
return $startcol + 6; // 6 = ElementTaskRelationPeer::NUM_COLUMNS - ElementTaskRelationPeer::NUM_LAZY_LOAD_COLUMNS).
|
||||
return $startcol + 5; // 5 = ElementTaskRelationPeer::NUM_COLUMNS - ElementTaskRelationPeer::NUM_LAZY_LOAD_COLUMNS).
|
||||
|
||||
} catch (Exception $e) {
|
||||
throw new PropelException("Error populating ElementTaskRelation object", $e);
|
||||
@@ -528,9 +487,6 @@ abstract class BaseElementTaskRelation extends BaseObject implements Persistent
|
||||
case 4:
|
||||
return $this->getTasUid();
|
||||
break;
|
||||
case 5:
|
||||
return $this->getElementUidDest();
|
||||
break;
|
||||
default:
|
||||
return null;
|
||||
break;
|
||||
@@ -556,7 +512,6 @@ abstract class BaseElementTaskRelation extends BaseObject implements Persistent
|
||||
$keys[2] => $this->getElementUid(),
|
||||
$keys[3] => $this->getElementType(),
|
||||
$keys[4] => $this->getTasUid(),
|
||||
$keys[5] => $this->getElementUidDest(),
|
||||
);
|
||||
return $result;
|
||||
}
|
||||
@@ -603,9 +558,6 @@ abstract class BaseElementTaskRelation extends BaseObject implements Persistent
|
||||
case 4:
|
||||
$this->setTasUid($value);
|
||||
break;
|
||||
case 5:
|
||||
$this->setElementUidDest($value);
|
||||
break;
|
||||
} // switch()
|
||||
}
|
||||
|
||||
@@ -649,10 +601,6 @@ abstract class BaseElementTaskRelation extends BaseObject implements Persistent
|
||||
$this->setTasUid($arr[$keys[4]]);
|
||||
}
|
||||
|
||||
if (array_key_exists($keys[5], $arr)) {
|
||||
$this->setElementUidDest($arr[$keys[5]]);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -684,10 +632,6 @@ abstract class BaseElementTaskRelation extends BaseObject implements Persistent
|
||||
$criteria->add(ElementTaskRelationPeer::TAS_UID, $this->tas_uid);
|
||||
}
|
||||
|
||||
if ($this->isColumnModified(ElementTaskRelationPeer::ELEMENT_UID_DEST)) {
|
||||
$criteria->add(ElementTaskRelationPeer::ELEMENT_UID_DEST, $this->element_uid_dest);
|
||||
}
|
||||
|
||||
|
||||
return $criteria;
|
||||
}
|
||||
@@ -750,8 +694,6 @@ abstract class BaseElementTaskRelation extends BaseObject implements Persistent
|
||||
|
||||
$copyObj->setTasUid($this->tas_uid);
|
||||
|
||||
$copyObj->setElementUidDest($this->element_uid_dest);
|
||||
|
||||
|
||||
$copyObj->setNew(true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user