Commit ba6521c4 authored by Julien Muchembled's avatar Julien Muchembled

CMFActivity: ignore dependencies of validated messages when merging duplicates

parent 27712881
...@@ -249,13 +249,9 @@ class SQLBase(Queue): ...@@ -249,13 +249,9 @@ class SQLBase(Queue):
# processing_node. # processing_node.
# Their dates are lower-than or equal-to now_date. # Their dates are lower-than or equal-to now_date.
# We read each line once so lines have distinct uids. # We read each line once so lines have distinct uids.
# So what remains to be filtered on are path, method_id and # So what remains to be filtered on are path and method_id.
# order_validation_text. if self.merge_duplicate:
try: key = line.path, line.method_id
key = line.path, line.method_id, line.order_validation_text
except AttributeError:
pass # message_queue does not have 'order_validation_text'
else:
original_uid = path_and_method_id_dict.get(key) original_uid = path_and_method_id_dict.get(key)
if original_uid is not None: if original_uid is not None:
uid_to_duplicate_uid_list_dict.setdefault(original_uid, []) \ uid_to_duplicate_uid_list_dict.setdefault(original_uid, []) \
......
...@@ -119,7 +119,6 @@ class SQLDict(SQLBase): ...@@ -119,7 +119,6 @@ class SQLDict(SQLBase):
path=line.path, path=line.path,
method_id=line.method_id, method_id=line.method_id,
group_method_id=line.group_method_id, group_method_id=line.group_method_id,
order_validation_text=line.order_validation_text
) )
uid_list = [x.uid for x in result] uid_list = [x.uid for x in result]
if len(uid_list): if len(uid_list):
......
...@@ -11,7 +11,6 @@ class_file: ...@@ -11,7 +11,6 @@ class_file:
path path
method_id method_id
group_method_id group_method_id
order_validation_text
</params> </params>
SELECT uid FROM SELECT uid FROM
message message
...@@ -20,5 +19,4 @@ WHERE ...@@ -20,5 +19,4 @@ WHERE
AND path = <dtml-sqlvar path type="string"> AND path = <dtml-sqlvar path type="string">
AND method_id = <dtml-sqlvar method_id type="string"> AND method_id = <dtml-sqlvar method_id type="string">
AND group_method_id = <dtml-sqlvar group_method_id type="string"> AND group_method_id = <dtml-sqlvar group_method_id type="string">
AND order_validation_text = <dtml-sqlvar order_validation_text type="string">
FOR UPDATE FOR UPDATE
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment