From 2f644dd44614927e32c051919028e273087bd7aa Mon Sep 17 00:00:00 2001 From: Miguel Lehmann Date: Thu, 23 Jan 2025 15:13:39 +0100 Subject: [PATCH] formatting and remove useless lines --- backend/src/main/java/ch/puzzle/okr/dto/ObjectiveDto.java | 5 +++-- frontend/src/app/interceptors/error.interceptor.ts | 1 - frontend/src/app/shared/constant-library.ts | 2 -- frontend/src/app/shared/types/model/objective.ts | 1 + 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/backend/src/main/java/ch/puzzle/okr/dto/ObjectiveDto.java b/backend/src/main/java/ch/puzzle/okr/dto/ObjectiveDto.java index f0260563f5..2bd73f0c6c 100644 --- a/backend/src/main/java/ch/puzzle/okr/dto/ObjectiveDto.java +++ b/backend/src/main/java/ch/puzzle/okr/dto/ObjectiveDto.java @@ -3,6 +3,7 @@ import ch.puzzle.okr.models.State; import java.time.LocalDateTime; -public record ObjectiveDto(Long id, int version, String title, Long teamId, Long quarterId, String quarterLabel, boolean isBacklogQuarter, - String description, State state, LocalDateTime createdOn, LocalDateTime modifiedOn, boolean isWriteable) { +public record ObjectiveDto(Long id, int version, String title, Long teamId, Long quarterId, String quarterLabel, + boolean isBacklogQuarter, String description, State state, LocalDateTime createdOn, LocalDateTime modifiedOn, + boolean isWriteable) { } diff --git a/frontend/src/app/interceptors/error.interceptor.ts b/frontend/src/app/interceptors/error.interceptor.ts index 697fe928b1..66f3ce7f43 100644 --- a/frontend/src/app/interceptors/error.interceptor.ts +++ b/frontend/src/app/interceptors/error.interceptor.ts @@ -55,7 +55,6 @@ export class ErrorInterceptor implements HttpInterceptor { } let messageKey = successMessageObj.key; - console.log(response.body); const isBacklogQuarter = response.body?.isBacklogQuarter; if (messageKey == 'OBJECTIVE.POST' && isBacklogQuarter) { messageKey += '_BACKLOG'; diff --git a/frontend/src/app/shared/constant-library.ts b/frontend/src/app/shared/constant-library.ts index a5c002d38a..e630fcf3e9 100644 --- a/frontend/src/app/shared/constant-library.ts +++ b/frontend/src/app/shared/constant-library.ts @@ -32,8 +32,6 @@ export const DATE_FORMAT = 'dd.MM.yyyy'; export const DRAWER_ROUTES = ['objective', 'keyresult']; -export const GJ_REGEX_PATTERN = /^GJ \d{2}\/\d{2}-Q\d$/; - export const SUCCESS_MESSAGE_MAP: MessageKeyMap = { teams: { KEY: 'TEAM', diff --git a/frontend/src/app/shared/types/model/objective.ts b/frontend/src/app/shared/types/model/objective.ts index 1a87e93faa..38e2c0b072 100644 --- a/frontend/src/app/shared/types/model/objective.ts +++ b/frontend/src/app/shared/types/model/objective.ts @@ -10,6 +10,7 @@ export interface Objective { teamId: number; quarterId: number; quarterLabel: string; + isBacklogQuarter: boolean; createdOn?: Date; modifiedOn?: Date; createdBy?: User;