Skip to content

Commit

Permalink
[ansible] kubespray 구성
Browse files Browse the repository at this point in the history
  • Loading branch information
wonyongChoi05 committed Sep 5, 2024
1 parent e971413 commit 05a3f7f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
5 changes: 1 addition & 4 deletions backend/http/get-pet-foods.http
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,4 @@ Content-Type: application/json

###

GET http://localhost:8080/pet-foods/filters



GET http://localhost:8081/pets/breeds
5 changes: 5 additions & 0 deletions backend/http/http-client.env.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"local": {
"name": "localhost:8080/pets/breeds"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import static zipgo.pet.domain.QBreed.breed;
import static zipgo.pet.domain.QPet.pet;
import static zipgo.pet.domain.QPetSize.petSize;
import static zipgo.review.application.SortBy.*;
import static zipgo.review.domain.QAdverseReaction.adverseReaction;
import static zipgo.review.domain.QHelpfulReaction.helpfulReaction;
import static zipgo.review.domain.QReview.review;
Expand Down Expand Up @@ -126,16 +127,16 @@ private BooleanExpression afterThan(Long lastReviewId) {
}

private OrderSpecifier getSorter(SortBy sortBy) {
if (sortBy == SortBy.RECENT) {
if (sortBy == RECENT) {
return review.id.desc();
}
if (sortBy == SortBy.RAGING_DESC) {
if (sortBy == RAGING_DESC) {
return review.rating.desc();
}
if (sortBy == SortBy.RATING_ASC) {
if (sortBy == RATING_ASC) {
return review.rating.asc();
}
if (sortBy == SortBy.HELPFUL) {
if (sortBy == HELPFUL) {
return review.helpfulReactions.size().desc();
}
return review.id.desc();
Expand Down
2 changes: 0 additions & 2 deletions backend/src/main/resources/application-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ server:
---
# database
spring:
config:
import: classpath:/env.properties
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: ${JDBC_URL}
Expand Down

0 comments on commit 05a3f7f

Please sign in to comment.