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

[REFACT] 진행중인 프로젝트만 밀집도 랭크에 반영되게 수정 + 디폴트 랭크 제거 #318

Merged
merged 1 commit into from
Mar 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public ProjectDensityRankRes getDensityRankProjects() {
DENSITY_RANK_LIMIT);

// 필요한 경우 기본 지역 순위 목록으로 채움
fillWithDefaultRegionsIfNecessary(regionRankList);
// fillWithDefaultRegionsIfNecessary(regionRankList);

return new ProjectDensityRankRes(regionRankList);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ public CursorPaginationResult<ProjectInfoAPIRes> findByCreatorIdWithPagination(
public List<Region> getDensityRankProjectsByRegion(int limit) {
return jpaQueryFactory.select(project.creatorInfo.region)
.from(project)
.where(projectStatusEq(ProjectStatus.PENDING))
.groupBy(project.creatorInfo.region)
.having(project.creatorInfo.region.count().gt(0L))
.orderBy(project.creatorInfo.region.count().desc())
Expand Down
Loading