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

minimum version 내림차순으로 config 정렬하여 처음거 선택 #284

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

asp345
Copy link
Member

@asp345 asp345 commented Oct 9, 2024

No description provided.

@asp345 asp345 requested review from PFCJeong and a team as code owners October 9, 2024 11:50
@asp345 asp345 requested review from davin111, Hank-Choi and SeonghaeJo and removed request for a team October 9, 2024 11:50
@Hank-Choi
Copy link
Contributor

이슈 설명 써주세요

when (osType) {
OsType.ANDROID -> it.minAndroidVersion
OsType.IOS -> it.minIosVersion
else -> it.minAndroidVersion
Copy link
Contributor

@SeonghaeJo SeonghaeJo Oct 9, 2024

Choose a reason for hiding this comment

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

큰 상관은 없을 것 같은데 else 일 때는 createdAt이나 updatedAt으로 정렬하는 건 어떤가요?

@asp345
Copy link
Member Author

asp345 commented Oct 9, 2024

https://wafflestudio.slack.com/archives/C0PAVPS5T/p1728473406229769?thread_ts=1728127630.634169&cid=C0PAVPS5T
@Hank-Choi config 등록하는 api 사용하실때 max version을 예측할 수가 없어서 안넣는 경우가 많아보여서
여러개가 조건에 맞으면 min version이 가장 높은걸 주는게 좋을것 같습니다

@SeonghaeJo
Copy link
Contributor

그런데 DB 보니깐 min version도 없는 경우가 있는데, 이런 경우엔 어떻게 처리되는건가요?

@Hank-Choi
Copy link
Contributor

Hank-Choi commented Oct 9, 2024

그냥 삽입 시점에 name과 버전이 겹치는 걸 막는게 낫지 않을까요?
DB 데이터 볼 때 헷갈릴 것 같아요

이런 경우에 max 가 null이면 새로 삽입을 아예 막도록 해야
admin 입장에서도 이전 config maxVersion도 새로 설정해야 한다는 사실을 알고 config이 꼬이지 않을 것 같아요

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.

3 participants