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.4.0 #147

Merged
merged 200 commits into from
Jul 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
200 commits
Select commit Hold shift + click to select a range
0a5a2c9
Throttle courier queues when the channel has rate limit redis key not…
norkans7 Oct 8, 2021
d63ccf3
refactor external channel handler to use headers config on send
rasoro Oct 28, 2021
71f1763
Pin to go 1.17.2
rowanseymour Nov 23, 2021
7466834
Update CHANGELOG.md for v7.1.1
rowanseymour Nov 23, 2021
a1f5a5d
add support to old way to set authorization token header
rasoro Nov 23, 2021
6123ec0
Merge pull request #386 from Ilhasoft/feature/external-channel-header…
rowanseymour Nov 23, 2021
538fdcf
Add comment
rowanseymour Nov 23, 2021
3447101
Update CHANGELOG.md for v7.1.2
rowanseymour Nov 23, 2021
42f1110
Use response_to_external_id instead of response_to_id
rowanseymour Nov 30, 2021
19771f2
Merge pull request #389 from nyaruka/no_response_to
rowanseymour Dec 1, 2021
b609d29
Update CHANGELOG.md for v7.1.3
rowanseymour Dec 1, 2021
30f9a91
Remove loop detection now that mailroom does this
rowanseymour Dec 1, 2021
bef57dd
Merge pull request #385 from Ilhasoft/feature/viber-config-button-layout
rowanseymour Dec 2, 2021
b6b72d9
Merge pull request #390 from nyaruka/remove_loop_detection
rowanseymour Dec 2, 2021
99c9b6a
Update CHANGELOG.md for v7.1.4
rowanseymour Dec 2, 2021
756b32f
Add Msg.failed_reason
rowanseymour Dec 6, 2021
d137ef3
Merge pull request #391 from nyaruka/failed_reason
rowanseymour Dec 6, 2021
ca40349
Update CHANGELOG.md for v7.1.5
rowanseymour Dec 6, 2021
46317fa
Merge branch 'main' of github.com:nyaruka/courier into fix-WA-rate-limit
norkans7 Dec 8, 2021
9560dc9
Add comment about the 2 seconds pause choice
norkans7 Dec 8, 2021
46475f1
Merge pull request #382 from nyaruka/fix-WA-rate-limit
rowanseymour Dec 8, 2021
cb453c1
Update CHANGELOG.md for v7.1.6
rowanseymour Dec 8, 2021
718aaa1
Update .gitignore to include deploy/
rowanseymour Dec 10, 2021
3233f3d
Add instagram handler
Robi9 Nov 29, 2021
ba97328
refactor instagram.go
Robi9 Nov 29, 2021
91885b2
Refactor instagram handler
Robi9 Nov 30, 2021
86f48fe
Add environment variables to instagram
Robi9 Dec 3, 2021
2cf7699
fix: Metadata search for a new contact
Robi9 Dec 16, 2021
3cfcb5a
add import for instagram handler
matmsa27 Dec 17, 2021
7965bd8
Refactor response field to external ID
Robi9 Dec 17, 2021
79a8110
Merge pull request #87 from Ilhasoft/feat/instagram-channel
Robi9 Dec 17, 2021
d27ee1a
feat: Add Instagram channel support to Facebook handler
Robi9 Dec 23, 2021
b914672
Remove unused instagram handler files
Robi9 Dec 23, 2021
fe834f7
Ignore story mention callback
Robi9 Dec 28, 2021
2055330
Add quick replies for vk
Robi9 Dec 30, 2021
220295b
Add support for new keyboard rows
Robi9 Jan 4, 2022
238050c
Remove unused Instagram-type configuration variables
Robi9 Jan 4, 2022
42951fd
Add story mention skip test coverage
Robi9 Jan 4, 2022
eb0c1fd
Merge pull request #394 from Ilhasoft/feature/quick-replies-vk
rowanseymour Jan 5, 2022
df30df8
Update to gocommon v1.15.1
Robi9 Jan 5, 2022
140b70c
Change of urn in instagram tests
Robi9 Jan 5, 2022
4a7fcc9
Rename validateSignatures parameter to useUUIDRoutes
Robi9 Jan 5, 2022
eb6d0aa
Separate TestDescribe for type IG and FBA
Robi9 Jan 5, 2022
4ade345
Use dbutil package from gocommon
rowanseymour Jan 7, 2022
9ce5e88
Change 'EntryID' to 'entryID'
Robi9 Jan 7, 2022
eef3716
Fix variable names
Robi9 Jan 7, 2022
c97ea0b
Rename variable in test cases
Robi9 Jan 7, 2022
479d376
Merge pull request #395 from nyaruka/dbutil
rowanseymour Jan 7, 2022
3163cff
Update CHANGELOG.md for v7.1.7
rowanseymour Jan 7, 2022
db8727b
Do more error wrapping when creating contacts and URNs
rowanseymour Jan 7, 2022
43b982c
Merge branch 'main' into feature/instagram-channel
Robi9 Jan 7, 2022
56b2beb
Merge pull request #396 from nyaruka/extra_errors
rowanseymour Jan 10, 2022
207d7bf
Update CHANGELOG.md for v7.1.8
rowanseymour Jan 10, 2022
50064d1
Fix bulk status updates
rowanseymour Jan 10, 2022
1b867a6
Merge pull request #398 from nyaruka/status_update_fix
rowanseymour Jan 10, 2022
2fd9ac0
Update CHANGELOG.md for v7.1.9
rowanseymour Jan 10, 2022
63e6361
Update to latest gocommon
rowanseymour Jan 10, 2022
4a8a9e6
Update CHANGELOG.md for v7.1.10
rowanseymour Jan 10, 2022
6f444e7
More bulk sql tweaks
rowanseymour Jan 10, 2022
71d5ddf
Update CHANGELOG.md for v7.1.11
rowanseymour Jan 10, 2022
7e8a198
Update to latest gocommon
rowanseymour Jan 12, 2022
bacb70e
Merge pull request #392 from Ilhasoft/feature/instagram-channel
rowanseymour Jan 13, 2022
e51540a
Merge pull request #399 from nyaruka/latest_gocommon
rowanseymour Jan 13, 2022
966c851
Update CHANGELOG.md for v7.1.12
rowanseymour Jan 13, 2022
93f74a0
Added Session Status and modified test case
alviriseup Jan 18, 2022
0fda71b
Merge pull request #402 from alviriseup/main
rowanseymour Jan 18, 2022
a23b58d
Send db and redis stats to librato in backed heartbeat
rowanseymour Jan 18, 2022
9c8dde5
Merge pull request #404 from nyaruka/db_redis_stats
rowanseymour Jan 18, 2022
fd95b68
Update CHANGELOG.md for v7.1.13
rowanseymour Jan 18, 2022
54ca176
Add support to receive button text from Twilio WhatsApp
norkans7 Jan 19, 2022
e3f9600
Support sending WA quick replies when we have attachments too
norkans7 Jan 19, 2022
8b01318
Allow more active redis connections
rowanseymour Jan 19, 2022
6104fd1
Merge pull request #406 from nyaruka/WA-QR-attachments
rowanseymour Jan 19, 2022
67b27dc
Merge pull request #405 from nyaruka/TWA-buttons-receive
rowanseymour Jan 19, 2022
347d806
Merge pull request #407 from nyaruka/more_redis_conns
rowanseymour Jan 19, 2022
cbfd24d
Update CHANGELOG.md for v7.1.14
rowanseymour Jan 19, 2022
3c8c801
Update HX user_data parameter
norkans7 Jan 18, 2022
04bd755
Send flow name as user_data to HX
norkans7 Jan 19, 2022
dccf0dc
Add and use MsgFlowRef type
norkans7 Jan 20, 2022
3de0651
Fix: Gujarati whatsapp language code
Robi9 Jan 20, 2022
a38d077
Merge pull request #408 from Ilhasoft/fix/gujarati-language-code-wpp
rowanseymour Jan 21, 2022
6291758
Rename FlowReference and use pointer
norkans7 Jan 24, 2022
950141d
use FlowReference type
norkans7 Jan 25, 2022
be4b48c
Merge pull request #400 from nyaruka/update-HX
rowanseymour Jan 25, 2022
58a64d9
Update CHANGELOG.md for v7.1.15
rowanseymour Jan 25, 2022
d30a0dd
Add support for channel paused bulk queue by redis key
norkans7 Feb 3, 2022
a349d84
Pause WA channel bulk queue when we hit the spam rate limit
norkans7 Feb 3, 2022
7a9d220
Use UPPPERCASE for redis commands
norkans7 Feb 3, 2022
d9bc7ac
Rely only on the payload error code
norkans7 Feb 3, 2022
6ea5e12
Use rate_limit_bulk as key
norkans7 Feb 3, 2022
2e47d9b
Merge pull request #413 from nyaruka/WA-tiers-paused
rowanseymour Feb 3, 2022
638d602
Update to latest gocommon
rowanseymour Feb 3, 2022
6a519a6
Update CHANGELOG.md for v7.1.16
rowanseymour Feb 3, 2022
bad4f0f
Use UPPERCASE for redis commands
norkans7 Feb 3, 2022
aa5606f
Merge pull request #414 from nyaruka/redis-UPPER
rowanseymour Feb 3, 2022
b15e40e
Support for deleting messages when we get an event for the message be…
norkans7 Feb 4, 2022
9d1d72c
Do not save any message when receiving IG story mentions
norkans7 Feb 4, 2022
2566795
Add kyrgyzstan language code wpp
Robi9 Feb 7, 2022
3e4d8e1
Merge pull request #416 from Ilhasoft/kyrgyzstan-language-code-wpp
rowanseymour Feb 7, 2022
f2dcb84
Add missing languages from whatsapp template
Robi9 Feb 8, 2022
dbe5d13
Merge pull request #417 from Ilhasoft/wpp-missing-language-codes
rowanseymour Feb 8, 2022
952c845
Merge branch 'main' of github.com:nyaruka/courier into IG-unsent
norkans7 Feb 11, 2022
7d54d0f
Use deleted by sender visibity for message unsent on IG channels
norkans7 Feb 11, 2022
e870ad8
fix whatsapp uploaded attachment file name
rasoro Feb 15, 2022
50a68d6
test whatsapp upload and cache document send cases
rasoro Feb 16, 2022
1385e04
Merge pull request #419 from Ilhasoft/fix/whatsapp-attachments-filename
rowanseymour Feb 17, 2022
ce384c0
Merge pull request #415 from nyaruka/IG-unsent
rowanseymour Feb 17, 2022
8b26f61
Update CHANGELOG.md for v7.1.17
rowanseymour Feb 17, 2022
812a1b6
Fix metadata fetching for new Facebook contacts
Robi9 Feb 18, 2022
aa3bff3
Refactor the metadata search
Robi9 Feb 18, 2022
0f691d8
Merge pull request #423 from Ilhasoft/fix/urn-contacts-metadata-fba
rowanseymour Feb 21, 2022
6e08af5
Fix type for IsDeleted field for events
norkans7 Feb 23, 2022
494e5bd
Merge pull request #424 from nyaruka/fix-is-deleted-flag-type
rowanseymour Feb 23, 2022
f28d4be
Update CHANGELOG.md for v7.1.18
rowanseymour Feb 23, 2022
89125d1
Update to support D3 contact check for whatspp contact not in contact…
norkans7 Feb 25, 2022
fb0bf38
Merge pull request #425 from nyaruka/contact-error-d3
rowanseymour Feb 25, 2022
29f3b41
Update CHANGELOG.md for v7.1.19
rowanseymour Feb 25, 2022
1a46ce7
CI testing with go 1.17.7
rowanseymour Mar 7, 2022
43157ea
Update CHANGELOG.md for v7.2.0
rowanseymour Mar 7, 2022
30fb76e
Support stopping contacts when we get stop events on status callbacks
norkans7 Mar 17, 2022
61b6e5c
Merge pull request #426 from nyaruka/Twilio-Stop-callback
rowanseymour Mar 18, 2022
17f7da4
Update CHANGELOG.md for v7.3.0
rowanseymour Mar 18, 2022
6868a5c
Fix handling stops via status callbacks on Twilio
rowanseymour Mar 21, 2022
ab3af80
Merge pull request #427 from nyaruka/twilio_stop_fix
rowanseymour Mar 21, 2022
087a320
Update CHANGELOG.md for v7.3.1
rowanseymour Mar 21, 2022
2d19d67
Update golang.org/x/sys
rowanseymour Mar 22, 2022
1eed670
Refactor FBA tests
norkans7 Apr 8, 2022
e223a2e
Add support for WA Cloud API
norkans7 Apr 8, 2022
ed7597d
Add link preview attribute
Robi9 Mar 30, 2022
c15c3d6
Rename preview attribute
Robi9 Mar 31, 2022
06c9728
Add library with greater support for detection of mime types
Robi9 Apr 5, 2022
f21056c
Remove http library usage for mime types in Whatsapp
Robi9 Apr 12, 2022
c33da6a
Update to latest gocommon and start using httpx.DetectContentType
Robi9 Apr 13, 2022
65a09d2
Rename to use WAC and WhatsApp Cloud
norkans7 Apr 13, 2022
1968da2
Merge pull request #432 from Ilhasoft/fix/mime-files-wpp
rowanseymour Apr 14, 2022
e61ea45
Merge pull request #431 from Ilhasoft/feature/preview-links-wpp
rowanseymour Apr 14, 2022
4be945f
Update CHANGELOG.md for v7.3.2
rowanseymour Apr 14, 2022
0692235
Update to codecov action v2
rowanseymour Apr 14, 2022
8e1e8f7
Quick fix to allow JSON content to not be omitted in logs
norkans7 Apr 20, 2022
39d981e
Merge pull request #434 from nyaruka/do-not-omit-json
rowanseymour Apr 20, 2022
5834bc2
Update CHANGELOG.md for v7.3.3
rowanseymour Apr 20, 2022
5ac9dc7
Stop Telegram contact that have blocked the channel bot
norkans7 Apr 20, 2022
b0732ef
tweak in whatsapp handler on sendWhatsAppMsg returned wppID
rasoro Apr 20, 2022
b6ec19f
fix error handling in get externalID on sendWhatsAppMsg
rasoro Apr 22, 2022
373fd00
tweak whatsapp test
rasoro Apr 25, 2022
7ed4e67
Merge pull request #436 from nyaruka/stop-telegram-contacts
rowanseymour Apr 27, 2022
d49edf2
Merge pull request #437 from Ilhasoft/fix/whatsapp-handler-update-urn…
rowanseymour Apr 27, 2022
2fe2766
Update CHANGELOG.md for v7.3.4
rowanseymour Apr 27, 2022
097b939
Adjust to use phone ID stored as channel address
norkans7 Apr 28, 2022
bd84397
Fix tests
norkans7 Apr 28, 2022
aab4afa
Fix token to send WA messages
norkans7 Apr 29, 2022
4dec84e
Update Start Mobile send URL
norkans7 Apr 29, 2022
85ca088
Merge pull request #438 from nyaruka/update-ST
rowanseymour Apr 29, 2022
6905d4a
Update CHANGELOG.md for v7.3.5
rowanseymour Apr 29, 2022
08f4f8b
Update to go 1.18 and latest gocommon/phonenumbers
rowanseymour May 2, 2022
d97f45c
Update jsonparser
rowanseymour May 2, 2022
91703f0
Merge pull request #439 from nyaruka/update
rowanseymour May 2, 2022
470cd9d
Update CHANGELOG.md for v7.3.6
rowanseymour May 2, 2022
d2d537c
Fix to not stop contact for other errors
norkans7 May 4, 2022
201f6e4
Merge pull request #441 from nyaruka/fix-telegram-stop
rowanseymour May 4, 2022
52bec90
Update CHANGELOG.md for v7.3.7
rowanseymour May 4, 2022
bea7f18
Add log to status first
norkans7 May 9, 2022
adaa1db
Merge pull request #442 from nyaruka/fix-telegram-stop
rowanseymour May 9, 2022
04543ee
Update CHANGELOG.md for v7.3.8
rowanseymour May 9, 2022
10f90ca
Add arm64 as a build target
morrismukiri May 16, 2022
dab3de9
Merge pull request #443 from morrismukiri/arm64-build
rowanseymour May 16, 2022
6375059
Merge pull request #429 from nyaruka/refactor-fba-tests
rowanseymour May 26, 2022
4cec783
Merge pull request #430 from nyaruka/cloud--api-wa
rowanseymour May 26, 2022
f68b9e0
Update CHANGELOG.md for v7.3.9
rowanseymour May 26, 2022
1b68664
Make sure text are sent after audio attachments for WA channels
norkans7 May 30, 2022
2909fd1
More coverage
norkans7 May 30, 2022
3faf663
Merge pull request #445 from nyaruka/fix-WA-audio-text
rowanseymour May 30, 2022
d2e0c7b
Update CHANGELOG.md for v7.3.10
rowanseymour May 30, 2022
8356f93
Use analytics package from gocommon
rowanseymour Jun 29, 2022
a87518d
Merge pull request #447 from nyaruka/analytics
rowanseymour Jun 29, 2022
f48cb1d
Update README
rowanseymour Jul 8, 2022
57732ae
Update CHANGELOG.md for v7.4.0
rowanseymour Jul 8, 2022
9f5d751
Merge tag 'v7.2.0' into update/v7.2.0
Robi9 Sep 29, 2022
f80c305
Update WENI-CHANGELOG.md for 1.5.0-courier-7.2.0
Robi9 Nov 3, 2022
8e38ee4
Merge tag 'v7.4.0' into update/v7.4.0
Robi9 Nov 29, 2022
335f5b5
Add caption verification on attachments
Robi9 Nov 30, 2022
f3b19db
Change gocommon version to v1.22.2-weni
Robi9 Nov 30, 2022
633bb38
Update Dockerfile
Robi9 Jan 5, 2023
8fc7d8d
Use the new package to find out the mime type of attachments
Robi9 Apr 10, 2023
f0bb2c4
Fix maximum message size limits for WAC, FBA and IG.
Robi9 Apr 14, 2023
11c85dd
Add support for receiving contact type messages in WAC
Robi9 Apr 17, 2023
83e2f41
Create build-courier-push-tag-sp-india-ire.yaml
marcelloale Mar 3, 2023
8f05297
fix: remove last seen on
paulobernardoaf Apr 27, 2023
bc15f4f
Merge pull request #145 from Ilhasoft/fix/remove-last-seen-on
Robi9 Apr 27, 2023
0f8049a
Merge pull request #146 from weni-ai/7.4.0-fix-att
Robi9 Apr 27, 2023
c0b1654
Update WENI-CHANGELOG.md
Robi9 Apr 27, 2023
bef2a3a
Fix changelog version
Robi9 May 2, 2023
84d9e0a
Add module to send webhooks
Robi9 Feb 27, 2023
85cefa4
Add verification and forwarding of webhooks for WAC/WA
Robi9 Feb 27, 2023
0e289f7
Add method field and headers in webhook
Robi9 Mar 2, 2023
e955fc6
Improve URL verification for webhooks
Robi9 Apr 27, 2023
6ca309c
Merge pull request #148 from Ilhasoft/feat/webhook
Robi9 May 4, 2023
b0509f7
Update WENI-CHANGELOG.md for 1.5.2-courier-7.4.0
Robi9 May 4, 2023
38d919c
Merge branch 'main' into update/v7.4.0
rasoro Jul 25, 2023
fbbeb5a
Fix test TestMsgSuite/TestWriteAttachment
Robi9 May 5, 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
93 changes: 93 additions & 0 deletions .github/workflows/build-courier-push-tag-sp-india-ire.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
name: Build Courier in SP, India and Ireland (Push Tag)

