Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin-telecom
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
Paul Graydon
wendelin-telecom
Commits
17715694
Commit
17715694
authored
Apr 12, 2023
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ors_wendelin: add action to restart ingestion
it should be removed later once kpi calculation is improved
parent
0c5d77ce
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
177 additions
and
1 deletion
+177
-1
bt5/ors_wendelin/ActionTemplateItem/portal_types/Data%20Acquisition%20Unit/create_ors_data_supply.xml
...ypes/Data%20Acquisition%20Unit/create_ors_data_supply.xml
+1
-1
bt5/ors_wendelin/ActionTemplateItem/portal_types/Data%20Acquisition%20Unit/restart_ingestion.xml
...tal_types/Data%20Acquisition%20Unit/restart_ingestion.xml
+79
-0
bt5/ors_wendelin/SkinTemplateItem/portal_skins/ors_wendelin/DataAcquisionUnit_restartIngestion.py
..._skins/ors_wendelin/DataAcquisionUnit_restartIngestion.py
+34
-0
bt5/ors_wendelin/SkinTemplateItem/portal_skins/ors_wendelin/DataAcquisionUnit_restartIngestion.xml
...skins/ors_wendelin/DataAcquisionUnit_restartIngestion.xml
+62
-0
bt5/ors_wendelin/bt/template_action_path_list
bt5/ors_wendelin/bt/template_action_path_list
+1
-0
No files found.
bt5/ors_wendelin/ActionTemplateItem/portal_types/Data%20Acquisition%20Unit/create_ors_data_supply.xml
View file @
17715694
...
@@ -54,7 +54,7 @@
...
@@ -54,7 +54,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
priority
</string>
</key>
<key>
<string>
priority
</string>
</key>
<value>
<float>
1
.0
</float>
</value>
<value>
<float>
2
.0
</float>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
title
</string>
</key>
<key>
<string>
title
</string>
</key>
...
...
bt5/ors_wendelin/ActionTemplateItem/portal_types/Data%20Acquisition%20Unit/restart_ingestion.xml
0 → 100644
View file @
17715694
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ActionInformation"
module=
"Products.CMFCore.ActionInformation"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
action
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
action_type/object_jio_action
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
category
</string>
</key>
<value>
<string>
object_jio_action
</string>
</value>
</item>
<item>
<key>
<string>
condition
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string>
XXXXXX Remove later
</string>
</value>
</item>
<item>
<key>
<string>
icon
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
restart_ingestion
</string>
</value>
</item>
<item>
<key>
<string>
permissions
</string>
</key>
<value>
<tuple>
<string>
View
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
priority
</string>
</key>
<value>
<float>
3.0
</float>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Restart Ingestion
</string>
</value>
</item>
<item>
<key>
<string>
visible
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"Expression"
module=
"Products.CMFCore.Expression"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
text
</string>
</key>
<value>
<string>
string:${object_url}/DataAcquisionUnit_restartIngestion
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/ors_wendelin/SkinTemplateItem/portal_skins/ors_wendelin/DataAcquisionUnit_restartIngestion.py
0 → 100644
View file @
17715694
data_ingestion_id_list
=
[]
data_analysis_id_list
=
[]
data_array_id_list
=
[]
data_stream_id_list
=
[]
progress_indicator_id_list
=
[]
for
i
in
context
.
getAggregateRelatedValueList
(
portal_type
=
'Data Ingestion Line'
):
data_stream
=
i
.
getAggregateValue
(
portal_type
=
'Data Stream'
)
if
data_stream
:
if
data_stream
.
getId
()
not
in
data_stream_id_list
:
data_stream_id_list
.
append
(
data_stream
.
getId
())
if
i
.
getParentId
()
not
in
data_ingestion_id_list
:
data_ingestion_id_list
.
append
(
i
.
getParentId
())
for
i
in
context
.
getAggregateRelatedValueList
(
portal_type
=
'Data Analysis Line'
):
data_array
=
i
.
getAggregateValue
(
portal_type
=
'Data Array'
)
if
data_array
:
if
data_array
.
getId
()
not
in
data_array_id_list
:
data_array_id_list
.
append
(
data_array
.
getId
())
indicator
=
i
.
getAggregateValue
(
portal_type
=
'Progress Indicator'
)
if
indicator
:
if
indicator
.
getId
()
not
in
progress_indicator_id_list
:
progress_indicator_id_list
.
append
(
indicator
.
getId
())
if
i
.
getParentId
()
not
in
data_analysis_id_list
:
data_analysis_id_list
.
append
(
i
.
getParentId
())
context
.
data_stream_module
.
manage_delObjects
(
ids
=
data_stream_id_list
)
context
.
data_ingestion_module
.
manage_delObjects
(
ids
=
data_ingestion_id_list
)
context
.
data_array_module
.
manage_delObjects
(
ids
=
data_array_id_list
)
context
.
data_analysis_module
.
manage_delObjects
(
ids
=
data_analysis_id_list
)
context
.
progress_indicator_module
.
manage_delObjects
(
ids
=
progress_indicator_id_list
)
context
.
Base_redirect
(
'view'
,
keep_items
=
{
'portal_status_message'
:
'Ingestion Restarted'
})
bt5/ors_wendelin/SkinTemplateItem/portal_skins/ors_wendelin/DataAcquisionUnit_restartIngestion.xml
0 → 100644
View file @
17715694
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"_reconstructor"
module=
"copy_reg"
/>
</klass>
<tuple>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
<global
name=
"object"
module=
"__builtin__"
/>
<none/>
</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></string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
DataAcquisionUnit_restartIngestion
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/ors_wendelin/bt/template_action_path_list
View file @
17715694
Data Acquisition Unit | create_ors_data_supply
Data Acquisition Unit | create_ors_data_supply
Data Acquisition Unit | restart_ingestion
Data Acquisition Unit | view_e-rab_accessibility_kpi
Data Acquisition Unit | view_e-rab_accessibility_kpi
Data Acquisition Unit | view_e-utran-ip-throughput_kpi
Data Acquisition Unit | view_e-utran-ip-throughput_kpi
\ No newline at end of file
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