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

Support more than one header in External Channel #386

Merged

Conversation

jcbalmeida
Copy link

@jcbalmeida jcbalmeida commented Nov 2, 2021

courier.ConfigSendBody: `<msg><to>{{to}}</to><text>{{text}}</text><from>{{from}}</from><quick_replies>{{quick_replies}}</quick_replies></msg>`,
courier.ConfigContentType: contentXML,
courier.ConfigSendMethod: http.MethodPost,
courier.ConfigSendAuthorization: "Token ABCDEF",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should make sure one of these tests is still using the old send_authorization key

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jcbalmeida can you just make sure one of these is using the old config key and then we'll get this merged

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean tweak one of these tests so we know it still works with the old config, until that migration is run

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I pushed a commit just now with this tweak to ensure compatibility

@rowanseymour
Copy link
Member

looks fine tho we're in code freeze for next 2 weeks

@codecov
Copy link

codecov bot commented Nov 2, 2021

Codecov Report

Merging #386 (a1f5a5d) into main (ea9fedf) will decrease coverage by 0.05%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #386      +/-   ##
==========================================
- Coverage   71.42%   71.37%   -0.06%     
==========================================
  Files          94       93       -1     
  Lines        8276     8258      -18     
==========================================
- Hits         5911     5894      -17     
  Misses       1762     1762              
+ Partials      603      602       -1     
Impacted Files Coverage Δ
channel.go 27.27% <ø> (ø)
handlers/external/external.go 91.17% <100.00%> (+0.13%) ⬆️
backends/rapidpro/channel.go 40.28% <0.00%> (-0.72%) ⬇️
backends/rapidpro/backend.go 61.60% <0.00%> (-0.63%) ⬇️
handlers/africastalking/africastalking.go 90.76% <0.00%> (ø)
chatbase/chatbase.go

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 ea9fedf...a1f5a5d. Read the comment docs.

@rowanseymour rowanseymour merged commit 6123ec0 into nyaruka:main Nov 23, 2021
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