Skip to content

fix(standup): eliminate N+1 query pattern in feedback retrieval#20

Closed
AngryJay91 wants to merge 2 commits intomainfrom
fix/issue-14-standup-n1
Closed

fix(standup): eliminate N+1 query pattern in feedback retrieval#20
AngryJay91 wants to merge 2 commits intomainfrom
fix/issue-14-standup-n1

Conversation

@AngryJay91
Copy link
Copy Markdown
Owner

Summary

Fixes #14 — N+1 query pattern when fetching standup feedback for all entries in a sprint.

Problem

When viewing standup feedback for a sprint, callers had to:

  1. Fetch all entries: GET /standup/entries?sprint=X → N rows
  2. Loop: GET /standup/feedback?standup_entry_id=N × N → N separate DB queries

Solution

API changes

  • New: GET /standup/entries-with-feedback?sprint= — returns entries with feedback embedded. Uses 2 queries total (entries + one IN-clause batch for feedback), regardless of member count.
  • New: GET /standup/feedback?sprint= (sprint-only mode) — batch fetch all feedback for a sprint in one query.

MCP tool changes

  • New tool: list_standup_entries_with_feedback — batch retrieval, preferred over calling get_standup_feedback per entry.
  • Updated: get_standup_feedback now supports sprint-only parameter for batch mode.

No breaking changes

  • All existing endpoints and response shapes are preserved.
  • All pre-existing type errors (index.ts, v2-meetings, v2-rewards) were not introduced by this PR.

- MockupEditorPage: Lock/Unlock icons were rendered as literal strings
  inside mustache {{ }} instead of as Vue components. Fixed by using
  v-if/v-else with <Icon> components directly in the template.

- MockupListPage: Desktop viewport icon was a string literal
  '<Icon name="monitor" />' inside {{ }}. Fixed by using v-if/v-else
  with proper <Icon> component rendering alongside the mobile 📱 emoji.

Closes #17
…oubleshooting

- Add detailed command reference for init, hydrate, deploy, migrate, doctor
- Document --platform option with supported values (claude-code, codex, gemini)
- Add Troubleshooting section covering common setup/runtime issues
- Fix CLI reference to include deploy and migrate commands (were missing)

Closes #16
@AngryJay91
Copy link
Copy Markdown
Owner Author

Branch contaminated with unrelated changes. Will recreate from clean main.

@AngryJay91 AngryJay91 closed this Mar 31, 2026
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.

P2-2: Standup 피드백 N+1 API 패턴 수정

1 participant