on:
push:
tags:
- '*.*.*-staging'
- '*.*.*'

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Set variables
run: |
TAG="$( echo "${GITHUB_REF}" | cut -d'/' -f3 )"
if grep -qs -e '^.*.*-develop' <<< "${TAG}" ; then
echo "Found environment: DEVELOP - ${TAG}"
echo "ENVIRONMENT=develop" | tee -a "${GITHUB_ENV}"
exit 1 # stop action
elif grep -qs -e '^.*.*-staging' <<< "${TAG}" ; then
echo "Found environment: STAGING - ${TAG}"
echo "ENVIRONMENT=staging" | tee -a "${GITHUB_ENV}"
elif grep -qs -e '^.*.*' <<< "${TAG}" ; then
echo "No environment found, assuming: PRODUCTION - ${TAG}"
echo "ENVIRONMENT=production" | tee -a "${GITHUB_ENV}"
else
echo 'Not a valid tag. Skipping...'
exit 1
fi
echo "TAG=$TAG" | tee -a "${GITHUB_ENV}"
VERSION="${TAG}"
echo "VERSION=${VERSION}" | tee -a "${GITHUB_ENV}"
echo "COMMIT_SHA=$GITHUB_SHA" | tee -a "${GITHUB_ENV}"
if [[ "${TAG}" == *"-india"* ]]; then
echo "IMAGE_TAG=${{ secrets.ECR_INDIA }}/courier:${TAG}" | tee -a "${GITHUB_ENV}"
elif [[ "${TAG}" == *"-ire"* ]]; then
echo "IMAGE_TAG=${{ secrets.ECR_IRE }}/rp-courier-rapidpro:${TAG}" | tee -a "${GITHUB_ENV}"
else
echo "IMAGE_TAG=${{ secrets.ECR_SP }}/push-courier:${TAG}" | tee -a "${GITHUB_ENV}"
fi
echo "IMAGE_SOURCE_URL=https://github.com/weni-ai/courier" | tee -a "${GITHUB_ENV}"
echo "MANIFESTS_REPOSITORY=Ilhasoft/kubernetes-manifests-platform" | tee -a "${GITHUB_ENV}"
echo "MANIFESTS_APPLICATION=weni-flows/courier" | tee -a "${GITHUB_ENV}"
echo "MANIFESTS_PATCH_TARGET=deployment.json" | tee -a "${GITHUB_ENV}"

