Rename cron to schedule
This commit is contained in:
@@ -368,7 +368,7 @@ jobs:
|
|||||||
const result = await complete(...getPositionFromCursor(input), undefined, undefined);
|
const result = await complete(...getPositionFromCursor(input), undefined, undefined);
|
||||||
|
|
||||||
expect(result.map(x => x.label)).not.toContain("inputs");
|
expect(result.map(x => x.label)).not.toContain("inputs");
|
||||||
expect(result.map(x => x.label)).not.toContain("cron");
|
expect(result.map(x => x.label)).not.toContain("schedule");
|
||||||
});
|
});
|
||||||
|
|
||||||
it("includes cron schedules", async () => {
|
it("includes cron schedules", async () => {
|
||||||
@@ -387,7 +387,7 @@ jobs:
|
|||||||
|
|
||||||
const result = await complete(...getPositionFromCursor(input), undefined, undefined);
|
const result = await complete(...getPositionFromCursor(input), undefined, undefined);
|
||||||
|
|
||||||
expect(result.map(x => x.label)).toContain("cron");
|
expect(result.map(x => x.label)).toContain("schedule");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ function getEventContext(workflowContext: WorkflowContext): ExpressionData {
|
|||||||
if (schedule && schedule.length > 0) {
|
if (schedule && schedule.length > 0) {
|
||||||
const default_cron = schedule[0].cron;
|
const default_cron = schedule[0].cron;
|
||||||
// For now, default to the first cron expression only
|
// For now, default to the first cron expression only
|
||||||
d.add("cron", new data.StringData(default_cron));
|
d.add("schedule", new data.StringData(default_cron));
|
||||||
}
|
}
|
||||||
|
|
||||||
return d;
|
return d;
|
||||||
|
|||||||
Reference in New Issue
Block a user