Skip to content

Commit

Permalink
Code Review Feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Haselhan committed Mar 6, 2024
1 parent 138bd54 commit f72ab31
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 6 deletions.
3 changes: 2 additions & 1 deletion alcs-frontend/src/app/features/board/board.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ export class BoardComponent implements OnInit, OnDestroy {
private mapPlanningReferralToCard(referral: PlanningReferralDto): CardData {
return {
status: referral.card.status.code,
typeLabel: 'Non-Application',
typeLabel: 'Planning Review',
title: `${referral.planningReview.fileNumber} (${referral.planningReview.documentName})`,
titleTooltip: referral.planningReview.type.label,
assignee: referral.card.assignee,
Expand All @@ -395,6 +395,7 @@ export class BoardComponent implements OnInit, OnDestroy {
highPriority: referral.card.highPriority,
cardUuid: referral.card.uuid,
dateReceived: referral.card.createdAt,
dueDate: referral.dueDate ? new Date(referral.dueDate) : undefined,
};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ export enum CARD_TYPE {
NOTIFICATION = 'NOTI',
}

@Entity({
comment: '',
})
@Entity()
export class CardType extends BaseCodeEntity {
constructor(data?: Partial<CardType>) {
super();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ import { Base } from '../../../common/entities/base.entity';
import { Card } from '../../card/card.entity';
import { PlanningReview } from '../planning-review.entity';

@Entity()
@Entity({
comment:
'Planning Referrals represent each pass of a Planning Review with their own cards',
})
export class PlanningReferral extends Base {
constructor(data?: Partial<PlanningReferral>) {
super();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import { ApplicationRegion } from '../code/application-code/application-region/a
import { LocalGovernment } from '../local-government/local-government.entity';
import { PlanningReviewType } from './planning-review-type.entity';

@Entity()
@Entity({
comment: 'A review of a local government or municipalities plan',
})
export class PlanningReview extends Base {
constructor(data?: Partial<PlanningReview>) {
super();
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { MigrationInterface, QueryRunner } from 'typeorm';

export class AddTableCommentsToPr1709754346579 implements MigrationInterface {
name = 'AddTableCommentsToPr1709754346579';

public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`COMMENT ON TABLE "alcs"."planning_review" IS 'A review of a local government or municipalities plan'`,
);
await queryRunner.query(
`COMMENT ON TABLE "alcs"."planning_referral" IS 'Planning Referrals represent each pass of a Planning Review with their own cards'`,
);
}

public async down(): Promise<void> {
//No
}
}

0 comments on commit f72ab31

Please sign in to comment.