Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include the queue name messages came from #65

Merged
merged 3 commits into from
Sep 10, 2018

Conversation

jeremycline
Copy link
Member

This adds a new queue attribute to messages and sets it in the Twisted and not-Twisted backends.

The backstory for this is that I'm playing with fmn-next and set up one queue per user per delivery method and set the queue names to be the primary key of the database object with delivery information (irc nick, email address, etc). This means, however, that I need to get the queue name from the message. I think this could be a generally useful attribute, however, so I've made it a public variable in this patch set.

Consumers can consume from multiple queues at once. Consumers may wish
to know the name of the queue a message originated from for a number of
reasons. This adds ``queue`` instance variable which is set when a
message is received from a queue.

Signed-off-by: Jeremy Cline <jcline@redhat.com>
Signed-off-by: Jeremy Cline <jcline@redhat.com>
Signed-off-by: Jeremy Cline <jcline@redhat.com>
@jeremycline jeremycline requested a review from a team as a code owner September 7, 2018 21:22
@codecov-io
Copy link

codecov-io commented Sep 7, 2018

Codecov Report

Merging #65 into master will increase coverage by 0.07%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #65      +/-   ##
==========================================
+ Coverage   92.35%   92.43%   +0.07%     
==========================================
  Files          11       11              
  Lines         798      806       +8     
  Branches      110      110              
==========================================
+ Hits          737      745       +8     
  Misses         40       40              
  Partials       21       21
Impacted Files Coverage Δ
fedora_messaging/message.py 100% <100%> (ø) ⬆️
fedora_messaging/twisted/protocol.py 99.2% <100%> (+0.02%) ⬆️
fedora_messaging/_session.py 81.49% <100%> (+0.24%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ea08c15...dcf9fe3. Read the comment docs.

@mergify mergify bot merged commit 2f5a976 into fedora-infra:master Sep 10, 2018
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.

3 participants