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
Rename IanServie to IanResourceService
Oliver Günther4ef66b80fd44
diff --git a/frontend/src/app/core/state/in-app-notifications/in-app-notifications.service.ts b/frontend/src/app/core/state/in-app-notifications/in-app-notifications.service.tsindex a143b94ae3c..355419c6b01 100644--- a/frontend/src/app/core/state/in-app-notifications/in-app-notifications.service.ts+++ b/frontend/src/app/core/state/in-app-notifications/in-app-notifications.service.ts@@ -29,7 +29,7 @@ import { ActionsService } from 'core-app/core/state/actions/actions.service';@EffectHandler@Injectable()-export class InAppNotificationsService {+export class InAppNotificationsResourceService {protected store = new InAppNotificationsStore();readonly query = new InAppNotificationsQuery(this.store);diff --git a/frontend/src/app/core/state/openproject-state.module.ts b/frontend/src/app/core/state/openproject-state.module.tsindex fc57ff30553..096e012f8e1 100644--- a/frontend/src/app/core/state/openproject-state.module.ts+++ b/frontend/src/app/core/state/openproject-state.module.ts@@ -29,11 +29,11 @@import {NgModule,} from '@angular/core';-import { InAppNotificationsService } from 'core-app/core/state/in-app-notifications/in-app-notifications.service';+import { InAppNotificationsResourceService } from 'core-app/core/state/in-app-notifications/in-app-notifications.service';@NgModule({providers: [- InAppNotificationsService,+ InAppNotificationsResourceService,],})export class OpenProjectStateModule {diff --git a/frontend/src/app/features/in-app-notifications/bell/state/ian-bell.service.ts b/frontend/src/app/features/in-app-notifications/bell/state/ian-bell.service.tsindex fef96084f7d..5b161f5c1a4 100644--- a/frontend/src/app/features/in-app-notifications/bell/state/ian-bell.service.ts+++ b/frontend/src/app/features/in-app-notifications/bell/state/ian-bell.service.ts@@ -1,6 +1,6 @@import { Injectable } from '@angular/core';import { IanBellStore } from './ian-bell.store';-import { InAppNotificationsService } from 'core-app/core/state/in-app-notifications/in-app-notifications.service';+import { InAppNotificationsResourceService } from 'core-app/core/state/in-app-notifications/in-app-notifications.service';import { IAN_FACET_FILTERS } from 'core-app/features/in-app-notifications/center/state/ian-center.store';import {map,@@ -28,12 +28,12 @@ export class IanBellService {constructor(readonly actions$:ActionsService,- readonly ianService:InAppNotificationsService,+ readonly resourceService:InAppNotificationsResourceService,) {}fetchUnread():Observable<number> {- return this.ianService+ return this.resourceService.fetchNotifications({ filters: IAN_FACET_FILTERS.unread, pageSize: 0 }).pipe(map((result) => result.total),diff --git a/frontend/src/app/features/in-app-notifications/center/state/ian-center.query.ts b/frontend/src/app/features/in-app-notifications/center/state/ian-center.query.tsindex 5f8cff2979d..8bb6a6feee5 100644--- a/frontend/src/app/features/in-app-notifications/center/state/ian-center.query.ts+++ b/frontend/src/app/features/in-app-notifications/center/state/ian-center.query.ts@@ -4,7 +4,7 @@ import {IanCenterState,IanCenterStore,} from 'core-app/features/in-app-notifications/center/state/ian-center.store';-import { InAppNotificationsService } from 'core-app/core/state/in-app-notifications/in-app-notifications.service';+import { InAppNotificationsResourceService } from 'core-app/core/state/in-app-notifications/in-app-notifications.service';import {map,switchMap,@@ -23,7 +23,7 @@ export class IanCenterQuery extends Query<IanCenterState> {selectNotifications$ = this.paramsChanges$.pipe(- switchMap(() => selectCollectionAsEntities$<InAppNotification>(this.ianService, this.params)),+ switchMap(() => selectCollectionAsEntities$<InAppNotification>(this.resourceService, this.params)),);aggregatedCenterNotifications$ = this@@ -59,7 +59,7 @@ export class IanCenterQuery extends Query<IanCenterState> {constructor(protected store:IanCenterStore,- protected ianService:InAppNotificationsService,+ protected resourceService:InAppNotificationsResourceService,) {super(store);}diff --git a/frontend/src/app/features/in-app-notifications/center/state/ian-center.service.ts b/frontend/src/app/features/in-app-notifications/center/state/ian-center.service.tsindex ae3be1d159f..43e7a816508 100644--- a/frontend/src/app/features/in-app-notifications/center/state/ian-center.service.ts+++ b/frontend/src/app/features/in-app-notifications/center/state/ian-center.service.ts@@ -25,7 +25,7 @@ import { ActionsService } from 'core-app/core/state/actions/actions.service';import { HalResource } from 'core-app/features/hal/resources/hal-resource';import { APIV3Service } from 'core-app/core/apiv3/api-v3.service';import { from } from 'rxjs';-import { InAppNotificationsService } from 'core-app/core/state/in-app-notifications/in-app-notifications.service';+import { InAppNotificationsResourceService } from 'core-app/core/state/in-app-notifications/in-app-notifications.service';import { selectCollectionAsHrefs$ } from 'core-app/core/state/collection-store';@Injectable()@@ -35,11 +35,11 @@ export class IanCenterService {readonly store = new IanCenterStore();- readonly query = new IanCenterQuery(this.store, this.ianService);+ readonly query = new IanCenterQuery(this.store, this.resourceService);constructor(readonly injector:Injector,- readonly ianService:InAppNotificationsService,+ readonly resourceService:InAppNotificationsResourceService,readonly actions$:ActionsService,readonly apiV3Service:APIV3Service,) {@@ -57,7 +57,7 @@ export class IanCenterService {}markAllAsRead():void {- selectCollectionAsHrefs$(this.ianService, this.query.params)+ selectCollectionAsHrefs$(this.resourceService, this.query.params).pipe(take(1),)@@ -73,7 +73,7 @@ export class IanCenterService {private reloadOnNotificationRead(action:ReturnType<typeof notificationsMarkedRead>) {if (action.caller === this) {this- .ianService+ .resourceService.removeFromCollection(this.query.params, action.notifications);} else {this.reload();@@ -81,7 +81,7 @@ export class IanCenterService {}private reload() {- this.ianService+ this.resourceService.fetchNotifications(this.query.params).subscribe((results) => this.sideLoadInvolvedWorkPackages(results._embedded.elements),diff --git a/frontend/src/app/features/work-packages/routing/wp-view-base/state/wp-single-view.query.ts b/frontend/src/app/features/work-packages/routing/wp-view-base/state/wp-single-view.query.tsindex 7f95ccc6a73..09dfcefd849 100644--- a/frontend/src/app/features/work-packages/routing/wp-view-base/state/wp-single-view.query.ts+++ b/frontend/src/app/features/work-packages/routing/wp-view-base/state/wp-single-view.query.ts@@ -10,7 +10,7 @@ import {} from 'rxjs/operators';import { selectCollectionAsEntities$ } from 'core-app/core/state/collection-store';import { InAppNotification } from 'core-app/core/state/in-app-notifications/in-app-notification.model';-import { InAppNotificationsService } from 'core-app/core/state/in-app-notifications/in-app-notifications.service';+import { InAppNotificationsResourceService } from 'core-app/core/state/in-app-notifications/in-app-notifications.service';import { Apiv3ListParameters } from 'core-app/core/apiv3/paths/apiv3-list-resource.interface';export class WpSingleViewQuery extends Query<WpSingleViewState> {@@ -18,7 +18,7 @@ export class WpSingleViewQuery extends Query<WpSingleViewState> {.select((state) => state.notifications.filters).pipe(filter((filters) => filters.length > 0),- switchMap((filters) => selectCollectionAsEntities$<InAppNotification>(this.ianService, { filters })),+ switchMap((filters) => selectCollectionAsEntities$<InAppNotification>(this.resourceService, { filters })),);selectNotificationsCount$ = this@@ -39,7 +39,7 @@ export class WpSingleViewQuery extends Query<WpSingleViewState> {constructor(protected store:WpSingleViewStore,- protected ianService:InAppNotificationsService,+ protected resourceService:InAppNotificationsResourceService,) {super(store);}diff --git a/frontend/src/app/features/work-packages/routing/wp-view-base/state/wp-single-view.service.ts b/frontend/src/app/features/work-packages/routing/wp-view-base/state/wp-single-view.service.tsindex 68b98b03f72..1f44ca759b7 100644--- a/frontend/src/app/features/work-packages/routing/wp-view-base/state/wp-single-view.service.ts+++ b/frontend/src/app/features/work-packages/routing/wp-view-base/state/wp-single-view.service.ts@@ -3,7 +3,7 @@ import { WpSingleViewStore } from './wp-single-view.store';import { WpSingleViewQuery } from 'core-app/features/work-packages/routing/wp-view-base/state/wp-single-view.query';import { take } from 'rxjs/operators';import { selectCollectionAsHrefs$ } from 'core-app/core/state/collection-store';-import { InAppNotificationsService } from 'core-app/core/state/in-app-notifications/in-app-notifications.service';+import { InAppNotificationsResourceService } from 'core-app/core/state/in-app-notifications/in-app-notifications.service';import { ApiV3ListFilter } from 'core-app/core/apiv3/paths/apiv3-list-resource.interface';import {markNotificationsAsRead,@@ -22,11 +22,11 @@ export class WpSingleViewService {protected store = new WpSingleViewStore();- readonly query = new WpSingleViewQuery(this.store, this.ianService);+ readonly query = new WpSingleViewQuery(this.store, this.resourceService);constructor(readonly actions$:ActionsService,- private ianService:InAppNotificationsService,+ private resourceService:InAppNotificationsResourceService,) {}@@ -50,7 +50,7 @@ export class WpSingleViewService {}markAllAsRead():void {- selectCollectionAsHrefs$(this.ianService, { filters: this.store.getValue().notifications.filters })+ selectCollectionAsHrefs$(this.resourceService, { filters: this.store.getValue().notifications.filters }).pipe(take(1),)@@ -63,7 +63,7 @@ export class WpSingleViewService {private reload() {this- .ianService+ .resourceService.fetchNotifications(this.query.params).subscribe();}