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

Update/v7.5.35 ir #124

Merged
merged 216 commits into from
Dec 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
216 commits
Select commit Hold shift + click to select a range
e0efbf5
Update to latest goflow which removes session from service methods
rowanseymour Jul 13, 2022
b552dc9
Update to latest goflow which removes session from service factory me…
rowanseymour Jul 13, 2022
cfb35ee
Use modifiers.Apply to apply modifiers
rowanseymour Jul 14, 2022
e188853
Update to latest goflow with support for ticket modifier
rowanseymour Jul 16, 2022
2760c16
Add Ticket.opened_by and opened_in and set when opening tickets
rowanseymour Jul 18, 2022
460fc31
Add test for ticket modifier
rowanseymour Jul 18, 2022
ac359e0
Merge pull request #640 from nyaruka/rework_services
rowanseymour Jul 20, 2022
e568c73
Merge branch 'main' into ticket_opened_by_and_in
rowanseymour Jul 20, 2022
9bcc617
Update CHANGELOG.md for v7.5.0
rowanseymour Jul 20, 2022
6a8f32f
Don't load user object for modifiers in case they're not part of the org
rowanseymour Jul 21, 2022
2fbc984
Merge pull request #641 from nyaruka/ticket_opened_by_and_in
rowanseymour Jul 21, 2022
12b3579
Update CHANGELOG.md for v7.5.1
rowanseymour Jul 21, 2022
e549b9d
Set opened_by_id on the open ticket event as well as the ticket itself
rowanseymour Jul 21, 2022
8a5e307
Merge pull request #642 from nyaruka/open_ticket_event_tweak
rowanseymour Jul 21, 2022
f3ad79b
Update to latest goflow
rowanseymour Jul 21, 2022
8b68598
Update CHANGELOG.md for v7.5.2
rowanseymour Jul 21, 2022
075d872
Add endpoint to do synchronous interrupt of a single contact
rowanseymour Jul 22, 2022
d41d33d
Merge pull request #643 from nyaruka/interrupt_endpoint
rowanseymour Jul 25, 2022
189d601
Update CHANGELOG.md for v7.5.3
rowanseymour Jul 25, 2022
482d911
Failed sessions should be saved with ended_on set
rowanseymour Jul 25, 2022
e820b2f
Add test utility to make it easier to test with imported flows
rowanseymour Jul 25, 2022
d6862d9
Merge pull request #645 from nyaruka/easier_testing
rowanseymour Jul 25, 2022
0456a8f
Add ping-pong session test
rowanseymour Jul 25, 2022
2ced148
Merge branch 'main' into failed_session_fix
rowanseymour Jul 25, 2022
cee3f65
Fix contact mixup in test
rowanseymour Jul 25, 2022
b809be6
Merge pull request #644 from nyaruka/failed_session_fix
rowanseymour Jul 25, 2022
e02864f
Update CHANGELOG.md for v7.5.4
rowanseymour Jul 25, 2022
cb27b38
Update goflow and check state of runs in TestSessionFailedStart
rowanseymour Jul 27, 2022
a28f8da
update gocommon to 1.24.0
tybritten Aug 2, 2022
d2b51f4
Add support for AWS Cred Chains
tybritten Aug 2, 2022
9f4d405
gofmt
tybritten Aug 2, 2022
8f59edf
Merge pull request #647 from tybritten/main
rowanseymour Aug 2, 2022
7e3f097
Update test database
rowanseymour Aug 3, 2022
7465550
Merge pull request #648 from nyaruka/update_test_db
rowanseymour Aug 3, 2022
777c741
Update to latest goflow and gocommon
rowanseymour Aug 4, 2022
c24b5c6
Merge pull request #649 from nyaruka/update_goflow
rowanseymour Aug 5, 2022
5ee036b
Update CHANGELOG.md for v7.5.5
rowanseymour Aug 9, 2022
0aa0e83
Update to latest goflow
rowanseymour Aug 12, 2022
8ec3d11
Merge pull request #650 from nyaruka/latest_goflow
rowanseymour Aug 12, 2022
f60ec0e
Update test database
rowanseymour Aug 18, 2022
b5b712f
Upgrade dependencies
rowanseymour Aug 18, 2022
e8019e2
Update to latest gocommon
rowanseymour Aug 18, 2022
31d779c
Merge pull request #651 from nyaruka/update_gocommon
rowanseymour Aug 18, 2022
a4663a9
Save IVR channel logs in new format
rowanseymour Aug 18, 2022
07e422a
Update test database
rowanseymour Aug 18, 2022
8cdb181
Merge branch 'main' into new_channel_logs
rowanseymour Aug 18, 2022
baf517c
Update test database
rowanseymour Aug 18, 2022
696ad96
Merge branch 'main' into new_channel_logs
rowanseymour Aug 18, 2022
d8b22c8
Drop no longer needed description column in channel log insert
rowanseymour Aug 18, 2022
a63228d
Merge pull request #652 from nyaruka/new_channel_logs
rowanseymour Aug 22, 2022
e611798
Update to latest gocommon
rowanseymour Aug 22, 2022
7461066
Update apt-get before trying to install postgresql client
rowanseymour Aug 22, 2022
d5b6c1f
Merge pull request #653 from nyaruka/latest_gocommon
rowanseymour Aug 22, 2022
d4122f9
Update CHANGELOG.md for v7.5.6
rowanseymour Aug 22, 2022
57f6726
Update to latest gocommon
rowanseymour Aug 22, 2022
178a471
Update CHANGELOG.md for v7.5.7
rowanseymour Aug 22, 2022
9508796
Update to latest goflow and gocommon
rowanseymour Aug 26, 2022
5160986
Update CHANGELOG.md for v7.5.8
rowanseymour Aug 26, 2022
7fd2c5c
Add codecov token to ci.yml
rowanseymour Sep 5, 2022
aff6484
Add channel log UUID field
rowanseymour Sep 5, 2022
4ef3f8f
Merge pull request #654 from nyaruka/channel_log_uuid
rowanseymour Sep 5, 2022
9d65086
Update CHANGELOG.md for v7.5.9
rowanseymour Sep 5, 2022
cf46bfb
Update test database and improve some testing of campaign event fires
rowanseymour Sep 6, 2022
5a41f10
Use go 1.19
rowanseymour Sep 7, 2022
a8f435e
Bump default steps per sprint limit to 200
rowanseymour Sep 7, 2022
5186d62
Update CHANGELOG.md for v7.5.10
rowanseymour Sep 7, 2022
1f85830
Update to latest goflow and gocommon
rowanseymour Sep 9, 2022
92d893c
Restructure channel logs like how they are in courier
rowanseymour Sep 9, 2022
acd61cf
Merge pull request #656 from nyaruka/clogs
rowanseymour Sep 12, 2022
29e82a4
Use MsgOut.UnsendableReason instead of checking contact status
rowanseymour Sep 12, 2022
02a3f71
Merge pull request #657 from nyaruka/unsendable
rowanseymour Sep 12, 2022
174fe2f
Update CHANGELOG.md for v7.5.11
rowanseymour Sep 12, 2022
dacb2ad
Update test database
rowanseymour Sep 12, 2022
b5b41b0
Remove unused constants
rowanseymour Sep 13, 2022
e51c002
Add redaction to IVR channel logging
rowanseymour Sep 13, 2022
555c805
Add tests for IVR service redaction values
rowanseymour Sep 13, 2022
39b87b1
Merge pull request #658 from nyaruka/redaction
rowanseymour Sep 13, 2022
9963686
Update CHANGELOG.md for v7.5.12
rowanseymour Sep 14, 2022
c0c6d3b
Attach channel logs to channel connections
rowanseymour Sep 15, 2022
503d73e
Update LICENSE
rowanseymour Sep 16, 2022
a5f7e17
Don't read or write connection_type
rowanseymour Sep 16, 2022
fb71681
Create cla.yml
ericnewcomer Sep 16, 2022
cb71f63
Rename channelconnection to call
rowanseymour Sep 16, 2022
9475c71
Merge pull request #660 from nyaruka/clog_uuids_v2
rowanseymour Sep 19, 2022
4fb511a
Merge branch 'main' into simpler_ivr
rowanseymour Sep 19, 2022
188bec3
Merge pull request #661 from nyaruka/simpler_ivr
rowanseymour Sep 19, 2022
ea66b4f
Update test database
rowanseymour Sep 19, 2022
c985b8c
Update CHANGELOG.md for v7.5.13
rowanseymour Sep 19, 2022
b129cb9
Update test database
rowanseymour Sep 20, 2022
0e5c583
Switch to new ivr_call table
rowanseymour Sep 20, 2022
b438af2
Update test database
rowanseymour Sep 21, 2022
94106d6
Merge branch 'main' into new_call_model
rowanseymour Sep 21, 2022
27f0eac
Update cla.yml
ericnewcomer Sep 22, 2022
720872e
Allow incoming call triggers to take message flows
rowanseymour Sep 22, 2022
0982ce4
Merge pull request #663 from nyaruka/new_call_model
rowanseymour Sep 22, 2022
b726dbd
Update CHANGELOG.md for v7.5.14
rowanseymour Sep 22, 2022
1e9cc1f
Merge branch 'main' into msg_flows_from_incoming_call_triggers
rowanseymour Sep 22, 2022
ac2eb1c
Update to latest goflow and rename some remaining call variables
rowanseymour Sep 23, 2022
4365ab0
Merge pull request #665 from nyaruka/latest_goflow
rowanseymour Sep 23, 2022
4326d77
Merge branch 'main' into msg_flows_from_incoming_call_triggers
rowanseymour Sep 23, 2022
800fe9d
Simplify getting active call count
rowanseymour Sep 28, 2022
f87ec37
Rework message events to use channel UUID and include channel type
rowanseymour Sep 29, 2022
9c91d96
Add support for time limits on dial waits
rowanseymour Sep 30, 2022
27d2f2c
Merge pull request #666 from nyaruka/msg_event_from_channel_uuid
rowanseymour Sep 30, 2022
db1fbcb
Update to latest goflow which changes expirations for dial waits
rowanseymour Sep 30, 2022
b3825c2
Merge pull request #664 from nyaruka/msg_flows_from_incoming_call_tri…
rowanseymour Sep 30, 2022
945df1b
Remove topups
rowanseymour Sep 30, 2022
bc70b6a
Merge pull request #667 from nyaruka/dial_time_limit
rowanseymour Sep 30, 2022
76a7ddb
Update CHANGELOG.md for v7.5.15
rowanseymour Sep 30, 2022
7d7e412
Merge branch 'main' into remove_topups
rowanseymour Sep 30, 2022
6a998d8
If starting a message flow from an ivr trigger, send reject response
rowanseymour Sep 30, 2022
11e42bc
Merge pull request #669 from nyaruka/reject_call
rowanseymour Sep 30, 2022
2d310c3
Update CHANGELOG.md for v7.5.16
rowanseymour Sep 30, 2022
0edb159
Update dependencies
rowanseymour Oct 5, 2022
7c90d90
Call courier endpoint to fetch attachments
rowanseymour Oct 7, 2022
4897d39
Add interrupt channel
norkans7 Oct 4, 2022
e369f05
Fail messages without loading them
norkans7 Oct 6, 2022
cf1c64c
Wrap errors
norkans7 Oct 11, 2022
a6d5d38
Merge pull request #670 from nyaruka/interrupt-channel
rowanseymour Oct 11, 2022
75b8954
Merge branch 'main' into fetch_attachments
rowanseymour Oct 11, 2022
9e728cb
Update to latest goflow
rowanseymour Oct 11, 2022
fc047a6
Update CHANGELOG.md for v7.5.17
rowanseymour Oct 11, 2022
4761850
Rename variables for clarity
rowanseymour Oct 11, 2022
ffa82b2
Merge branch 'main' into fetch_attachments
rowanseymour Oct 11, 2022
ebae15f
Fix bad merge
rowanseymour Oct 11, 2022
97c6c90
Remove no longer used channels option from interrupt_sessions task
rowanseymour Oct 11, 2022
158746c
Merge pull request #672 from nyaruka/task_cleanup
rowanseymour Oct 11, 2022
a28b8f5
Tweak msg retries to ignore deleted channels
rowanseymour Oct 11, 2022
349f0f8
Merge pull request #673 from nyaruka/tweak_msg_retries
rowanseymour Oct 11, 2022
5357da5
Move interrupt_channel task into tasks/interrupts
rowanseymour Oct 11, 2022
f66e0fa
Merge pull request #674 from nyaruka/move_interrupt_task
rowanseymour Oct 11, 2022
30f9e9b
Update CHANGELOG.md for v7.5.18
rowanseymour Oct 11, 2022
9075aa5
Merge branch 'main' into fetch_attachments
rowanseymour Oct 11, 2022
738ca23
Merge pull request #671 from nyaruka/fetch_attachments
rowanseymour Oct 12, 2022
2237190
Merge branch 'main' into remove_topups
rowanseymour Oct 12, 2022
34b1b7f
Add channel removed failed reason
norkans7 Oct 12, 2022
ae470a2
Merge pull request #675 from nyaruka/channel-removed-failed-reason
rowanseymour Oct 12, 2022
03f449b
Update CHANGELOG.md for v7.5.19
rowanseymour Oct 12, 2022
221fcbb
Remove Org.uses_topups
rowanseymour Oct 12, 2022
b4758c9
Update to latest gocommon
rowanseymour Oct 13, 2022
e1ec059
Merge pull request #677 from nyaruka/latest_gocommon
rowanseymour Oct 13, 2022
1f95711
Rename media things to attachments
rowanseymour Oct 13, 2022
fcf018f
Rename media config vars
rowanseymour Oct 13, 2022
4e94a56
Merge pull request #678 from nyaruka/rename_media_stuff
rowanseymour Oct 13, 2022
acdd9ed
Remove unused created_on field from msg events
rowanseymour Oct 17, 2022
b520929
Merge pull request #679 from nyaruka/remove_unused_event_field
rowanseymour Oct 17, 2022
a632a93
Update CHANGELOG.md for v7.5.20
rowanseymour Oct 17, 2022
4eb11c6
Update to latest goflow
rowanseymour Oct 17, 2022
db8bc56
Update CHANGELOG.md for v7.5.21
rowanseymour Oct 17, 2022
875f9fc
Set is_active=TRUE on new broadcasts
rowanseymour Oct 18, 2022
07c0ecd
Merge pull request #680 from nyaruka/broadcast_is_active
rowanseymour Oct 18, 2022
ef559be
Update CHANGELOG.md for v7.5.22
rowanseymour Oct 18, 2022
9ea4ee8
Update test database
rowanseymour Oct 19, 2022
7883a1b
Merge pull request #681 from nyaruka/update_testdb
rowanseymour Oct 19, 2022
86125a9
Merge pull request #668 from nyaruka/remove_topups
rowanseymour Oct 20, 2022
8e457e0
Update CHANGELOG.md for v7.5.23
rowanseymour Oct 20, 2022
a53d5b4
Remove some leftover references to topups
rowanseymour Oct 20, 2022
aae49fb
Update to latest goflow
rowanseymour Oct 21, 2022
def0b1d
Update CHANGELOG.md for v7.5.24
rowanseymour Oct 21, 2022
4a29b86
Update to latest goflow
rowanseymour Oct 21, 2022
2706057
Update CHANGELOG.md for v7.5.25
rowanseymour Oct 21, 2022
05f756b
Update to latest goflow
rowanseymour Oct 21, 2022
81865e0
Update CHANGELOG.md for v7.5.26
rowanseymour Oct 21, 2022
f6889cc
Remove legacy functionality to look for missed call trigger if there'…
rowanseymour Oct 24, 2022
2d34373
Merge pull request #682 from nyaruka/remove_missed_call_fallback
rowanseymour Oct 24, 2022
be9c671
Update CHANGELOG.md for v7.5.27
rowanseymour Oct 24, 2022
693d956
Test against redis 6.2 and postgres 14
rowanseymour Oct 25, 2022
7c1addd
Update deps
rowanseymour Oct 27, 2022
bee3dba
Update CHANGELOG.md for v7.5.28
rowanseymour Oct 27, 2022
e67f87c
Remove rocketchat as ticketer
rowanseymour Oct 27, 2022
a96e2ef
Minor cleanup
rowanseymour Oct 27, 2022
5b1d4d7
More cleanup
rowanseymour Oct 27, 2022
ee092d3
Simplify endpoint unmarshals
rowanseymour Oct 27, 2022
76ee2da
Add basic auth for Elastic
mzealey Oct 28, 2022
cdcc374
Update to latest gocommon and goflow
rowanseymour Oct 31, 2022
f3dfc58
Update CHANGELOG.md for v7.5.29
rowanseymour Oct 31, 2022
6a03920
Add workaround to contact resolve endpoint to deal with invalid phone…
rowanseymour Nov 3, 2022
e793536
Merge pull request #685 from nyaruka/contact_resolve_tweak
rowanseymour Nov 3, 2022
e8db842
Update CHANGELOG.md for v7.5.30
rowanseymour Nov 3, 2022
9299b44
Merge pull request #683 from nyaruka/update_test_deps
rowanseymour Nov 6, 2022
59948e6
Update test database
rowanseymour Nov 7, 2022
8b7cd63
Set server idle timeout to 90 seconds
rowanseymour Nov 7, 2022
d5b6b08
Merge pull request #686 from nyaruka/idle_timeout
rowanseymour Nov 7, 2022
ee38a8c
Update CHANGELOG.md for v7.5.31
rowanseymour Nov 7, 2022
cc8edfe
Don't include unavailable attachments in flows but do save them
rowanseymour Nov 11, 2022
7268a1e
Revert "Remove rocketchat as ticketer"
rowanseymour Nov 11, 2022
7afc8ed
Fix RocketChat web handler
rowanseymour Nov 11, 2022
fd9b784
Merge pull request #687 from nyaruka/unavailable_attachments
rowanseymour Nov 11, 2022
3a02cfe
Send msg id to fetch-attachments endpoint and clean up flows.MsgID vs…
rowanseymour Nov 11, 2022
10aad1d
Merge pull request #688 from nyaruka/fetch_attachment_with_msg_id
rowanseymour Nov 14, 2022
557e89d
Update CHANGELOG.md for v7.5.32
rowanseymour Nov 14, 2022
26d739e
Don't filter labels by label_type which is being removed
rowanseymour Nov 16, 2022
db2094e
Test with only redis 6.2
rowanseymour Nov 16, 2022
b679d22
Merge pull request #689 from nyaruka/flatten_labels
rowanseymour Nov 16, 2022
cad265b
Merge pull request #690 from nyaruka/less_testing
rowanseymour Nov 16, 2022
ee74201
Update CHANGELOG.md for v7.5.33
rowanseymour Nov 16, 2022
8069fad
Merge pull request #684 from binuadmin/mz/elastic-auth
rowanseymour Nov 17, 2022
21e12ec
Tweak new elastic config options help texts
rowanseymour Nov 17, 2022
be1df04
Fix test and cleanup msg status constants
rowanseymour Nov 18, 2022
e051ebc
Update CI test versions
rowanseymour Nov 21, 2022
e6764c0
Remove ununsed env from ci.yml
rowanseymour Nov 21, 2022
71b0539
Update deps
rowanseymour Nov 28, 2022
c2cb795
Update goflow
rowanseymour Nov 30, 2022
703476a
Update CHANGELOG.md for v7.5.34
rowanseymour Nov 30, 2022
4bd7132
Tweak comment for msg status PENDING
rowanseymour Dec 1, 2022
b0e50f5
Retry messages which fail to queue to courier
rowanseymour Dec 5, 2022
92d6203
Merge pull request #692 from nyaruka/retry_pending
rowanseymour Dec 5, 2022
ffd393c
Update CHANGELOG.md for v7.5.35
rowanseymour Dec 5, 2022
5c57fff
Update README.md
rowanseymour Jan 2, 2023
59708cf
Update README.md
rowanseymour Jan 4, 2023
4855d47
Update LICENSE
rowanseymour Jan 4, 2023
459560b
Merge remote-tracking branch 'origin/main' into irlanda/v7.5.35
Robi9 Oct 9, 2023
4d14e84
update mailroom_test.dump
Robi9 Oct 9, 2023
44720ce
Do not use send message history
Robi9 Oct 10, 2023
fec1b52
update gocommon for v1.33.1
Robi9 Dec 27, 2023
f2d171f
update weni-changelog.md for 1.4.19-mailroom-7.5.35
rasoro Dec 27, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 14 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
name: CI
on: [push, pull_request]
env:
go-version: "1.18.x"
postgis-version: "3.1"
redis-version: "5.0.6"
go-version: "1.19.x"
jobs:
test:
name: Test
strategy:
matrix:
pg-version: ["12", "13"]
env:
pg-version: "14"
postgis-version: "3.2"
redis-version: "6.2"
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v1
uses: actions/checkout@v3