- name: Check out the repo
uses: actions/checkout@v3
with:
ref: "${{env.GITHUB_SHA}}"

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to Registry India
if: ${{ contains(env.TAG, '-india') }}
uses: docker/login-action@v2
with:
registry: ${{ secrets.ECR_INDIA }}
username: ${{ secrets.AWS_ACCESS_KEY_ID_INDIA }}
password: ${{ secrets.AWS_SECRET_ACCESS_KEY_INDIA }}

- name: Login to Registry Ireland
if: ${{ contains(env.TAG, '-ire') }}
uses: docker/login-action@v2
with:
registry: ${{ secrets.ECR_IRE }}
username: ${{ secrets.AWS_ACCESS_KEY_ID_IRE }}
password: ${{ secrets.AWS_SECRET_ACCESS_KEY_IRE }}

- name: Login to Registry SP
if: ${{ !contains(env.TAG, '-india') && !contains(env.TAG, '-ire') }}
uses: docker/login-action@v2
with:
registry: ${{ secrets.ECR_SP }}
username: ${{ secrets.AWS_ACCESS_KEY_ID_SP }}
password: ${{ secrets.AWS_SECRET_ACCESS_KEY_SP }}

- name: Build and push - Courier Image
uses: docker/build-push-action@v3
with:
context: .
labels: |
tag=${{env.TAG}}
commit=${{env.COMMIT_SHA}}
repository=${{env.IMAGE_SOURCE_URL}}
file: docker/Dockerfile
push: true
tags: "${{env.IMAGE_TAG}}"
no-cache: true

100 changes: 50 additions & 50 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,74 +1,74 @@
name: CI
on: [push, pull_request]
env:
go-version: '1.17.x'
redis-version: '3.2.4'
go-version: "1.18.x"
redis-version: "5.0.6"
jobs:
test:
name: Test
strategy:
matrix:
pg-version: ['12', '13']
pg-version: ["12", "13"]
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v1
- name: Checkout code
uses: actions/checkout@v1

- name: Install Redis
uses: zhulik/[email protected]
with:
redis version: ${{ env.redis-version }}
- name: Install Redis
uses: zhulik/[email protected]
with:
redis version: ${{ env.redis-version }}

- name: Install PostgreSQL
uses: harmon758/postgresql-action@v1
with:
postgresql version: ${{ matrix.pg-version }}
postgresql db: courier_test
postgresql user: courier
postgresql password: courier
- name: Install PostgreSQL
uses: harmon758/postgresql-action@v1
with:
postgresql version: ${{ matrix.pg-version }}
postgresql db: courier_test
postgresql user: courier
postgresql password: courier

- name: Install Go
uses: actions/setup-go@v1
with:
go-version: ${{ env.go-version }}
- 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 ./...
- name: Run tests
run: go test -p=1 -coverprofile=coverage.text -covermode=atomic ./...

- name: Upload coverage
if: success()
uses: codecov/codecov-action@v2
with:
fail_ci_if_error: true

- name: Upload coverage
if: success()
uses: codecov/codecov-action@v1
with:
fail_ci_if_error: true

release:
name: Release
needs: [test]
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v1
- name: Checkout code
uses: actions/checkout@v1

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

- name: Publish release
uses: goreleaser/goreleaser-action@v1
if: ${{ !contains(github.ref, '-') }}
with:
version: v0.147.2
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish release
uses: goreleaser/goreleaser-action@v1
if: ${{ !contains(github.ref, '-') }}
with:
version: v0.147.2
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Publish non-master release
uses: goreleaser/goreleaser-action@v1
if: contains(github.ref, '-')
with:
version: v0.147.2
args: release --rm-dist --skip-validate
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish non-master release
uses: goreleaser/goreleaser-action@v1
if: contains(github.ref, '-')
with:
version: v0.147.2
args: release --rm-dist --skip-validate
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
*.a
*.so
*~
deploy
fabric
fabfile.py
fabfile.pyc
Expand Down Expand Up @@ -34,4 +35,4 @@ _testmain.go
dist/
.envrc
courier
_storage
_storage
146 changes: 146 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,149 @@
v7.4.0
----------
* Update README
* Use analytics package from gocommon

v7.3.10
----------
* Make sure text are sent after audio attachments for WA channels

v7.3.9
----------
* Add arm64 as a build target
* Add support for WA Cloud API
* Refactor FBA tests

v7.3.8
----------
* Add log to status first when handling telegram opt outs

v7.3.7
----------
* Fix to not stop contact for other errors

v7.3.6
----------
* Update to go 1.18 and latest gocommon/phonenumbers/jsonparser

v7.3.5
----------
* Update Start Mobile send URL

v7.3.4
----------
* Update WhatsApp handler so that we update the URN if the returned ID doesn't match
* Stop Telegram contact that have blocked the channel bot

v7.3.3
----------
* Quick fix to stop JSON content being omitted in logs

v7.3.2
----------
* Update to latest gocommon and start using httpx.DetectContentType
* Add link preview attribute for sending whatsapp
* Update golang.org/x/sys

v7.3.1
----------
* Fix handling stops via status callbacks on Twilio

v7.3.0
----------
* Support stopping contacts when we get stop events on status callbacks

v7.2.0
----------
* CI testing with go 1.17.7

v7.1.19
----------
* Update D3 handler to support check for whatsapp contact not in contact store

v7.1.18
----------
* Fix type for IsDeleted field for IG unsend events
* Fix metadata fetching for new Facebook contacts

v7.1.17
----------
* Fix whatsapp uploaded attachment file name
* Use deleted by sender visibity for message unsent on IG channels
* Add missing languages from whatsapp template
* Do not save any message when receiving IG story mentions

v7.1.16
----------
* Update to latest gocommon
* Pause WA channel bulk queue when we hit the spam rate limit

v7.1.15
----------
* Fix Gujarati whatsapp language code
* Send flow name as user_data to HX

v7.1.14
----------
* Allow more active redis connections
* Support sending WA quick replies when we have attachments too
* Add support to receive button text from Twilio WhatsApp

v7.1.13
----------
* Send db and redis stats to librato in backed heartbeat
* Include session_status in FCM payloads

v7.1.12
----------
* Update to latest gocommon
* Add instagram handler

v7.1.11
----------
* More bulk sql tweaks

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

v7.1.9
----------
* Fix bulk status updates

v7.1.8
----------
* Do more error wrapping when creating contacts and URNs

v7.1.7
----------
* Use dbutil package from gocommon
* Add quick replies for vk

v7.1.6
----------
* Throttle WA queues when we get 429 responses

v7.1.5
----------
* Add Msg.failed_reason and set when msg fails due to reaching error limit

v7.1.4
----------
* Remove loop detection now that mailroom does this
* Smarter organization of quick replies for viber keyboards

v7.1.3
----------
* Use response_to_external_id instead of response_to_id

v7.1.2
----------
* External channel handler should use headers config setting if provided

v7.1.1
----------
* Pin to go 1.17.2

v7.1.0
----------
* Remove chatbase support
Expand Down
Loading