fix(Platform Hub): Use STALE tag for stale flags count#6716
Draft
talissoncosta wants to merge 1 commit intomainfrom
Draft
fix(Platform Hub): Use STALE tag for stale flags count#6716talissoncosta wants to merge 1 commit intomainfrom
talissoncosta wants to merge 1 commit intomainfrom
Conversation
…oard The backend was using timestamp-based queries on FeatureState.updated_at to count stale flags, which was inconsistent with the Feature Lifecycle page that uses the STALE tag. Replace with tag-based queries to match the workflows_logic.stale_flags auto-tagging logic, and remove the frontend inversion workaround that was compensating for the wrong data. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6716 +/- ##
==========================================
- Coverage 98.23% 98.23% -0.01%
==========================================
Files 1311 1311
Lines 48480 48474 -6
==========================================
- Hits 47623 47617 -6
Misses 857 857 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
get_stale_flags_per_projectand_get_stale_flag_counts_by_orgSupersedes #6715.
Context
The backend was using
FeatureState.updated_attimestamps to determine staleness, which was inconsistent with the Feature Lifecycle page that uses theSTALEtag assigned byworkflows_logic.stale_flags. The timestamp query was also affected by identity/segment override timestamps, producing incorrect counts.Test plan
tests/unit/platform_hub/test_services.py— updated tests use STALE tags instead of timestamp manipulation🤖 Generated with Claude Code