Repository navigation
Use DeliveryProgress.is_queued() for queued_recipients so sent/passive messages don't show held - #2253
Merged
Conversation
…e messages don't show held
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
CheckedNotifications.queued_recipients(src/toad/client/notification_status.py:143) to askitem.state.is_queued()(added in Coreagent-comms#5128) instead ofnot item.state.is_consumed()(which misclassified 15 of 16DeliveryProgresssubclasses — includingSentProgress,PassiveProgress,HumanReadProgress,CompletedProgress,AnsweredProgress, andIgnoredProgress— as queued, keeping⧗ N heldandEnter queues · Send nowstuck visible forever when nothing was queued).test_checked_notifications_only_counts_actually_queued_recipientsintests/model/test_bus_queue_summary.pycovering allDeliveryProgressstates and verifyingBusQueueSourcehides held/queue UX when nothing is actually queued.tests/textual/test_input_failure_draft.pyto assert that sent messages in an idle peer's inbox (SentProgress) retire fromholds_inputand hideDeliveryControls.Verification
PYTHONPATH=src pytest -p no:xdist tests/model/test_bus_queue_summary.py tests/textual/test_input_failure_draft.py -v(12 passed in 17.36s)tools/qt_inherit_ratchet.py,tools/shadow_check.py,tools/guarded_imports.py(all 0)