- name: Install Redis
uses: zhulik/redis-action@v1.0.0
Expand All @@ -23,12 +22,14 @@ jobs:
- name: Install PostgreSQL
uses: nyaruka/postgis-action@v2
with:
postgresql version: ${{ matrix.pg-version }}
postgresql version: ${{ env.pg-version }}
postgis version: ${{ env.postgis-version }}
postgresql password: temba

- name: Install Linux packages
run: sudo apt install -y --no-install-recommends postgresql-client
run: |
sudo apt-get update
sudo apt install -y --no-install-recommends postgresql-client

- name: Initialize database
# we create our test database with a different user so that we can drop everything owned by this user between tests
Expand All @@ -39,7 +40,7 @@ jobs:
psql -h localhost -U postgres --no-password -c "CREATE DATABASE mailroom_test;"

- name: Install Go
uses: actions/setup-go@v1
uses: actions/setup-go@v3
with:
go-version: ${{ env.go-version }}

Expand All @@ -52,6 +53,7 @@ jobs:
if: success()
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true

release:
Expand All @@ -61,7 +63,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v1
uses: actions/checkout@v3

- name: Fetch GoFlow docs
# for backward compatibility, English docs are copied to root of docs directory
Expand All @@ -71,7 +73,7 @@ jobs:
cp ./docs/en-us/*.* docs/

- name: Install Go
uses: actions/setup-go@v1
uses: actions/setup-go@v3
with:
go-version: ${{ env.go-version }}

Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/cla.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: "CLA Assistant"
on:
issue_comment:
types: [created]
pull_request_target:
types: [opened,closed,synchronize]

jobs:
CLAssistant:
runs-on: ubuntu-latest
steps:
- name: "CLA Assistant"
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target'
# Beta Release
uses: contributor-assistant/github-action@v2.2.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PERSONAL_ACCESS_TOKEN : ${{ secrets.CLA_TOKEN }}
with:
path-to-signatures: 'signatures/version1/cla.json'
path-to-document: 'https://github.com/nyaruka/license/blob/main/TextIt_CLA.md'
branch: 'main'
allowlist: bot*
remote-organization-name: 'nyaruka'
remote-repository-name: 'legal'
175 changes: 175 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,178 @@
v7.5.35 (2022-12-05)
-------------------------
* Retry messages which fail to queue to courier

v7.5.34 (2022-11-30)
-------------------------
* Update deps including new goflow which adds legacy_vars issues
* Fix test and cleanup msg status constants
* Add basic auth for Elastic

v7.5.33
----------
* Test with only redis 6.2
* Don't filter labels by label_type which is being removed

v7.5.32
----------
* Send msg id to fetch-attachments endpoint and clean up flows.MsgID vs models.MsgID
* Revert "Remove rocketchat as ticketer"
* Don't include unavailable attachments in flows but do save them

v7.5.31
----------
* Set server idle timeout to 90 seconds
* Test against redis 6.2 and postgres 14

v7.5.30
----------
* Add workaround to contact resolve endpoint to deal with invalid phone numbers

v7.5.29
----------
* Update to latest gocommon and goflow
* Remove rocketchat as ticketer

v7.5.28
----------
* Update deps

v7.5.27
----------
* Remove legacy functionality to look for missed call trigger if there's no incoming call trigger

v7.5.26
----------
* Update to latest goflow

v7.5.25
----------
* Update to latest goflow

v7.5.24
----------
* Update to latest goflow
* Remove some leftover references to topups

v7.5.23
----------
* Remove topups

v7.5.22
----------
* Set is_active=TRUE on new broadcasts

v7.5.21
----------
* Update to latest goflow

v7.5.20
----------
* Remove unused created_on field from msg events
* Rename media config vars
* Update to latest gocommon

v7.5.19
----------
* Add channel removed failed reason for msgs
* Call courier endpoint to fetch attachments if they're raw URLs

v7.5.18
----------
* Move interrupt_channel task into tasks/interrupts
* Tweak msg retries to ignore deleted channels
* Remove no longer used channels option from interrupt_sessions task

v7.5.17
----------
* Update to latest goflow
* Add interrupt channel task

v7.5.16
----------
* If starting a message flow from an ivr trigger, send reject response

v7.5.15
----------
* Update to latest goflow which changes expirations for dial waits
* Add support for time limits on dial waits
* Rework message events to use channel UUID and include channel type
* Simplify getting active call count
* Allow incoming call triggers to take message flows

v7.5.14
----------
* Switch to new ivr_call table

v7.5.13
----------
* Update test database
* Rename channelconnection to call
* Don't read or write connection_type
* Attach channel logs to channel connections

v7.5.12
----------
* Add redaction to IVR channel logging

v7.5.11
----------
* Use MsgOut.UnsendableReason instead of checking contact status
* Restructure channel logs like how they are in courier
* Update to latest goflow and gocommon

v7.5.10
----------
* Bump default steps per sprint limit to 200
* Use go 1.19

v7.5.9
----------
* Add channel log UUID field
* Add codecov token to ci.yml

v7.5.8
----------
* Update to latest goflow and gocommon

v7.5.7
----------
* Update to latest gocommon

v7.5.6
----------
* Update to latest gocommon and goflow
* Save IVR channel logs in new format
* Upgrade dependencies

v7.5.5
----------
* Update to latest goflow and gocommon
* Add support for AWS Cred Chains

v7.5.4
----------
* Add test utility to make it easier to test with imported flows
* Failed sessions should be saved with ended_on set

v7.5.3
----------
* Add endpoint to do synchronous interrupt of a single contact

v7.5.2
----------
* Update to latest goflow
* Set opened_by_id on the open ticket event as well as the ticket itself

v7.5.1
----------
* Add Ticket.opened_by and opened_in and set when opening tickets

v7.5.0
----------
* Update to latest goflow with support for ticket modifier
* Update to latest goflow which removes sessions from engine services

v7.4.1
----------
* Update to latest goflow
Expand Down
16 changes: 16 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
RapidPro Mailroom - backend services for the RapidPro platform.

Copyright (C) 2018-2023 Nyaruka, Inc.

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License below for more details.

------------------------------------------------------------------------

GNU AFFERO GENERAL PUBLIC LICENSE
Version 3, 19 November 2007

Expand Down
19 changes: 10 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
# Mailroom
# RapidPro Mailroom

[![Build Status](https://github.com/nyaruka/mailroom/workflows/CI/badge.svg)](https://github.com/nyaruka/mailroom/actions?query=workflow%3ACI)
[![codecov](https://codecov.io/gh/nyaruka/mailroom/branch/main/graph/badge.svg)](https://codecov.io/gh/nyaruka/mailroom)
[![Build Status](https://github.com/rapidpro/mailroom/workflows/CI/badge.svg)](https://github.com/rapidpro/mailroom/actions?query=workflow%3ACI)
[![codecov](https://codecov.io/gh/rapidpro/mailroom/branch/main/graph/badge.svg)](https://codecov.io/gh/rapidpro/mailroom)

Service for RapidPro/TextIt which does the heavy lifting of running flow starts, campaigns etc.
flows. It interacts directly with the database and sends and receives messages with [Courier](https://github.com/nyaruka/courier)
for handling via Redis.
Service for RapidPro which does the heavy lifting of running flow starts, campaigns etc. It interacts directly with the database
and sends and receives messages with [Courier](https://github.com/nyaruka/courier) for handling via Redis.

## Deploying

As a Go application, it compiles to a binary and that binary along with the config file is all
you need to run it on your server. You can find bundles for each platform in the
[releases directory](https://github.com/nyaruka/mailroom/releases). We recommend running it
[releases directory](https://github.com/rapidpro/mailroom/releases). We recommend running it
behind a reverse proxy such as nginx or Elastic Load Balancer that provides HTTPs encryption.

## Configuration
Expand All @@ -35,9 +34,11 @@ For use with RapidPro, you will need to configure these settings:
- `MAILROOM_DB`: URL describing how to connect to the RapidPro database (default "postgres://temba:temba@localhost/temba?sslmode=disable")
- `MAILROOM_READONLY_DB`: URL for an additional database connection for read-only operations (optional)
- `MAILROOM_REDIS`: URL describing how to connect to Redis (default "redis://localhost:6379/15")
- `MAILROOM_ELASTIC`: URL describing how to connect to ElasticSearch (default "http://localhost:9200")
- `MAILROOM_SMTP_SERVER`: the smtp configuration for sending emails ex: smtp://user%40password@server:port/?from=foo%40gmail.com
- `MAILROOM_FCM_KEY`: the key for Firebase Cloud Messaging used to sync Android channels
- `MAILROOM_ELASTIC`: URL describing how to connect to ElasticSearch (default "http://localhost:9200")
- `MAILROOM_ELASTIC_USERNAME`: ElasticSearch username for Basic Auth
- `MAILROOM_ELASTIC_PASSWORD`: ElasticSearch password for Basic Auth

For writing of message attachments, you need an S3 compatible service which you configure with:

Expand Down Expand Up @@ -71,7 +72,7 @@ Recommended settings for error and performance monitoring:
Once you've checked out the code, you can build the service with:

```
go build github.com/nyaruka/mailroom/cmd/mailroom
go build github.com/rapidpro/mailroom/cmd/mailroom
```

This will create a new executable in $GOPATH/bin called `mailroom`.
Expand Down
4 changes: 4 additions & 0 deletions WENI-CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
1.4.19-mailroom-7.5.35
----------
* update mailroom to 7.5.35

1.4.19-mailroom-7.4.1
----------
* update mailroom to 7.4.1
Expand Down
Loading
Loading