Skip to content

fix: fix LSB of Ticket Board#5937

Merged
yuda110 merged 1 commit intomasterfrom
hotfix-ticket-board
Jun 11, 2025
Merged

fix: fix LSB of Ticket Board#5937
yuda110 merged 1 commit intomasterfrom
hotfix-ticket-board

Conversation

@yuda110
Copy link
Member

@yuda110 yuda110 commented Jun 11, 2025

Skip Review (optional)

  • Minor changes that don't affect the functionality (e.g. style, chore, ci, test, docs)
  • Previously reviewed in feature branch, further review is not mandatory
  • Self-merge allowed for solo developers or urgent changes

Description (optional)

Things to Talk About (optional)

Signed-off-by: yuda <yuda@megazone.com>
@yuda110 yuda110 requested a review from Copilot June 11, 2025 07:55
@vercel
Copy link

vercel bot commented Jun 11, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
console ⬜️ Ignored (Inspect) Jun 11, 2025 7:55am
web-storybook ⬜️ Ignored (Inspect) Jun 11, 2025 7:55am

@github-actions
Copy link
Contributor

🎉 @piggggggggy has been randomly selected as the reviewer! Please review. 🙏

@github-actions
Copy link
Contributor

✅ There are no commits in this PR that require review.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR ensures that the Ticket Board’s task list reacts when categoryId changes by wrapping the context key and query key in computed for proper reactivity.

  • Wrap contextKey in a computed to react on props.categoryId updates
  • Wrap queryKey in a computed to watch the underlying query key ref
Comments suppressed due to low confidence (2)

apps/web/src/services/ops-flow/components/BoardTaskTable.vue:129

  • There are no tests verifying that changing props.categoryId triggers a new fetch. Consider adding a unit test to cover this reactive behavior and ensure queries update correctly.
contextKey: computed(() => props.categoryId ?? 'all'),

apps/web/src/services/ops-flow/components/BoardTaskTable.vue:137

  • To improve query caching and avoid key collisions, consider using a structured array for queryKey that includes the category and any dynamic params, e.g., computed(() => ['opsflow','task','list', props.categoryId ?? 'all', taskListApiQuery.value]).
queryKey: computed(() => taskListQueryKey.value),

@yuda110 yuda110 merged commit 463d135 into master Jun 11, 2025
13 checks passed
@yuda110 yuda110 deleted the hotfix-ticket-board branch June 13, 2025 06:31
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.

2 participants