-
Notifications
You must be signed in to change notification settings - Fork 38
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
Outgoing phases, default responses #2
Open
thedavidmccann
wants to merge
15
commits into
nyaruka:master
Choose a base branch
from
thedavidmccann:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 11 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
35e1444
removed default response from router, re-added outgoing phases from l…
thedavidmccann e8c4808
added handled_by field to Message model and routing logic
thedavidmccann 5b72f74
added application to outgoing messages as well
thedavidmccann 6e4cac1
merge changes
thedavidmccann 259cb23
added message totals summary page
thedavidmccann 5de856f
merge conflict
thedavidmccann 34d4df3
kickstarting worker
thedavidmccann 750c94c
minor fix
thedavidmccann 622b2a4
added different worker timeouts
thedavidmccann edd6660
added bulk messaging to httprouter
thedavidmccann dc180fb
added mass text method, test cases for bulk insert messaging
thedavidmccann ed0c3be
fixes to bulk manager
thedavidmccann 59fb5fb
fixes to m2m insert for bulk manager
thedavidmccann 4a1b8d2
reverting connection argument
thedavidmccann b4b4f48
fix for when redirecting to the console from a login page (looks for …
thedavidmccann File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
{% extends "layout.html" %} | ||
|
||
{% block title %}Message Report - {{ block.super }}{% endblock %} | ||
|
||
{% block content %} | ||
<div class="module"> | ||
<h2>Message Summary</h2> | ||
<table> | ||
<thead> | ||
<tr> | ||
<td rowspan="2">Month</td> | ||
<td rowspan="2">Year</td> | ||
{% regroup messages|dictsort:"connection__backend__name" by connection__backend__name as link_list %} | ||
{% for backend in link_list %} | ||
<td colspan="2">{{ backend.grouper }}</td> | ||
{% endfor %} | ||
</tr> | ||
<tr> | ||
{% for backend in link_list %} | ||
<td>Incoming</td> | ||
<td>Outgoing</td> | ||
{% endfor %} | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% regroup messages by year as year_list %} | ||
{% for year in year_list %} | ||
{% regroup year.list by month as month_list %} | ||
{% for month in month_list %} | ||
<tr> | ||
<td>{{ month.grouper|floatformat }}</td> | ||
<td>{{ year.grouper|floatformat }}</td> | ||
{% regroup month.list by connection__backend__name as mlink_list %} | ||
{% for backend in link_list %} | ||
{% for local_backend in mlink_list %} | ||
{% ifequal backend.grouper local_backend.grouper %} | ||
{% comment %}Filthy hack for setting a variable{% endcomment %} | ||
{% regroup local_backend.list by direction as foundit %} | ||
{% if local_backend.list.0.direction == 'I' %} | ||
<td>{{ local_backend.list.0.total }}</td> | ||
{% if local_backend.list.1.direction == 'O' %} | ||
<td>{{ local_backend.list.1.total }}</td> | ||
{% else %} | ||
<td>0</td> | ||
{% endif %} | ||
{% else %} | ||
<td>0</td> | ||
<td>{{ local_backend.list.0.total }}</td> | ||
{% endif %} | ||
{% endifequal %} | ||
{% if forloop.last %} | ||
{% if not foundit %} | ||
<td>0</td> | ||
<td>0</td> | ||
{% endif %} | ||
{% endif %} | ||
{% endfor %} | ||
|
||
{% endfor %} | ||
</tr> | ||
{% endfor %} | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
</div> | ||
{% endblock %} |
This file contains 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
This file contains 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
This file contains 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So I'm missing how the above functionality has been replaced. How does a multi worker gunicorn config work now without dupe messages?