Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alecs_myu
erp5
Commits
ba6521c4
Commit
ba6521c4
authored
Apr 26, 2012
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CMFActivity: ignore dependencies of validated messages when merging duplicates
parent
27712881
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
10 deletions
+3
-10
product/CMFActivity/Activity/SQLBase.py
product/CMFActivity/Activity/SQLBase.py
+3
-7
product/CMFActivity/Activity/SQLDict.py
product/CMFActivity/Activity/SQLDict.py
+0
-1
product/CMFActivity/skins/activity/SQLDict_selectDuplicatedLineList.zsql
...vity/skins/activity/SQLDict_selectDuplicatedLineList.zsql
+0
-2
No files found.
product/CMFActivity/Activity/SQLBase.py
View file @
ba6521c4
...
...
@@ -249,13 +249,9 @@ class SQLBase(Queue):
# processing_node.
# Their dates are lower-than or equal-to now_date.
# We read each line once so lines have distinct uids.
# So what remains to be filtered on are path, method_id and
# order_validation_text.
try
:
key
=
line
.
path
,
line
.
method_id
,
line
.
order_validation_text
except
AttributeError
:
pass
# message_queue does not have 'order_validation_text'
else
:
# So what remains to be filtered on are path and method_id.
if
self
.
merge_duplicate
:
key
=
line
.
path
,
line
.
method_id
original_uid
=
path_and_method_id_dict
.
get
(
key
)
if
original_uid
is
not
None
:
uid_to_duplicate_uid_list_dict
.
setdefault
(
original_uid
,
[])
\
...
...
product/CMFActivity/Activity/SQLDict.py
View file @
ba6521c4
...
...
@@ -119,7 +119,6 @@ class SQLDict(SQLBase):
path
=
line
.
path
,
method_id
=
line
.
method_id
,
group_method_id
=
line
.
group_method_id
,
order_validation_text
=
line
.
order_validation_text
)
uid_list
=
[
x
.
uid
for
x
in
result
]
if
len
(
uid_list
):
...
...
product/CMFActivity/skins/activity/SQLDict_selectDuplicatedLineList.zsql
View file @
ba6521c4
...
...
@@ -11,7 +11,6 @@ class_file:
path
method_id
group_method_id
order_validation_text
</params>
SELECT uid FROM
message
...
...
@@ -20,5 +19,4 @@ WHERE
AND path = <dtml-sqlvar path type="string">
AND method_id = <dtml-sqlvar 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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment