Skip to content

Conversation

@marcoacierno
Copy link
Member

Fix #4460: Instead of trying to keep pending_status in sync with status,
now assume that if pending_status is None, there isn't any pending change.
While if it is set, it means the submission new pending status is the
one set in the variable.

Changes:

  • Update pending_status field to allow null=True
  • Remove automatic sync logic from save method
  • Add current_or_pending_status property
  • Update admin queryset to filter by null pending_status
  • Update reviews template to use current_or_pending_status
  • Update tests to reflect new behavior

Generated with Claude Code

Fix #4460: Instead of trying to keep pending_status in sync with status,
now assume that if pending_status is None, there isn''t any pending change.
While if it is set, it means the submission new pending status is the
one set in the variable.

Changes:
- Update pending_status field to allow null=True
- Remove automatic sync logic from save method
- Add current_or_pending_status property
- Update admin queryset to filter by null pending_status
- Update reviews template to use current_or_pending_status
- Update tests to reflect new behavior

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-authored-by: Marco Acierno <marcoacierno@users.noreply.github.com>
@vercel
Copy link

vercel bot commented Aug 3, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
pycon Ready Ready Preview Nov 1, 2025 7:29pm

@codecov
Copy link

codecov bot commented Nov 1, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.52%. Comparing base (6da82fc) to head (4a84325).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4461      +/-   ##
==========================================
- Coverage   94.53%   94.52%   -0.01%     
==========================================
  Files         352      352              
  Lines       10131    10127       -4     
  Branches      733      731       -2     
==========================================
- Hits         9577     9573       -4     
  Misses        461      461              
  Partials       93       93              
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@marcoacierno marcoacierno merged commit 44a08c8 into main Nov 1, 2025
7 checks passed
@marcoacierno marcoacierno deleted the claude/issue-4460-20250803-1750 branch November 1, 2025 19:32
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.

Change how the submission pending status works like we did for grants

2 participants