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

[FEATURE] 버전 관리 기능 추가 #116

Merged
merged 4 commits into from
Nov 29, 2023
Merged

[FEATURE] 버전 관리 기능 추가 #116

merged 4 commits into from
Nov 29, 2023

Conversation

bongsh0112
Copy link
Member

📝 PR Summary

앱 버전 기능을 추가합니다

🌲 Working Branch

feat/113-app-version

🌲 TODOs

  • 버전 테이블 신규 생성
  • 새로운 버전 save usecase
  • 버전 조회 usecase

Related Issues

#113

@bongsh0112 bongsh0112 self-assigned this Nov 28, 2023
@bongsh0112 bongsh0112 linked an issue Nov 28, 2023 that may be closed by this pull request
2 tasks
@Builder
public class VersionInfoVo {

@Schema(description = "AOS 버전입니다.")
Copy link
Contributor

Choose a reason for hiding this comment

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

혹시 모르니 스키마 설명 바꿔주시면 좋겠어용

Copy link
Member Author

Choose a reason for hiding this comment

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

import tify.server.domain.domains.AbstractTimeStamp;

@Getter
@Setter
Copy link
Contributor

Choose a reason for hiding this comment

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

setter말고 public 메서드로 업데이트 하는게 더 좋을 것 같아용

Copy link
Member Author

Choose a reason for hiding this comment

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

확인했습니닷

Comment on lines 24 to 34
aosVersion.ifPresentOrElse(
version::setAosVersion,
() -> {
version.setAosVersion(recentVersion.getAosVersion());
});
iosVersion.ifPresentOrElse(
version::setIosVersion,
() -> {
version.setIosVersion(recentVersion.getIosVersion());
});
versionAdaptor.save(version);
Copy link
Contributor

Choose a reason for hiding this comment

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

각각 Optional로 검증하고 version.updateAosVersion으로만 하면 굳이 다시 save할 필요 없을 것 같아용

Copy link
Member Author

Choose a reason for hiding this comment

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

이렇게 되면 Version 테이블에는 하나의 레코드만 있고 그걸 계속 변경하는 방식인가요?

Copy link
Contributor

Choose a reason for hiding this comment

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

넵 그러면 굳이 limit1로 version entity를 끌어오는게 아니고 항상 하나만 조회 할 수 있기 때문에 더 좋은 것 같아용

Copy link
Member Author

Choose a reason for hiding this comment

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

확인했습니당

Copy link
Contributor

@sanbonai06 sanbonai06 left a comment

Choose a reason for hiding this comment

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

수정사항 적어놨습니다

@bongsh0112 bongsh0112 merged commit 65b2a2f into dev Nov 29, 2023
1 check passed
@bongsh0112 bongsh0112 deleted the feat/113-app-version branch November 30, 2023 02:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] 앱 버전 관리 기능 추가
2 participants