-
Notifications
You must be signed in to change notification settings - Fork 1
[FIX] 댓글 작성자에게 알림이 가는 오류 해결 #127
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -66,6 +66,16 @@ Slice<AmateurShow> findByMember_IdAndStatusInOrderByIdDesc( | |
|
|
||
| List<AmateurShow> findByEndGreaterThanEqual(LocalDate today); | ||
|
|
||
| @Query(""" | ||
| SELECT a | ||
| FROM AmateurShow a | ||
| WHERE a.end >= :today | ||
| ORDER BY a.totalSoldTicket DESC, a.start ASC | ||
| """) | ||
| List<AmateurShow> findHotShows( | ||
| @Param("today") LocalDate today, | ||
| Pageable pageable | ||
| ); | ||
|
Comment on lines
+69
to
+78
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Check if totalSoldTicket field allows null and get its declaration
rg -nP 'private\s+(Integer|Long)\s+totalSoldTicket' --type=java -A2 -B2
# Check for @Index annotations on AmateurShow entity
rg -n '@Index|@Table\(' src/main/java/cc/backend/amateurShow/entity/AmateurShow.java -A5
# Also check the full AmateurShow entity file for context
echo "=== Full AmateurShow entity file ==="
find . -path "*/amateurShow/entity/AmateurShow.java" -type f | head -1 | xargs catRepository: SeeATheater/CC_Backend Length of output: 6042 Add COALESCE to ORDER BY clause and create a database index for the query. The Additionally, create a database index on 🤖 Prompt for AI Agents |
||
|
|
||
| @Query("select a from AmateurShow a") | ||
| @EntityGraph(attributePaths = {"amateurRounds", "amateurNotice"}, type = EntityGraph.EntityGraphType.FETCH) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Semantic mismatch between endpoint and implementation.
The endpoint
/incomingwith operation summary "공연 임박인 공연 조회 API" (retrieve upcoming shows) now callsgetRecentlyHotShow(), which returns shows sorted by sales (hot shows), not by temporal proximity (incoming shows). This creates a confusing API contract.Consider either:
/hotor/popularand updating the operation summary to reflect sales-based ranking🤖 Prompt for AI Agents