[WEB-2029] fix: active cycle filter#5217
Conversation
WalkthroughThe recent changes enhance the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant ActiveCycleProductivity
participant CycleStore
User->>ActiveCycleProductivity: Request active cycle data
ActiveCycleProductivity->>CycleStore: Fetch active cycle
CycleStore->>CycleStore: Filter cycles by project_id and status
CycleStore-->>ActiveCycleProductivity: Return current active cycle
ActiveCycleProductivity-->>User: Display cycle data
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (2)
- web/core/components/cycles/active-cycle/productivity.tsx (1 hunks)
- web/core/store/cycle.store.ts (1 hunks)
Files skipped from review due to trivial changes (1)
- web/core/components/cycles/active-cycle/productivity.tsx
Additional comments not posted (1)
web/core/store/cycle.store.ts (1)
216-218: LGTM! But verify the function usage in the codebase.The code changes are approved.
However, ensure that all function calls to
currentProjectActiveCycleIdcorrectly handle the new logic.
Summary
Project was taking the the first cycle as the active cycle
Fix
currentProjectActiveCycleIdwas missing thestatus === 'current'check[WEB-2029]
Summary by CodeRabbit
Bug Fixes
New Features