Skip to content

Commit

Permalink
bugfix: remove remaining references to Event model/views/etc
Browse files Browse the repository at this point in the history
  • Loading branch information
nathandf committed Oct 12, 2023
1 parent d0efd9c commit d79d1c0
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 8 deletions.
2 changes: 0 additions & 2 deletions src/api/src/backend/helpers/PipelineDispatchRequestBuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ def build(
base_url,
group,
pipeline,
event,
commit=None,
directives=None,
params={}
Expand Down Expand Up @@ -97,7 +96,6 @@ def build(
]

request["meta"]["origin"] = base_url # Origin of the request
request["meta"]["event"] = model_to_dict(event)

request["pipeline_run"] = {}

Expand Down
3 changes: 1 addition & 2 deletions src/api/src/backend/tests/tests_urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from django.urls import reverse, resolve
from backend.views import (
AddPipelineArchive, Auth, Archives, ChangePipelineOwner, CreateTaskExecution,
Credentials, Destinations, Events, Groups, HealthCheck, Identities,
Credentials, Destinations, Groups, HealthCheck, Identities,
ListPipelineArchives, PipelineRuns, Pipelines, RemovePipelineArchive,
TaskExecutions, Tasks, UpdatePipelineRunStatus, UpdateTaskExecutionStatus,
Users, RunPipelineWebhook
Expand Down Expand Up @@ -33,7 +33,6 @@
"addPipelineArchive": AddPipelineArchive,
"removePipelineArchive": RemovePipelineArchive,
"runPipelineWebhook": RunPipelineWebhook,
"event": Events,
"pipelineRuns": PipelineRuns,
"pipelineRun": PipelineRuns,
"updatePipelineRunStatus": UpdatePipelineRunStatus,
Expand Down
3 changes: 1 addition & 2 deletions src/api/src/backend/views/Nuke.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from backend.views.RestrictedAPIView import RestrictedAPIView
from backend.views.http.responses.BaseResponse import BaseResponse
from backend.services.SecretService import service as secret_service
from backend.models import Task, Identity, Credentials, Context, Destination, Group, GroupUser, Event, Pipeline
from backend.models import Task, Identity, Credentials, Context, Destination, Group, GroupUser, Pipeline

models = [
Task,
Expand All @@ -11,7 +11,6 @@
Destination,
Group,
GroupUser,
Event,
Pipeline
]

Expand Down
2 changes: 1 addition & 1 deletion src/api/src/backend/views/RunPipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from backend.services.PipelineDispatcher import service as pipeline_dispatcher
from backend.services.GroupService import service as group_service
from backend.services.SecretService import service as secret_service
from backend.models import Event, Pipeline
from backend.models import Pipeline


request_builder = PipelineDispatchRequestBuilder(secret_service)
Expand Down
1 change: 0 additions & 1 deletion src/engine/src/owe_python_sdk/TaskExecutor.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ def __init__(self, task, ctx, exchange: EventExchange, plugins=[]):
self.task = task
self.pipeline = self.ctx.pipeline
self.group = self.ctx.group
self.event = self.ctx.meta.event
self.directives = self.ctx.directives
self.polling_interval = DEFAULT_POLLING_INTERVAL
self._resources: list[Resource] = []
Expand Down

0 comments on commit d79d1c0

Please sign in to comment.