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

[41585]Remove "Project" filter from filter list (#10406)

Behrokh Satarnejadea1d9a277a54
diff --git a/frontend/src/app/features/calendar/wp-calendar/wp-calendar.component.ts b/frontend/src/app/features/calendar/wp-calendar/wp-calendar.component.ts
index 96a485e3c8b..5b1ac974305 100644
--- a/frontend/src/app/features/calendar/wp-calendar/wp-calendar.component.ts
+++ b/frontend/src/app/features/calendar/wp-calendar/wp-calendar.component.ts
@@ -88,6 +88,9 @@ export class WorkPackagesCalendarComponent extends UntilDestroyedMixin implement
}
ngOnInit():void {
+ this.wpTableFilters.hidden.push(
+ 'project',
+ );
this.calendar.resize$
.pipe(
this.untilDestroyed(),
diff --git a/frontend/src/app/features/team-planner/team-planner/page/team-planner-page.component.ts b/frontend/src/app/features/team-planner/team-planner/page/team-planner-page.component.ts
index 60ea610c42a..9757b3c18a6 100644
--- a/frontend/src/app/features/team-planner/team-planner/page/team-planner-page.component.ts
+++ b/frontend/src/app/features/team-planner/team-planner/page/team-planner-page.component.ts
@@ -103,6 +103,7 @@ export class TeamPlannerPageComponent extends PartitionedQuerySpacePageComponent
'memberOfGroup',
'assignedToRole',
'assigneeOrGroup',
+ 'project',
);
}
diff --git a/frontend/src/app/features/work-packages/routing/wp-view-page/wp-view-page.component.ts b/frontend/src/app/features/work-packages/routing/wp-view-page/wp-view-page.component.ts
index 33a985341f0..55f7fb69079 100644
--- a/frontend/src/app/features/work-packages/routing/wp-view-page/wp-view-page.component.ts
+++ b/frontend/src/app/features/work-packages/routing/wp-view-page/wp-view-page.component.ts
@@ -102,6 +102,9 @@ export class WorkPackageViewPageComponent extends PartitionedQuerySpacePageCompo
ngOnInit() {
super.ngOnInit();
+ this.wpTableFilters.hidden.push(
+ 'project',
+ );
this.text.button_settings = this.I18n.t('js.button_settings');
}
diff --git a/spec/features/projects/projects_portfolio_spec.rb b/spec/features/projects/projects_portfolio_spec.rb
index ce3aa8d7602..75bcba6a0c8 100644
--- a/spec/features/projects/projects_portfolio_spec.rb
+++ b/spec/features/projects/projects_portfolio_spec.rb
@@ -41,6 +41,7 @@ describe 'Projects index page',
let(:filters) { ::Components::WorkPackages::Filters.new }
let(:wp_table) { ::Pages::WorkPackagesTable.new }
let(:projects_page) { Pages::Projects::Index.new }
+ let(:dropdown) { ::Components::ProjectIncludeComponent.new }
before do
login_as admin
@@ -142,11 +143,11 @@ describe 'Projects index page',
expect(page).to have_selector '.group--value', text: 'B'
# Expect type and project filters
- filters.expect_filter_count 2
+ dropdown.expect_count 2
+ filters.expect_filter_count 1
filters.open
filters.expect_filter_by('Type', 'is', [type_milestone.name])
- filters.expect_filter_by('Project', 'is', [project_a.name, project_b.name])
# Expect columns
columns.open_modal