Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin
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
Léo-Paul Géneau
wendelin
Commits
5c133e82
Commit
5c133e82
authored
Apr 23, 2020
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove transition scripts which will be properly replaced by interaction_workflow.
parent
1929c5c7
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
84 deletions
+1
-84
bt5/erp5_wendelin_data_lake_ingestion/WorkflowTemplateItem/portal_workflow/data_validation_workflow/scripts/Action_invalidateRelatedObjects.py
...ation_workflow/scripts/Action_invalidateRelatedObjects.py
+0
-21
bt5/erp5_wendelin_data_lake_ingestion/WorkflowTemplateItem/portal_workflow/data_validation_workflow/scripts/Action_invalidateRelatedObjects.xml
...tion_workflow/scripts/Action_invalidateRelatedObjects.xml
+0
-62
bt5/erp5_wendelin_data_lake_ingestion/WorkflowTemplateItem/portal_workflow/data_validation_workflow/transitions/invalidate_action.xml
...ata_validation_workflow/transitions/invalidate_action.xml
+1
-1
No files found.
bt5/erp5_wendelin_data_lake_ingestion/WorkflowTemplateItem/portal_workflow/data_validation_workflow/scripts/Action_invalidateRelatedObjects.py
deleted
100644 → 0
View file @
1929c5c7
from
Products.ZSQLCatalog.SQLCatalog
import
Query
,
SimpleQuery
portal
=
context
.
getPortalObject
()
portal_catalog
=
portal
.
portal_catalog
object
=
state_change
[
'object'
]
if
object
.
getPortalType
()
==
"Data Set"
:
data_set
=
object
data_set_prefix
=
data_set
.
getReference
()
+
portal
.
getIngestionReferenceDictionary
()[
"reference_separator"
]
#context.logEntry("Invalidating data set '%s' and dependencies." % data_set.getReference())
reference_query
=
Query
(
**
{
'reference'
:
data_set_prefix
+
'%'
})
kw_dict
=
{
"portal_type"
:
"Data Stream"
,
"query"
:
reference_query
}
for
data_stream
in
portal_catalog
(
**
kw_dict
):
if
data_stream
.
getReference
().
startswith
(
data_set_prefix
)
and
not
portal
.
IsReferenceInvalidated
(
data_stream
):
portal
.
ERP5Site_invalidateIngestionObjects
(
data_stream
.
getReference
())
portal
.
InvalidateReference
(
data_set
)
data_set
.
setVersion
(
"000"
)
elif
object
.
getPortalType
()
==
"Data Stream"
:
data_stream
=
object
portal
.
ERP5Site_invalidateIngestionObjects
(
data_stream
.
getReference
())
bt5/erp5_wendelin_data_lake_ingestion/WorkflowTemplateItem/portal_workflow/data_validation_workflow/scripts/Action_invalidateRelatedObjects.xml
deleted
100644 → 0
View file @
1929c5c7
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
state_change
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
Action_invalidateRelatedObjects
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_wendelin_data_lake_ingestion/WorkflowTemplateItem/portal_workflow/data_validation_workflow/transitions/invalidate_action.xml
View file @
5c133e82
...
...
@@ -46,7 +46,7 @@
</item>
<item>
<key>
<string>
script_name
</string>
</key>
<value>
<string>
Action_invalidateRelatedObjects
</string>
</value>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
title
</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