Skip to content

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

[#39972] Cleanup after rebase

Eric Schubertfe8d6f446209
diff --git a/frontend/src/app/features/work-packages/routing/work-packages-routes.ts b/frontend/src/app/features/work-packages/routing/work-packages-routes.ts
index 8a4135e5e60..2d8e59d3b9e 100644
--- a/frontend/src/app/features/work-packages/routing/work-packages-routes.ts
+++ b/frontend/src/app/features/work-packages/routing/work-packages-routes.ts
@@ -133,7 +133,6 @@ export const WORK_PACKAGES_ROUTES:Ng2StateDeclaration[] = [
bodyClasses: 'router--work-packages-partitioned-split-view',
menuItem: menuItemClass,
partition: '-left-only',
- module: 'work-packages',
},
},
...makeSplitViewRoutes(
diff --git a/frontend/src/app/shared/components/dataset-inputs.decorator.spec.ts b/frontend/src/app/shared/components/dataset-inputs.decorator.spec.ts
deleted file mode 100644
index c9d08b9c72c..00000000000
--- a/frontend/src/app/shared/components/dataset-inputs.decorator.spec.ts
+++ /dev/null
@@ -1,88 +0,0 @@
-import {
- ComponentFixture,
- TestBed,
-} from '@angular/core/testing';
-import {
- ChangeDetectionStrategy,
- Component,
- DebugElement,
- ElementRef,
- Input,
- Type,
-} from '@angular/core';
-import { DatasetInputs } from 'core-app/shared/components/dataset-inputs.decorator';
-
-@Component({
- selector: 'op-test-input',
- template: '<op-test [foo]="bar"></op-test>',
- changeDetection: ChangeDetectionStrategy.OnPush,
-})
-export class TestInputComponent {
- bar = 'foo';
-}
-
-@Component({
- selector: 'op-test-data',
- template: `<op-test data-foo='"input from data"'></op-test>`,
- changeDetection: ChangeDetectionStrategy.OnPush,
-})
-export class TestDataComponent {
-}
-
-@DatasetInputs
-@Component({
- selector: 'op-test',
- template: '<span [textContent]="foo"></span>',
- changeDetection: ChangeDetectionStrategy.OnPush,
-})
-export class TestComponent {
- @Input() foo:string;
-
- constructor(readonly elementRef:ElementRef<HTMLElement>) {}
-}
-
-fdescribe('DatasetInputs decorator', () => {
- let fixture:ComponentFixture<unknown>;
- let element:DebugElement;
- let htmlElement:HTMLElement;
-
- const setup = async (componentClass:Type<unknown>) => {
- console.log("SETUP")
- await TestBed.configureTestingModule({
- declarations: [
- TestComponent,
- TestInputComponent,
- TestDataComponent,
- ],
- })
- .compileComponents();
-
- fixture = TestBed.createComponent(componentClass);
- element = fixture.debugElement;
- htmlElement = element.nativeElement as HTMLElement;
-
- fixture.detectChanges();
- };
-
- describe('with an input', () => {
- beforeEach(async () => {
- await setup(TestInputComponent);
- });
-
- it('renders the input', () => {
- expect(htmlElement.querySelector('op-test-input op-test span')?.textContent)
- .toEqual('foo', 'Expected op-test with a span[textContent=foo]');
- });
- });
-
- describe('with a data field', () => {
- beforeEach(async () => {
- await setup(TestDataComponent);
- });
-
- it('renders the input', () => {
- expect(htmlElement.querySelector('op-test-input op-test span')?.textContent)
- .toEqual('input from data', 'Expected op-test with a span[textContent=input from data]');
- });
- });
-});
diff --git a/frontend/src/app/shared/components/dataset-inputs.decorator.ts b/frontend/src/app/shared/components/dataset-inputs.decorator.ts
index 72440528992..60a86d5f371 100644
--- a/frontend/src/app/shared/components/dataset-inputs.decorator.ts
+++ b/frontend/src/app/shared/components/dataset-inputs.decorator.ts
@@ -60,9 +60,6 @@ export function DatasetInputs<T extends { new(...args:any[]):DatasetInputsDecora
const declaredInputsParentKey = Object.keys(cstr)
.find((key:string) => typeof (cstr[key] as ɵDirectiveDef<unknown>).declaredInputs === 'object');
- console.log((cstr as any).propDecorators);
- console.log(Object.keys(cstr));
-
if (!declaredInputsParentKey) {
throw new Error('Could not find declared inputs for component');
}