Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ALCS-2345 Backend implementation #1946

Merged
merged 4 commits into from
Oct 31, 2024

Conversation

fbarreta
Copy link
Collaborator

Backend implementation for NOI Tags

@fbarreta fbarreta self-assigned this Oct 30, 2024
@ApiOAuth2(config.get<string[]>('KEYCLOAK.SCOPES'))
@UseGuards(RolesGuard)
export class NoticeOfIntentTagController {
private logger = new Logger(NoticeOfIntentTagController.name);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like this logger is never used.


@Injectable()
export class NoticeOfIntentTagService {
private logger = new Logger(NoticeOfIntentTagService.name);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same with this one.

throw new ServiceNotFoundException(`Notice of Intent not found with number ${fileNumber}`);
}
return noi.tags && noi.tags.length > 0
? noi.tags.sort((a, b) => a.auditCreatedAt.getTime() - b.auditCreatedAt.getTime())
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment I made on #1945: I generally feel sorting should be done on database.

Copy link
Collaborator

@trslater trslater left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

@fbarreta fbarreta merged commit 718a10e into develop Oct 31, 2024
5 checks passed
@fbarreta fbarreta deleted the feature/ALCS-2345-tags-on-nois-backend branch October 31, 2024 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants