Skip to content

Conversation

@liveforpresent
Copy link
Contributor

작업 내용

  • Organization(기관)/인증 기능 개발
  • 기관 전용 업로드, 조회, 수정, 삭제는 아직 적용 안 함(이것부터 머지하고 작업 예정)
  • Auth를 auth-user(일반 회원), auth-core(공통), auth-organization(기관)으로 분할
  • 이것 저것 쪼개서 커밋해서 파일 수랑 커밋 개수가 많아짐....

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request updates dependencies and refactors authentication-related code. The changes include:

  • Dependency updates (major version bumps for AWS SDK, Angular DevKit, TypeScript ESLint, and other packages)
  • Refactoring of authentication entities from AuthEntity to separate AuthUserEntity and AuthOrganizationEntity
  • Addition of bcrypt for password hashing
  • New organization module with command and query patterns
  • Removal of OAuth provider logic from shared module

Reviewed Changes

Copilot reviewed 90 out of 101 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
yarn.lock Major dependency updates including AWS SDK v3.888→v3.922, @Angular-devkit packages, and bcrypt addition
src/user/command/infrastructure/user.entity.ts Updated auth relationship from AuthEntity to AuthUserEntity
src/user/command/infrastructure/user.command.repository.impl.ts Updated populate field from 'auth' to 'authUser'
src/user/command/application/delete/delete.listener.ts New event listener for auth deletion
src/user/command/application/delete/delete.handler.ts Removed OAuth provider logic
src/shared/shared.module.ts Removed OAuth and auth repository providers
src/shared/exception/custom-exception-code.ts Added exception codes for AuthUser, AuthOrganization, and Organization
src/organization/* New organization module with command/query pattern implementation

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

[CustomExceptionCode.AUTH_ORGANIZATION_NOT_FOUND]: {
status: HttpStatus.NOT_FOUND,
message: '[AuthOrganization] 해당 계정 정보가 존재하지 않습니다.',
//message: '[AuthOrganization] 해당 기관 인증 정보가 존재하지 않습니다.',
Copy link

Copilot AI Nov 9, 2025

Choose a reason for hiding this comment

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

Remove commented-out code. If these alternative messages are needed, they should be documented separately or removed entirely.

Copilot uses AI. Check for mistakes.
[CustomExceptionCode.AUTH_ORGANIZATION_INVALID_PASSWORD]: {
status: HttpStatus.UNAUTHORIZED,
message: '[AuthOrganization] 해당 계정 정보가 존재하지 않습니다.',
//message: '[AuthOrganization] 비밀번호가 올바르지 않습니다.',
Copy link

Copilot AI Nov 9, 2025

Choose a reason for hiding this comment

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

Remove commented-out code. If these alternative messages are needed, they should be documented separately or removed entirely.

Copilot uses AI. Check for mistakes.
@@ -1,5 +1,5 @@
import { EventsHandler, IEventHandler } from '@nestjs/cqrs';
import { AuthCreatedEvent } from 'src/auth/domain/event/auth-created.event';
import { AuthCreatedEvent } from 'src/auth/auth-user/domain/event/auth-created.event';
Copy link

Copilot AI Nov 9, 2025

Choose a reason for hiding this comment

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

The import path contains 'infrasturcture' (typo) in the related AuthUserEntity import in user.entity.ts (line 2). Verify the actual directory name is 'infrastructure' not 'infrasturcture'.

Copilot uses AI. Check for mistakes.
@liveforpresent liveforpresent merged commit c5c11e4 into develop Nov 13, 2025
1 check failed
@liveforpresent liveforpresent deleted the feature/organization branch November 13, 2025 04:36
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