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

Feat: Edit InviteLink #49

Merged
merged 1 commit into from
Sep 4, 2024
Merged

Feat: Edit InviteLink #49

merged 1 commit into from
Sep 4, 2024

Conversation

sally0226
Copy link
Collaborator

PR Type

  • Bugfix
  • Feature
  • Docs
  • Refactoring (no functional changes, no api changes)

For what purpose

고도화 기능 구현

  • 초대링크 기본 Role을 WRITE -> READ로 변경
  • 초대링크 생성 시, Role을 유저가 설정할 수 있도록 변경

Key changes

  • invite link의 default mapRole을 WRITE -> READ로 변경
  • invite link 생성 API에 mapRole 을 body로 받을 수 있도록 추가
    • optional 필드로 설정 (default: READ)

To reviewers

Screenshots

- invite link의 default mapRole을 WRITE -> READ로 변경
- invite link 생성할 때, mapRole을 파라미터로 추가
import { UserMapRole, UserMapRoleValueType } from 'src/entities/index';

export class CreateInviteLinkDto {
@IsEnum([UserMapRole.WRITE, UserMapRole.READ])
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ADMIN으로 초대할 수 없도록 제한

Copy link
Collaborator

Choose a reason for hiding this comment

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

오잉! 우리 READ로만 일단 가기로 하지 않았었나요?

확장성을 위한 설계인가요?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

맞습니당~~ 기본이 READ고 WRITE로도 초대링크 생성할 수 있게 열어놔쓰예

@sally0226 sally0226 merged commit 1b97a65 into stage Sep 4, 2024
3 checks passed
@sally0226 sally0226 deleted the feat/invite-link-role branch September 4, 2024 03:47
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