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

* remove project from filters

* remove project from fliters where we have include projects modal

* change test to use include project instead of project filter
pull/10444/head
Behrokh Satarnejad 3 years ago committed by GitHub
parent ab31f6ad50
commit ea1d9a277a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      frontend/src/app/features/calendar/wp-calendar/wp-calendar.component.ts
  2. 1
      frontend/src/app/features/team-planner/team-planner/page/team-planner-page.component.ts
  3. 3
      frontend/src/app/features/work-packages/routing/wp-view-page/wp-view-page.component.ts
  4. 5
      spec/features/projects/projects_portfolio_spec.rb

@ -88,6 +88,9 @@ export class WorkPackagesCalendarComponent extends UntilDestroyedMixin implement
}
ngOnInit():void {
this.wpTableFilters.hidden.push(
'project',
);
this.calendar.resize$
.pipe(
this.untilDestroyed(),

@ -103,6 +103,7 @@ export class TeamPlannerPageComponent extends PartitionedQuerySpacePageComponent
'memberOfGroup',
'assignedToRole',
'assigneeOrGroup',
'project',
);
}

@ -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');
}

@ -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

Loading…
Cancel
Save