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
Labels
Merge Requests
140
Merge Requests
140
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
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
b3f19356
Commit
b3f19356
authored
Oct 04, 2024
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_core: use READ-COMMITTED connection only in deleted_catalog table.
parent
5c268d7e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
bt5/erp5_core_test/TestTemplateItem/portal_components/test.erp5.testERP5Core.py
...tTemplateItem/portal_components/test.erp5.testERP5Core.py
+3
-1
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/z_get_deleted_path_list.xml
...teItem/portal_skins/erp5_core/z_get_deleted_path_list.xml
+1
-1
No files found.
bt5/erp5_core_test/TestTemplateItem/portal_components/test.erp5.testERP5Core.py
View file @
b3f19356
...
...
@@ -797,7 +797,7 @@ class TestERP5Core(ERP5TypeTestCase, ZopeTestCase.Functional):
len
(
person_list
),
)
# make some rows in deleted_catalog older.
query
=
self
.
portal
.
erp5_sql_connection
().
query
query
=
self
.
portal
.
erp5_sql_
read_committed_
connection
().
query
query
(
'UPDATE deleted_catalog SET deletion_timestamp="%s" LIMIT 5'
%
\
(
DateTime
()
-
10
).
strftime
(
'%Y-%m-%d'
)
)
...
...
@@ -831,6 +831,8 @@ class TestERP5Core(ERP5TypeTestCase, ZopeTestCase.Functional):
uid
=
person2
.
getUid
(),
path
=
person2
.
getPath
(),
)
# commit to start new MariaDB transactions
self
.
commit
()
self
.
assertEqual
(
0
,
len
(
self
.
portal
.
portal_catalog
(
uid
=
person2
.
getUid
())),
...
...
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/z_get_deleted_path_list.xml
View file @
b3f19356
...
...
@@ -34,7 +34,7 @@
</item>
<item>
<key>
<string>
connection_id
</string>
</key>
<value>
<string>
erp5_sql_connection
</string>
</value>
<value>
<string>
erp5_sql_
read_committed_
connection
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
...
...
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