Skip to content
Snippets Groups Projects

feat: dirac-production-manager submits removal transformations

Merged Christophe Haen requested to merge chaen/LHCbDIRAC:v11.0_feat_prodSubmitRemoval into master
Files
5
@@ -85,6 +85,22 @@ class SubmitProductionsAction(Action):
start_productions(logbook, self.issue)
class SubmitRemovalTransformationAction(Action):
def __init__(self, issue, request_id: int):
self.issue = issue
self.request_id = request_id
def message(self):
return f"{self.__class__.__name__}({self.issue})"
def run(self):
from .launching import start_removal_transformation
from .integrations import OperationsLogbook
logbook = OperationsLogbook()
start_removal_transformation(logbook, self.issue, self.request_id)
class CheckValidationAction(Action):
def __init__(self, issue, request_id):
self.issue = issue
@@ -179,7 +195,6 @@ class AddLabelAction(Action):
if project_label.startswith(prefix):
break
else:
breakpoint()
raise ValueError(f"Unknown label prefix {prefix}")
self.repo.project.labels.create({"name": self.label, "color": color})
# Clear the cache
Loading