Skip to content

Commit

Permalink
Auto-merge pull request #845 from atomist/sdm
Browse files Browse the repository at this point in the history
Update schema, remove SkillOutput
    
Pull request auto merged:

* Protection rule for branch `main` passed
* 1 approved review by @cdupuis
* 3 successful checks
  • Loading branch information
atomist[bot] authored Jan 25, 2021
2 parents bb1adeb + 98b9dd9 commit fdfa1ec
Show file tree
Hide file tree
Showing 11 changed files with 50,067 additions and 35,288 deletions.
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

0 comments on commit fdfa1ec

Please sign in to comment.