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

Fix WA templating generation and add tests #718

Merged
merged 1 commit into from
Mar 15, 2024
Merged

Conversation

rowanseymour
Copy link
Member

No description provided.

} else {
component := &Component{Type: "button", Index: strings.TrimPrefix(k, "button."), SubType: "quick_reply"}
component.Params = append(component.Params, &Param{Type: "payload", Payload: p.Value})
template.Components = append(template.Components, component)
Copy link
Member Author

Choose a reason for hiding this comment

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

isn't this adding a button component for every param in a button ?

Copy link
Contributor

Choose a reason for hiding this comment

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

I see

@rowanseymour rowanseymour requested a review from norkans7 March 15, 2024 16:05
Copy link

codecov bot commented Mar 15, 2024

Codecov Report

Attention: Patch coverage is 87.50000% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 74.41%. Comparing base (39f06b1) to head (196c706).

Files Patch % Lines
handlers/meta/whatsapp/templates.go 86.36% 1 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #718      +/-   ##
==========================================
+ Coverage   74.17%   74.41%   +0.24%     
==========================================
  Files         110      110              
  Lines       13330    13335       +5     
==========================================
+ Hits         9887     9923      +36     
+ Misses       2727     2690      -37     
- Partials      716      722       +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rowanseymour rowanseymour merged commit 1ddb1f4 into main Mar 15, 2024
7 checks passed
@rowanseymour rowanseymour deleted the templates_fix branch March 15, 2024 16:12
@github-actions github-actions bot locked and limited conversation to collaborators Mar 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants