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 push/v6.3.6 #43

Merged
merged 271 commits into from
Jun 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
271 commits
Select commit Hold shift + click to select a range
68c85f7
Merge branch 'master' into imports2
rowanseymour Sep 25, 2020
5d19c90
Add tests
rowanseymour Sep 28, 2020
b37f98b
Fix updating priority for orphaned URNs which are being attached
rowanseymour Sep 28, 2020
daed23a
CreateContact also should do lookup before trying to create new conta…
rowanseymour Sep 29, 2020
bf2cf51
Add test for dynamic group re-evaluation of imported contacts
rowanseymour Sep 29, 2020
7b904d9
Add tests for URN normalization during imports
rowanseymour Sep 29, 2020
5d8b8f6
Add mockable DB to enable testing database errors
rowanseymour Sep 29, 2020
1ad2a3c
Merge pull request #360 from nyaruka/mock_db
rowanseymour Sep 30, 2020
d439565
Merge branch 'master' into imports2
rowanseymour Sep 30, 2020
81e279b
Updates from code review
rowanseymour Sep 30, 2020
14ec817
Merge pull request #358 from nyaruka/imports2
rowanseymour Sep 30, 2020
7e4c1ed
Update CHANGELOG.md for v5.7.26
Sep 30, 2020
c19d933
Reorganize contacts.go
rowanseymour Sep 30, 2020
a5787d4
More use of Queryer interface instead of sqlx.DB
rowanseymour Sep 30, 2020
d671b40
If a flow start task creates new contacts, save those back to the start
rowanseymour Oct 1, 2020
e32d6a6
Merge pull request #362 from nyaruka/start_contacts
rowanseymour Oct 1, 2020
0fa60d4
Update CHANGELOG.md for v5.7.27
Oct 1, 2020
dc4c859
Add contact/resolve endpoint to assist with channel events still hand…
rowanseymour Oct 1, 2020
653d8f2
Resolve endpoint should also return URN
rowanseymour Oct 2, 2020
cbccc73
Merge pull request #364 from nyaruka/resolve_endpoint
rowanseymour Oct 2, 2020
896ba60
Update CHANGELOG.md for v5.7.28
Oct 2, 2020
5c9ef85
Merge from nyaruka/master and fix conflicts
koallann Oct 5, 2020
00fa663
Fix package import and ticketer contract implementation
koallann Oct 5, 2020
e67bf3f
Fix race condition when bulk getting/creating contacts
rowanseymour Oct 5, 2020
87fd852
Add utility method for race tests
rowanseymour Oct 5, 2020
0e627ff
Send/receive attachments in RocketChat ticketer
koallann Oct 5, 2020
a59c8db
Coverage
rowanseymour Oct 5, 2020
81cfacf
Merge pull request #366 from nyaruka/bulk_contact_get_or_create_fix
rowanseymour Oct 5, 2020
feb7858
Update CHANGELOG.md for v5.7.29
Oct 5, 2020
9d2d68c
Cleanup hook unit tests
rowanseymour Oct 6, 2020
3829e7a
Rework hooks so the hook instance is the exported thing
rowanseymour Oct 6, 2020
4d31785
Create new top-level core package for better organization of top leve…
rowanseymour Oct 6, 2020
6e296a5
Enable fail_ci_if_error for codecov
rowanseymour Oct 6, 2020
fdc3611
Move event handlers out of the hooks package and into their own package
rowanseymour Oct 7, 2020
7f29a7a
Update CHANGELOG.md for v5.7.30
Oct 7, 2020
e85dd46
Enable retrying on the elastic client
rowanseymour Oct 8, 2020
88b8c87
Fix attachment payload format in RocketChat ticketer
koallann Oct 9, 2020
9f8a21c
Merge remote-tracking branch 'nyaruka/master' into feature/rocketchat…
koallann Oct 9, 2020
e302006
Update to latest goflow
rowanseymour Oct 12, 2020
df9910d
Merge pull request #368 from nyaruka/elastic_retries
rowanseymour Oct 12, 2020
ab01d62
Update CHANGELOG.md for v5.7.31
Oct 12, 2020
528f856
Fix imports in RocketChat ticketer
koallann Oct 13, 2020
c7d1a0e
Update to latest goflow v0.105.2 and add tests for runs without expir…
rowanseymour Oct 13, 2020
797dc10
Merge pull request #370 from nyaruka/expires_on_tests
rowanseymour Oct 14, 2020
6491157
Update to goflow v0.105.3 to get support for arabic numerals in has_n…
rowanseymour Oct 14, 2020
c80d240
Update CHANGELOG.md for v5.7.32
Oct 14, 2020
c11d919
Fix closing of flows during simulation so that ignore keyword trigger…
rowanseymour Oct 15, 2020
390e92b
Simplify overriding flow definitions and creation of test channels fo…
rowanseymour Oct 15, 2020
bd33e62
Add Flow.cloneWithNewDefinition
rowanseymour Oct 16, 2020
3030522
Merge pull request #372 from nyaruka/sim_fix
rowanseymour Oct 16, 2020
b5e30fd
Update to goflow v0.105.4
rowanseymour Oct 16, 2020
0fe3817
Update CHANGELOG.md for v5.7.33
Oct 16, 2020
f37c923
Merge remote-tracking branch 'nyaruka/master' into feature/rocketchat…
koallann Oct 20, 2020
8705272
Use the new testdata.InsertOpenTicket in RocketChat ticketer
koallann Oct 20, 2020
4e88a14
Support incoming attachments on mailgun ticketers
rowanseymour Oct 20, 2020
1410dc7
Get rid of no longer used files property on web tests
rowanseymour Oct 20, 2020
7b348d2
Mailgun requests can be either url-encoded or multipart
rowanseymour Oct 20, 2020
59d6208
Merge pull request #374 from nyaruka/mailgun_attachments_pt1
rowanseymour Oct 21, 2020
739542e
Update CHANGELOG.md for v5.7.36
Oct 21, 2020
7708c6f
Merge remote-tracking branch 'nyaruka/master' into feature/rocketchat…
koallann Oct 21, 2020
8a839fd
Add support for outgoing mailgun ticket attachments
rowanseymour Oct 21, 2020
df94e50
Merge pull request #375 from nyaruka/mailgun_attachments_pt2
rowanseymour Oct 21, 2020
b938d6a
Update CHANGELOG.md for v5.7.37
Oct 21, 2020
7befdac
Support incoming attachments on RocketChat ticketers
koallann Oct 22, 2020
6720efd
Make sure we save attachment file extension
norkans7 Oct 23, 2020
9249315
Revert "Make sure we save attachment file extension"
norkans7 Oct 23, 2020
61a0657
Always request Mp3 files from Twilio IVR recordings
norkans7 Oct 23, 2020
9599f49
Merge pull request #376 from nyaruka/fix-attachment-extension
rowanseymour Oct 23, 2020
b522aa9
Update CHANGELOG.md for v5.7.38
Oct 23, 2020
8c046d1
Remove hack for get department and custom fields on RocketChat tickets
koallann Oct 23, 2020
29e20f4
Fix input_labels_added event handling when session input ID isn't set
rowanseymour Oct 23, 2020
e9771f5
Remove no longer needed codecov token from CI workflow
rowanseymour Oct 23, 2020
e0ff4bc
Merge pull request #377 from nyaruka/input_label_fix
rowanseymour Oct 26, 2020
41871b3
Update CHANGELOG.md for v5.7.39
Oct 26, 2020
713c250
Update to goflow v0.105.5
norkans7 Oct 27, 2020
7084c42
Merge pull request #378 from nyaruka/update-goflow
rowanseymour Oct 27, 2020
5b63fd6
Update CHANGELOG.md for v5.7.40
Oct 27, 2020
232dd81
Add better testing of number normalization during imports
rowanseymour Oct 28, 2020
ed5af54
Don't write to flows_flowrun.timeout_on so it can be dropped
rowanseymour Oct 29, 2020
110fdbb
Update to latest goflow v0.106.0
rowanseymour Oct 29, 2020
0fa5b0f
Merge pull request #379 from nyaruka/drop_run_timeout
rowanseymour Oct 29, 2020
73852e6
Update CHANGELOG.md for v5.7.41
Oct 29, 2020
7ae69ce
Prevent importing invalid URNs during import
rowanseymour Oct 30, 2020
d052cfc
Merge pull request #380 from nyaruka/import_fix_invalid_urns
rowanseymour Oct 30, 2020
506f132
Update CHANGELOG.md for v5.7.42
Oct 30, 2020
85b7614
Update to latest goflow v0.106.1
rowanseymour Oct 30, 2020
5315a00
Update CHANGELOG.md for v5.7.43
Oct 30, 2020
0f53a5c
Merge pull request #333 from Ilhasoft/feature/rocketchat-ticketer
rowanseymour Nov 5, 2020
d85b51e
Update CHANGELOG.md for v5.7.44
Nov 5, 2020
428c121
Update test database
rowanseymour Nov 5, 2020
13ea732
Update CHANGELOG.md for v6.0.0
Nov 5, 2020
3ee97fe
Update README
rowanseymour Nov 5, 2020
107ea9c
Merge branch 'master' into update/v6.0.0
koallann Nov 10, 2020
00eb393
add log when queuing to courier
nicpottier Nov 18, 2020
796aa50
add timing to redis insert
nicpottier Nov 18, 2020
d282e1c
typo
nicpottier Nov 18, 2020
23c74d9
Merge pull request #382 from nyaruka/log-queue
nicpottier Nov 18, 2020
d97ed7c
Update CHANGELOG.md for v6.0.1
Nov 18, 2020
749cb41
pin goreleaser, explicit inclusion of /docs/*, completions and functions
nicpottier Nov 18, 2020
a22c933
Update CHANGELOG.md for v6.0.2
Nov 18, 2020
98a8f75
correct name for completion
nicpottier Nov 18, 2020
eb86e90
Update CHANGELOG.md for v6.0.3
Nov 18, 2020
ffe4239
pin to v0.147.2
nicpottier Nov 18, 2020
c1e4909
Configure engine to disallow HTTP requests to private networks
rowanseymour Nov 20, 2020
533001e
Rename DisallowedIPs to DisallowedNetworks
rowanseymour Nov 23, 2020
07227fb
Merge pull request #384 from nyaruka/private_networks
rowanseymour Nov 23, 2020
89f4a31
Update CHANGELOG.md for v6.1.0
Nov 23, 2020
a470a53
Update to latest goflow v0.106.3
rowanseymour Dec 2, 2020
43beb1f
Update CHANGELOG.md for v6.1.1
Dec 3, 2020
8d0e44b
Add support for internal type ticketers
rowanseymour Dec 9, 2020
e60b52d
Ensure field and group assets used for imports are fresh
rowanseymour Dec 10, 2020
76adbf7
Merge pull request #387 from nyaruka/internal_ticketers
rowanseymour Dec 10, 2020
3ea8c63
Merge pull request #388 from nyaruka/import_fix
rowanseymour Dec 10, 2020
e380075
Update CHANGELOG.md for v6.1.2
Dec 10, 2020
959b54d
Fix misreporting created contacts as updated during imports
rowanseymour Dec 11, 2020
8664a24
Merge pull request #389 from nyaruka/import_create_vs_update
rowanseymour Dec 14, 2020
c5c7d9b
Update CHANGELOG.md for v6.1.3
Dec 14, 2020
e42fb88
variable timeout for fire campaign task
nicpottier Dec 15, 2020
cf42c79
Merge pull request #390 from nyaruka/variable-event-fire-timeout
nicpottier Dec 15, 2020
d13a71e
Update CHANGELOG.md for v6.1.4
Dec 15, 2020
c812464
Update to goflow v0.107.0
rowanseymour Dec 16, 2020
1b5ed34
Update to goflow v0.107.1
rowanseymour Dec 17, 2020
aa822c6
Update CHANGELOG.md for v6.1.5
Dec 17, 2020
497ccfb
Merge branch 'master' of https://github.com/nyaruka/mailroom into upd…
Dec 22, 2020
557ab05
Add support for passive flows
rowanseymour Jan 6, 2021
53d29ce
Add Interrupts method to flow type
rowanseymour Jan 6, 2021
cb7a1b6
Add test for session interruption based on flow type
rowanseymour Jan 6, 2021
bb4e512
Merge pull request #393 from nyaruka/passive
rowanseymour Jan 6, 2021
b58f1a5
Update to latest goflow v0.107.2
rowanseymour Jan 6, 2021
8d46fdd
Update CHANGELOG.md for v6.1.6
Jan 7, 2021
f7086c2
Use background instead of passive
rowanseymour Jan 7, 2021
9c97524
Merge pull request #394 from nyaruka/background
rowanseymour Jan 7, 2021
d43b302
Update CHANGELOG.md for v6.1.7
Jan 7, 2021
2d25cba
Update to latest goflow 0.108.0
rowanseymour Jan 7, 2021
33d36ca
Update CHANGELOG.md for v6.1.8
Jan 7, 2021
824dc64
Ensure courier messages are always queued for a single contact
rowanseymour Jan 12, 2021
8ecffc4
Update to goflow v0.109.0
rowanseymour Jan 12, 2021
0251ba1
Update CHANGELOG.md for v6.1.9
Jan 12, 2021
ecde9c8
Add testing of Android channel syncing
rowanseymour Jan 12, 2021
e5127bc
More testing
rowanseymour Jan 13, 2021
0b511e2
Fix updating message status when id column is bigint
rowanseymour Jan 13, 2021
dce316c
Remove unused function
rowanseymour Jan 13, 2021
0495b9c
Merge pull request #396 from nyaruka/bigint_fix
rowanseymour Jan 13, 2021
1048e45
Merge branch 'master' into send_msgs_refactor
rowanseymour Jan 13, 2021
34e10e5
Refactor of FCM client usage so it's a property of ther mailroom inst…
rowanseymour Jan 14, 2021
de21e2f
Remove crud
rowanseymour Jan 14, 2021
4b23bc0
Merge pull request #395 from nyaruka/send_msgs_refactor
rowanseymour Jan 14, 2021
b7a2edb
Merge branch 'master' into fcm_client_refactor
rowanseymour Jan 14, 2021
4a36e5a
Don't pass redis pool or FCM client to ApplyModifiers which shouldn't…
rowanseymour Jan 14, 2021
bfc9340
Merge pull request #397 from nyaruka/fcm_client_refactor
rowanseymour Jan 14, 2021
b7f6706
Revert "Merge pull request #397 from nyaruka/fcm_client_refactor"
rowanseymour Jan 14, 2021
5091587
Simplify FCM client code
rowanseymour Jan 14, 2021
1e6afa4
Merge pull request #398 from nyaruka/fcm_cleanup_take_2
rowanseymour Jan 14, 2021
0a311c7
Update CHANGELOG.md for v6.1.10
Jan 14, 2021
1859359
update goflow for forward_ivr action
nicpottier Jan 14, 2021
ed8709d
Merge branch 'master' of github.com:nyaruka/mailroom
nicpottier Jan 14, 2021
1dbb538
Update to latest goflow v0.109.4
rowanseymour Jan 14, 2021
4e6a450
Merge branch 'master' into latest_goflow
rowanseymour Jan 14, 2021
4d49990
Merge pull request #399 from nyaruka/latest_goflow
rowanseymour Jan 15, 2021
c2ae802
Update CHANGELOG.md for v6.1.11
Jan 15, 2021
8b352dc
Update to latest goflow v0.110.0
rowanseymour Jan 15, 2021
7f6cf8f
Update CHANGELOG.md for v6.1.12
Jan 15, 2021
f97e3b5
Update to latest goflow
rowanseymour Jan 18, 2021
37e7fee
Update to latest goflow
rowanseymour Jan 19, 2021
14be2f2
Update CHANGELOG.md for v6.1.13
Jan 19, 2021
96cd3ba
update to elastic v7
nicpottier Jan 20, 2021
c0e47e6
mod tidy
nicpottier Jan 20, 2021
e70571b
Merge pull request #400 from nyaruka/elastic-v7
nicpottier Jan 21, 2021
783cb66
Update CHANGELOG.md for v6.2.0
Jan 21, 2021
f1cccc9
remove incorrect 6.2.0
nicpottier Jan 21, 2021
2816432
Update CHANGELOG.md for v6.1.14
Jan 21, 2021
c10d260
Re-add get department and custom fields on RocketChat tickets
Jan 21, 2021
28b66a9
Merge branch 'feature/rocketchat-ticketer-unofficial' of https://gith…
Jan 21, 2021
3a67c4c
Bump CI testing to PG 11 and 12
rowanseymour Jan 24, 2021
f789ead
Update ci.yml
rowanseymour Jan 24, 2021
8d24925
Update ci.yml
rowanseymour Jan 25, 2021
c94ef67
Update ci.yml
rowanseymour Jan 25, 2021
bacf9dc
Fix tests so not trying to create flow sessions with NULL session_type
rowanseymour Jan 25, 2021
873bdd9
Test on PG 12
rowanseymour Jan 25, 2021
143d10d
Fix test
rowanseymour Jan 25, 2021
2289160
Fix non-deterministic ordering of org languages
rowanseymour Jan 25, 2021
14b5823
Merge pull request #401 from nyaruka/pg12
rowanseymour Jan 26, 2021
734563b
Update to latest goflow
rowanseymour Jan 26, 2021
c38a4fc
Decrease locations cache timeout to 1 minute
rowanseymour Jan 29, 2021
99c8c71
Add link local ips to default disallowed networks config
rowanseymour Feb 3, 2021
f0a9ed3
update phonenumbers lib
nicpottier Feb 3, 2021
90e51b2
Merge pull request #405 from nyaruka/update-phones
rowanseymour Feb 3, 2021
17fdf24
Update CHANGELOG.md for v6.1.15
Feb 3, 2021
b64e889
Merge pull request #404 from nyaruka/disallow_link_local
rowanseymour Feb 5, 2021
cf80bdd
Update to latest goflow
rowanseymour Feb 5, 2021
c8fe14e
Update CHANGELOG.md for v6.1.16
Feb 8, 2021
03c9328
Should match referral trigger with case insensitive
norkans7 Feb 9, 2021
17739c3
Merge pull request #407 from nyaruka/referral-trigger-fix
rowanseymour Feb 9, 2021
47c8581
Update CHANGELOG.md for v6.1.17
Feb 11, 2021
7d7f1f0
Rename tickets/internal package
rowanseymour Feb 17, 2021
3468758
Merge pull request #409 from nyaruka/internal_pkg_name
rowanseymour Feb 17, 2021
a8b68c3
Minor copypasta
ericnewcomer Feb 17, 2021
7e9b2be
Revert general test across ticketers
ericnewcomer Feb 17, 2021
44009d8
Merge pull request #411 from nyaruka/copypasta
rowanseymour Feb 18, 2021
c32580b
working ivr forwards for nexmo and twilio, now for testing
nicpottier Feb 19, 2021
ccdde26
wip
nicpottier Feb 22, 2021
72afbe9
merge
nicpottier Feb 22, 2021
4db7f73
wip
nicpottier Feb 22, 2021
bf86c04
twiml end to end test
nicpottier Feb 23, 2021
c98b5c4
nexmo end to end tests
nicpottier Feb 24, 2021
9750202
fix last test
nicpottier Feb 24, 2021
d86c120
Update to latest goflow
rowanseymour Feb 25, 2021
1ce90dc
Update CHANGELOG.md for v6.1.18
Feb 25, 2021
f8ca253
merge
nicpottier Feb 25, 2021
48d601e
test updates
nicpottier Feb 25, 2021
e996bd1
fix campaign even firing for background flows
nicpottier Feb 25, 2021
c242a2c
cleanup
nicpottier Feb 25, 2021
d09f40f
Merge pull request #413 from nyaruka/ivr-forwards
nicpottier Feb 26, 2021
63c226c
Update CHANGELOG.md for v6.1.19
Feb 26, 2021
94d1c56
prepare for 6.2.0 release
nicpottier Mar 1, 2021
55bdad2
Update CHANGELOG.md for v6.2.0
Mar 1, 2021
0c41bc8
Update CHANGELOG.md for v6.2.0
Mar 1, 2021
131c2ee
use SaveRequest() so our ivr logs always have bodies
nicpottier Mar 2, 2021
bad4908
go mod tidy
nicpottier Mar 2, 2021
49e6d37
Merge pull request #414 from nyaruka/fix-ivr-logging
nicpottier Mar 2, 2021
3566dde
Update CHANGELOG.md for v6.2.1
Mar 2, 2021
f2a739c
Update to latest goflow
rowanseymour Mar 3, 2021
16d6c38
Update CHANGELOG.md for v6.2.2
Mar 3, 2021
49925c0
Update README.md
rowanseymour Mar 4, 2021
72c7124
Update to latest goflow
rowanseymour Mar 9, 2021
e5886ce
Update CHANGELOG.md for v6.2.3
Mar 9, 2021
3e1ec03
fail expirations that are no longer the active session
nicpottier Mar 10, 2021
1026e7a
Merge pull request #416 from nyaruka/fail-old-expirations
rowanseymour Mar 17, 2021
d84ee5e
Update CHANGELOG.md for v6.3.0
Mar 17, 2021
e8fec48
Update to latest goflow
rowanseymour Mar 17, 2021
6a3762d
Update CHANGELOG.md for v6.3.1
Mar 17, 2021
d77d570
simplify caching, keep orgs for 5s, reload everything
nicpottier Mar 17, 2021
608554c
Merge pull request #417 from nyaruka/simplify-caching
rowanseymour Mar 17, 2021
b5c8e2a
Update CHANGELOG.md for v6.3.2
Mar 17, 2021
55777f5
smarter loading for cache misses on org assets
nicpottier Mar 18, 2021
bc46e51
better channel naming
nicpottier Mar 18, 2021
2392500
update comment
nicpottier Mar 19, 2021
ef22669
Update to latest goflow
rowanseymour Mar 26, 2021
124eb52
Update CHANGELOG.md for v6.3.3
Mar 26, 2021
c0e01f3
Update to latest goflow
rowanseymour Mar 29, 2021
dce4603
Merge pull request #418 from nyaruka/smarter-caching
rowanseymour Mar 29, 2021
1139707
Update CHANGELOG.md for v6.3.4
Mar 29, 2021
10d4aaf
Update to latest goflow
rowanseymour Mar 30, 2021
b45bceb
Update CHANGELOG.md for v6.3.5
Mar 30, 2021
66c0be0
Update to latest goflow
rowanseymour Mar 30, 2021
f6111b8
Update CHANGELOG.md for v6.3.6
Mar 30, 2021
b1249cd
Update test database and rename Nexmo to Vonage
rowanseymour Apr 9, 2021
7f7dcb9
Merge pull request #419 from nyaruka/vonage
rowanseymour Apr 9, 2021
3ed1425
Merge branch 'main' of https://github.com/nyaruka/mailroom into updat…
paulobernardoaf Apr 13, 2021
36f13f5
Updates goflow docs installation in Dockerfile
jcbalmeida Apr 15, 2021
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
28 changes: 17 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ name: CI
on: [push, pull_request]
env:
go-version: '1.14.x'
postgis-version: '2.5'
jobs:
test:
name: Test
strategy:
matrix:
pg-version: ['10', '11']
pg-version: ['11', '12']
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand All @@ -19,33 +20,38 @@ jobs:
redis version: '5'

- name: Install PostgreSQL
uses: nyaruka/postgis-action@master
uses: nyaruka/postgis-action@v2
with:
postgresql version: ${{ matrix.pg-version }}
postgis version: ${{ env.postgis-version }}
postgresql password: temba

- name: Install Linux packages
run: 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
run: |
psql -h localhost -U postgres -c "CREATE USER mailroom_test PASSWORD 'temba';"
psql -h localhost -U postgres -c "ALTER ROLE mailroom_test WITH SUPERUSER;"
psql -h localhost -U postgres -c "CREATE DATABASE mailroom_test;"
export PGPASSWORD=temba
psql -h localhost -U postgres --no-password -c "CREATE USER mailroom_test PASSWORD 'temba';"
psql -h localhost -U postgres --no-password -c "ALTER ROLE mailroom_test WITH SUPERUSER;"
psql -h localhost -U postgres --no-password -c "CREATE DATABASE mailroom_test;"

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

- name: Run tests
run: go test -p=1 -coverprofile=coverage.text -covermode=atomic ./...
run: |
export PGPASSWORD=temba
go test -p=1 -coverprofile=coverage.text -covermode=atomic ./...

- name: Upload coverage
if: success()
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
# fail_ci_if_error: true # ideally this should be enabled but codecov uploads fail a lot
fail_ci_if_error: true

release:
name: Release
Expand All @@ -60,7 +66,7 @@ jobs:
# for backward compatibility, English docs are copied to root of docs directory
run: |
GOFLOW_VERSION=$(grep goflow go.mod | cut -d" " -f2 | cut -c2-)
curl https://codeload.github.com/nyaruka/goflow/tar.gz/v$GOFLOW_VERSION | tar --wildcards --strip=1 -zx "goflow-${GOFLOW_VERSION}/docs/*"
curl -L https://github.com/nyaruka/goflow/releases/download/v${GOFLOW_VERSION}/docs.tar.gz | tar zxv
cp ./docs/en-us/*.* docs/

- name: Install Go
Expand All @@ -72,7 +78,7 @@ jobs:
uses: goreleaser/goreleaser-action@v1
if: ${{ !contains(github.ref, '-') }}
with:
version: latest
version: v0.147.2
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -81,7 +87,7 @@ jobs:
uses: goreleaser/goreleaser-action@v1
if: contains(github.ref, '-')
with:
version: latest
version: v0.147.2
args: release --rm-dist --skip-validate
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
231 changes: 231 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,234 @@
v6.3.6
----------
* Update to latest goflow

v6.3.5
----------
* Update to latest goflow

v6.3.4
----------
* Update to latest goflow
* Smarter loading for cache misses on org assets

v6.3.3
----------
* Update to latest goflow

v6.3.2
----------
* Simplify caching, keep orgs for 5s, reload everything

v6.3.1
----------
* Update to latest goflow

v6.3.0
----------
* Fail expirations that are no longer the active session

v6.2.3
----------
* Update to latest goflow with completed es and pt-BR translations

v6.2.2
----------
* Update to latest goflow

v6.2.1
----------
* use SaveRequest() so our ivr logs always have bodies

v6.2.0
----------
* 6.2.0 Release Candidate

v6.2.0
----------
* 6.2.0 Release Candidate

v6.1.19
----------
* Fix campaign even firing for background flows
* IVR forwards for Nexmo and Twilio

v6.1.18
----------
* Update to latest goflow
* Rename tickets/internal package

v6.1.17
----------
* Should match referral trigger with case insensitive

v6.1.16
----------
* Update to latest goflow
* Add link local ips to default disallowed networks config

v6.1.15
----------
* Update phonenumbers lib
* Decrease locations cache timeout to 1 minute

v6.1.14
----------
* Support ElasticSearch 7.2 (backwards incompatible to Elastic 6.*)

v6.1.13
----------
* Update to latest goflow

v6.1.12
----------
* Update to latest goflow v0.110.0

v6.1.11
----------
* Update to latest goflow v0.109.4

v6.1.10
----------
* Simplify FCM client code
* Fix updating message status when id column is bigint
* Ensure courier messages are always queued for a single contact
* Fix not triggering FCM syncs for broadcasts and ticket reply messages

v6.1.9
----------
* Update to goflow v0.109.0

v6.1.8
----------
* Update to latest goflow 0.108.0

v6.1.7
----------
* Use background instead of passive

v6.1.6
----------
* Update to latest goflow v0.107.2
* Add support for passive flows

v6.1.5
----------
* Update to goflow v0.107.1

v6.1.4
----------
* Variable timeout for fire campaign task

v6.1.3
----------
* Fix misreporting created contacts as updated during imports

v6.1.2
----------
* Ensure field and group assets used for imports are fresh
* Add support for internal type ticketers

v6.1.1
----------
* Update to latest goflow v0.106.3

v6.1.0
----------
* Configure engine to disallow HTTP requests to private networks

v6.0.3
----------
* correct name for completion.json in release

v6.0.2
----------
* pin goreleaser, explicit inclusion of /docs/*, completions and functions

v6.0.1
----------
* add log when queuing to courier

v6.0.0
----------
* Update test database

v5.7.44
----------
* Add ticket service for Rocket.Chat

v5.7.43
----------
* Update to latest goflow v0.106.1

v5.7.42
----------
* Prevent importing invalid URNs during import

v5.7.41
----------
* Update to latest goflow v0.106.0
* Don't write to flows_flowrun.timeout_on so it can be dropped

v5.7.40
----------
* Update to goflow v0.105.5

v5.7.39
----------
* Fix input_labels_added event handling when session input ID isn't set

v5.7.38
----------
* Always request Mp3 files from Twilio IVR recordings

v5.7.37
----------
* Add support for outgoing mailgun ticket attachments

v5.7.36
----------
* Incoming attachments for mailgun ticketers

v5.7.33
----------
* Update to goflow v0.105.4
* Fix cloning of flows during simulation so that ignore keyword triggers is cloned too

v5.7.32
----------
* Update to goflow v0.105.3 to get support for arabic numerals in has_number tests

v5.7.31
----------
* Update to latest goflow to get for normalizing numbers from The Gambia
* Enable retrying on the elastic client

v5.7.30
----------
* Reorganization of core packages

v5.7.29
----------
* Fix race condition when bulk getting/creating contacts

v5.7.28
----------
* Add contact/resolve endpoint to assist with channel events still handled in RP

v5.7.27
----------
* If a flow start task creates new contacts, save those back to the start

v5.7.26
----------
* Add mockable DB to enable testing database errors
* CreateContact also should do lookup before trying to create new contact with URNs
* Imports 2.0

v5.7.25
----------
* Pass org from the base task to task structs to remove need for duplicating it in the task body

v5.7.24
----------
* Add SessionStatus to messages queued to courier
Expand Down
15 changes: 6 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# 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/master/graph/badge.svg)](https://codecov.io/gh/nyaruka/mailroom)
# 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)

# About

Expand Down Expand Up @@ -53,19 +56,13 @@ Recommended settings for error and performance monitoring:

# Development

Install Mailroom source in your workspace with:

```
go get github.com/nyaruka/mailroom
```

Build Mailroom with:
Once you've checked out the code, you can build Mailroom with:

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

This will create a new executable in your current directory `mailroom`
This will create a new executable in $GOPATH/bin called `mailroom`.

To run the tests you need to create the test database:

Expand Down
Loading