Fix grant pending status sync issue#4431
Conversation
Change pending_status field logic: - pending_status=None means no pending change (use current status) - pending_status=value means there''s a pending status change This fixes the issue where confirmed grants still showed as pending. Changes: - Modified Grant.pending_status field to allow null values - Removed problematic sync logic in save() method - Updated _calculate_grant_amounts to use effective status - Updated admin queries and actions to work with new logic - Updated tests to reflect new behavior Co-authored-by: Marco Acierno <marcoacierno@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4431 +/- ##
=======================================
Coverage 94.53% 94.53%
=======================================
Files 352 352
Lines 10130 10131 +1
Branches 734 733 -1
=======================================
+ Hits 9576 9577 +1
Misses 461 461
Partials 93 93 🚀 New features to boost your workflow:
|
|
@claude test_reset_pending_status_back_to_status_action is failing as it needs to be updated with the new logic |
|
Claude finished @marcoacierno's task —— View job Fixing failing test
|
…tatus logic Update test assertions to expect pending_status=None after reset action, which aligns with the new logic where None means no pending change. Co-authored-by: Marco Acierno <marcoacierno@users.noreply.github.com>
Fixes #4408
Summary
Test plan