Skip to content

Commit

Permalink
prepend QA error with colon
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandip117 committed Sep 26, 2024
1 parent 66c9095 commit cfb9887
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions control/action.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,20 +274,20 @@ def QA_check(self,plugin_info):
A method to check the QA of the output of LLD analysis. This method checks
the output of the QA plugin `pl-lld_chxr` and determines if a QA failure as occured.
As an effect of this check, the name of the feed of which this plugin, `pl-lld_chxr` is
a part, is changed. The updated name becomes `QA-failed-<existing feed name>`.
a part, is changed. The updated name becomes `QA-failed:<existing feed name>`.
Args:
plugin_info: A dictionary representing a plugin instance of CUBE
Returns:
"""
QA_plugin = 'pl-lld_chxr'
error_code = 'QA check failed'
if QA_plugin in plugin_info['plugin_name'] and error_code in plugin_info['summary']:
error_string = 'QA check failed'
if QA_plugin in plugin_info['plugin_name'] and error_string in plugin_info['summary']:
feed_id = plugin_info['feed_id']
feed = self.cl.get_feed_by_id(feed_id)
name = feed['name']
self.request.put(f'{self.env.CUBE("url")}{feed_id}/', {'name': f'QA-failed-{name}'})
self.request.put(f'{self.env.CUBE("url")}{feed_id}/', {'name': f'QA-failed:{name}'})

def pluginParameters_setInNodes(self,
d_piping : dict,
Expand Down
2 changes: 1 addition & 1 deletion dylld.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
pluginOutputDir: Path
ld_forestResult: list = []

__version__ = "4.4.42"
__version__ = "4.4.44"

DISPLAY_TITLE = r"""
_ _ _ _ _
Expand Down

0 comments on commit cfb9887

Please sign in to comment.