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

13.5 #1246

Merged
merged 2 commits into from
Apr 25, 2024
Merged

13.5 #1246

merged 2 commits into from
Apr 25, 2024

Conversation

rowanseymour
Copy link
Member

No description provided.

@@ -140,16 +140,16 @@ func testActionType(t *testing.T, assetsJSON json.RawMessage, typeName string) {
// inject the action into a suitable node's actions in that flow
actionsPath := []string{"flows", fmt.Sprintf("[%d]", flowIndex), "nodes", "[0]", "actions"}
actionsJson := []byte(fmt.Sprintf("[%s]", string(tc.Action)))
assetsJSON = test.JSONReplace(assetsJSON, actionsPath, actionsJson)
testAssetsJSON := test.JSONReplace(assetsJSON, actionsPath, actionsJson)
Copy link
Member Author

Choose a reason for hiding this comment

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

not declaring a new variable here meant that changes to the assets was leaking between tests

Copy link

codecov bot commented Apr 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.51%. Comparing base (7650434) to head (8e6abe0).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1246      +/-   ##
==========================================
+ Coverage   82.47%   82.51%   +0.03%     
==========================================
  Files         279      279              
  Lines       14446    14477      +31     
==========================================
+ Hits        11915    11946      +31     
  Misses       2028     2028              
  Partials      503      503              

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

}
},
"kin": {
"5a5ccef6-8daa-4cb8-8e52-6b486361710f": {
Copy link
Member Author

Choose a reason for hiding this comment

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

here we have a translation for the second component but not the first - the final template_variables translation needs to borrow values for the first component from the original language

@rowanseymour rowanseymour marked this pull request as ready for review April 17, 2024 22:23
@@ -32,19 +32,11 @@ const TypeSendMsg string = "send_msg"
// "text": "Hi @contact.name, are you ready to complete today's survey?",
// "attachments": [],
// "all_urns": false,
// "templating": {
Copy link
Member Author

Choose a reason for hiding this comment

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

we could just go back to the 13.3 format of a templating object with a UUID and a list of variables.. but I never liked having an arbitrary UUID on a thing just so it could be localized... so I'm putting template and template_variables directly on the action object.

@rowanseymour rowanseymour merged commit b56e274 into main Apr 25, 2024
7 checks passed
@rowanseymour rowanseymour deleted the 13.5 branch April 25, 2024 20:30
@github-actions github-actions bot locked and limited conversation to collaborators Apr 25, 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