OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
linting
Oliver Günthera28ceba74335
diff --git a/frontend/src/app/features/work-packages/components/wp-edit-form/work-package-filter-values.spec.ts b/frontend/src/app/features/work-packages/components/wp-edit-form/work-package-filter-values.spec.tsindex aed2b862dc2..8d0a974dde0 100644--- a/frontend/src/app/features/work-packages/components/wp-edit-form/work-package-filter-values.spec.ts+++ b/frontend/src/app/features/work-packages/components/wp-edit-form/work-package-filter-values.spec.ts@@ -56,6 +56,7 @@ import { OpenProjectDirectFileUploadService } from 'core-app/core/file-upload/opimport { TimezoneService } from 'core-app/core/datetime/timezone.service';import { WeekdayService } from 'core-app/core/days/weekday.service';import { of } from 'rxjs';+import { HalResource } from 'core-app/features/hal/resources/hal-resource';describe('WorkPackageFilterValues', () => {let resource:WorkPackageResource;@@ -150,7 +151,7 @@ describe('WorkPackageFilterValues', () => {subject.applyDefaultsFromFilters(changeset);expect(changeset.changedAttributes.length).toEqual(0);- expect(changeset.value('type').href).toEqual('/api/v3/types/1');+ expect(changeset.value<HalResource>('type').href).toEqual('/api/v3/types/1');}));});@@ -173,7 +174,7 @@ describe('WorkPackageFilterValues', () => {subject.applyDefaultsFromFilters(changeset);expect(changeset.changedAttributes.length).toEqual(0);- expect(changeset.value('type').href).toEqual('/api/v3/types/2');+ expect(changeset.value<HalResource>('type').href).toEqual('/api/v3/types/2');}));});});diff --git a/frontend/src/app/spot/components/text-field/text-field.component.ts b/frontend/src/app/spot/components/text-field/text-field.component.tsindex 57393525b20..0778605e1c1 100644--- a/frontend/src/app/spot/components/text-field/text-field.component.ts+++ b/frontend/src/app/spot/components/text-field/text-field.component.ts@@ -30,7 +30,7 @@ export class SpotTextFieldComponent implements ControlValueAccessor {@HostBinding('class.spot-text-field_focused') public focused = false;@HostListener('click')- public onParentClick() {+ public onParentClick():void {this.input.nativeElement.focus();}@@ -46,7 +46,7 @@ export class SpotTextFieldComponent implements ControlValueAccessor {@Input() public value = '';- valueChanged(value:string) {+ valueChanged(value:string):void {this.writeValue(value);this.onChange(value);this.onTouched(value);diff --git a/spec/support/components/datepicker/work_package_datepicker.rb b/spec/support/components/datepicker/work_package_datepicker.rbindex 5ba75611ec9..a42333c5c6b 100644--- a/spec/support/components/datepicker/work_package_datepicker.rb+++ b/spec/support/components/datepicker/work_package_datepicker.rb@@ -119,14 +119,14 @@ module Componentstext = ignore_non_working_days_option(val)container- .find('[data-qa-selector="spot-toggle--option"][data-qa-active-toggle]', text: text)+ .find('[data-qa-selector="spot-toggle--option"][data-qa-active-toggle]', text:)enddef ignore_non_working_days(val)text = ignore_non_working_days_option(val)container- .find('[data-qa-selector="spot-toggle--option"]', text: text)+ .find('[data-qa-selector="spot-toggle--option"]', text:).clickend