Skip to content

feat: change org unit form to use new format #752

feat: change org unit form to use new format

feat: change org unit form to use new format #752

Triggered via push October 3, 2024 19:04
Status Failure
Total duration 2m 15s
Artifacts
Matrix: e2e
release
0s
release
Fit to window
Zoom out
Zoom in

Annotations

17 errors and 32 warnings
build: src/components/form/fields/DateField.tsx#L21
Type '{ input: FieldInputProps<any, HTMLElement>; meta: FieldMetaState<any>; editable: true; date: any; calendar: "gregory"; onDateSelect: (date: { ...; }) => void; timeZone: string; }' is not assignable to type 'IntrinsicAttributes & Omit<InputFieldProps, "type" | "value" | "label"> & CalendarProps'.
build: src/lib/form/useOnSubmit.ts#L86
Argument of type 'NonNullable<TFormValues>' is not assignable to parameter of type 'OrganisationUnit'.
build: src/pages/categories/New.tsx#L15
Argument of type '{ section: { readonly name: SchemaName.category; readonly namePlural: "categories"; readonly title: string; readonly titlePlural: string; readonly parentSectionKey: "category"; }; }' is not assignable to parameter of type '{ section: ModelSection; valueFormatter: (values: OrganisationUnit) => OrganisationUnit; }'.
build: src/pages/categoryCombos/New.tsx#L14
Argument of type '{ section: { readonly name: SchemaName.categoryCombo; readonly namePlural: "categoryCombos"; readonly title: string; readonly titlePlural: string; readonly parentSectionKey: "category"; }; }' is not assignable to parameter of type '{ section: ModelSection; valueFormatter: (values: OrganisationUnit) => OrganisationUnit; }'.
build: src/pages/organisationUnits/New.tsx#L54
Type '(values: OrganisationUnit) => { name: string; shortName: string; code: string; openingDate: string; closedDate: string; comment: string; image: FileResource; ... 8 more ...; attributeValues: AttributeValue[]; }' is not assignable to type '(values: OrganisationUnit) => OrganisationUnit'.
build: src/pages/organisationUnits/New.tsx#L56
Type 'Partial<OrganisationUnit>' is not assignable to type 'Partial<OrganisationUnit> & OrganisationUnit'.
build
Process completed with exit code 2.
lint: src/components/form/fields/DateField.tsx#L21
'input' is missing in props validation
lint: src/components/form/fields/DateField.tsx#L22
'meta' is missing in props validation
lint: src/components/form/fields/DateField.tsx#L24
'input' is missing in props validation
lint: src/components/form/fields/DateField.tsx#L24
'input.value' is missing in props validation
lint: src/components/form/fields/DateField.tsx#L27
'input' is missing in props validation
lint: src/components/form/fields/DateField.tsx#L27
'input.onChange' is missing in props validation
lint: src/lib/form/useOnSubmit.ts#L12
`../../pages/organisationUnits/form` import should occur before import of `../../types`
lint: src/pages/organisationUnits/New.tsx#L11
`../../components/form/DefaultFormContents` import should occur before import of `../../lib`
lint: src/pages/organisationUnits/form/organisationUnitSchema.ts#L3
`../../../lib` import should occur before import of `../../categories/Edit`
lint: src/pages/organisationUnits/form/organisationUnitSchema.ts#L5
`../../../types/generated` import should occur before import of `../../categories/Edit`
build
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, c-hive/gha-yarn-cache@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
build
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/setup-node@v3, c-hive/gha-yarn-cache@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
build
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
build
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
test
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, c-hive/gha-yarn-cache@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
test
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/setup-node@v3, c-hive/gha-yarn-cache@v1, codecov/codecov-action@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
test
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
test
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
test
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
e2e (2)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
e2e (2)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/setup-node@v1, cypress-io/github-action@v5. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
e2e (1)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
e2e (1)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/setup-node@v1, cypress-io/github-action@v5. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
lint
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, c-hive/gha-yarn-cache@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
lint
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/setup-node@v3, c-hive/gha-yarn-cache@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
lint
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
lint
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
lint
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
lint
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
lint: .prettierrc.js#L1
File ignored by default.
lint: src/app/sidebar/Sidebar.spec.tsx#L3
Using exported name 'userEvent' as identifier for default export
lint: src/components/form/fields/DateField.tsx#L1
'i18n' is defined but never used
lint: src/components/form/fields/DateField.tsx#L2
'TextAreaFieldFF' is defined but never used
lint: src/components/form/fields/DateField.tsx#L5
'SchemaSection' is defined but never used
lint: src/components/form/fields/DateField.tsx#L5
'useCheckMaxLengthFromSchema' is defined but never used
lint: src/components/form/fields/DateField.tsx#L9
'label' is defined but never used
lint: src/components/form/fields/DateField.tsx#L10
'calendar' is assigned a value but never used
lint: src/components/loading/Loader.spec.tsx#L7
Unexpected any. Specify a different type
lint: src/components/loading/Loader.spec.tsx#L20
Unexpected any. Specify a different type