Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update schema, remove SkillOutput #845

Merged
merged 1 commit into from
Jan 25, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 0 additions & 77 deletions lib/api/mapping/outputTest.ts

This file was deleted.

73 changes: 0 additions & 73 deletions lib/core/goal/skillOutput.ts

This file was deleted.

150 changes: 0 additions & 150 deletions lib/core/handlers/events/delivery/goals/SetGoalsOnSkillOutput.ts

This file was deleted.

14 changes: 1 addition & 13 deletions lib/core/machine/HandlerBasedSoftwareDeliveryMachine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,11 @@ import { AbstractSoftwareDeliveryMachine } from "../../api-helper/machine/Abstra
import { FunctionalUnit } from "../../api/machine/FunctionalUnit";
import { SoftwareDeliveryMachineConfiguration } from "../../api/machine/SoftwareDeliveryMachineOptions";
import { GoalSetter } from "../../api/mapping/GoalSetter";
import { SkillOutputGoalExecutionListener } from "../goal/skillOutput";
import { FulfillGoalOnRequested } from "../handlers/events/delivery/goals/FulfillGoalOnRequested";
import { RequestDownstreamGoalsOnGoalSuccess } from "../handlers/events/delivery/goals/RequestDownstreamGoalsOnGoalSuccess";
import { RespondOnGoalCompletion } from "../handlers/events/delivery/goals/RespondOnGoalCompletion";
import { SetGoalsOnGoal } from "../handlers/events/delivery/goals/SetGoalsOnGoal";
import { SetGoalsOnPush } from "../handlers/events/delivery/goals/SetGoalsOnPush";
import { SetGoalsOnSkillOutput } from "../handlers/events/delivery/goals/SetGoalsOnSkillOutput";
import { SkipDownstreamGoalsOnGoalFailure } from "../handlers/events/delivery/goals/SkipDownstreamGoalsOnGoalFailure";
import { VoteOnGoalApprovalRequest } from "../handlers/events/delivery/goals/VoteOnGoalApprovalRequest";
import { ClosedIssueHandler } from "../handlers/events/issue/ClosedIssueHandler";
Expand Down Expand Up @@ -93,16 +91,7 @@ export class HandlerBasedSoftwareDeliveryMachine extends AbstractSoftwareDeliver
this.configuration.sdm.preferenceStoreFactory,
this.configuration.sdm.enrichGoal,
this.configuration.sdm.tagGoalSet),
() => new SetGoalsOnSkillOutput(
this.configuration.sdm.projectLoader,
this.configuration.sdm.repoRefResolver,
this.pushMapping,
this.goalsSetListeners,
this.goalFulfillmentMapper,
this.configuration.sdm.credentialsResolver,
this.configuration.sdm.preferenceStoreFactory,
this.configuration.sdm.enrichGoal,
this.configuration.sdm.tagGoalSet)],
],
commandHandlers: [],
ingesters: [],
};
Expand Down Expand Up @@ -251,7 +240,6 @@ export class HandlerBasedSoftwareDeliveryMachine extends AbstractSoftwareDeliver
configuration: Configuration & SoftwareDeliveryMachineConfiguration,
goalSetters: Array<GoalSetter | GoalSetter[]>) {
super(name, configuration, goalSetters);
this.addGoalExecutionListener(SkillOutputGoalExecutionListener);
}

}
14 changes: 0 additions & 14 deletions lib/core/machine/yaml/mapPushTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import { hasCommit } from "../../../api-helper/pushtest/commit";
import { isMaterialChange } from "../../../api-helper/pushtest/materialChangeTest";
import { StatefulPushListenerInvocation } from "../../../api/dsl/goalContribution";
import { isGoal } from "../../../api/mapping/goalTest";
import { isOutput } from "../../../api/mapping/outputTest";
import {
pushTest,
PushTest,
Expand Down Expand Up @@ -115,18 +114,6 @@ const IsGoal: CreatePushTest = async (test, additionalTests, extensionTests) =>
return undefined;
};

const IsOutput: CreatePushTest = async (test, additionalTests, extensionTests) => {
const onOutput = test.isOutput || test.onOutput;
if (!!onOutput) {
return isOutput({
classifier: getStringOrRegexp(onOutput.classifier),
type: onOutput.type,
pushTest: onOutput.test ? await mapTest(onOutput.test, additionalTests, extensionTests) : undefined,
});
}
return undefined;
};

const IsMaterialChange: CreatePushTest = async test => {
if (!!test.isMaterialChange) {
return isMaterialChange({
Expand Down Expand Up @@ -223,7 +210,6 @@ export const CreatePushTests = [
IsBranch,
IsDefaultBranch,
IsGoal,
IsOutput,
IsSkillConfigured,
IsMaterialChange,
HasFileContaining,
Expand Down
5 changes: 0 additions & 5 deletions lib/graphql/mutation/CreateKubernetesClusterProvider.graphql

This file was deleted.

3 changes: 0 additions & 3 deletions lib/graphql/mutation/IngestSkillOutput.graphql

This file was deleted.

11 changes: 0 additions & 11 deletions lib/graphql/query/KubernetesClusterProvider.graphql

This file was deleted.

Loading