Add timezone to workflow and pass FF (#334)
* Add timezone to workflow and pass FF * Prettier fixes * Prettier fixes * Prettier fixes * Guard timezone autocomplete behind FF * Prettier fix * Address PR comments * Prettier fix * Remove comma * Remove template assignment * Move description * Fix test * Prettier again! * Address comments * Change error when timezone key is entered but FF is off * Prettier --------- Co-authored-by: Angel Kou <[email protected]>
This commit is contained in:
@@ -54,7 +54,8 @@ describe("FeatureFlags", () => {
|
||||
expect(flags.getEnabledFeatures()).toEqual([
|
||||
"missingInputsQuickfix",
|
||||
"blockScalarChompingWarning",
|
||||
"allowCaseFunction"
|
||||
"allowCaseFunction",
|
||||
"allowCronTimezone"
|
||||
]);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -34,6 +34,12 @@ export interface ExperimentalFeatures {
|
||||
* @default false
|
||||
*/
|
||||
allowCaseFunction?: boolean;
|
||||
|
||||
/**
|
||||
* Enable the timezone input in cron schedule mappings.
|
||||
* @default false
|
||||
*/
|
||||
allowCronTimezone?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -48,7 +54,8 @@ export type ExperimentalFeatureKey = Exclude<keyof ExperimentalFeatures, "all">;
|
||||
const allFeatureKeys: ExperimentalFeatureKey[] = [
|
||||
"missingInputsQuickfix",
|
||||
"blockScalarChompingWarning",
|
||||
"allowCaseFunction"
|
||||
"allowCaseFunction",
|
||||
"allowCronTimezone"
|
||||
];
|
||||
|
||||
export class FeatureFlags {
|
||||
|
||||
Reference in New Issue
Block a user