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

Replace flows.MsgTemplating variables by params #1204

Merged
merged 2 commits into from
Jan 17, 2024

Conversation

norkans7
Copy link
Contributor

No description provided.

Copy link

codecov bot commented Jan 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (fc6dde4) 87.66% compared to head (a388b6d) 87.73%.

❗ Current head a388b6d differs from pull request most recent head 25d01c8. Consider uploading reports for the commit 25d01c8 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1204      +/-   ##
==========================================
+ Coverage   87.66%   87.73%   +0.06%     
==========================================
  Files         260      260              
  Lines       10869    10873       +4     
==========================================
+ Hits         9528     9539      +11     
+ Misses        922      915       -7     
  Partials      419      419              

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

@norkans7 norkans7 requested a review from rowanseymour January 17, 2024 11:50
flows/msg.go Outdated
@@ -168,28 +168,41 @@ func (m *MsgOut) Locale() i18n.Locale { return m.Locale_ }
// UnsendableReason returns the reason this message can't be sent (if any)
func (m *MsgOut) UnsendableReason() UnsendableReason { return m.UnsendableReason_ }

type ComponentVariable struct {
Copy link
Member

Choose a reason for hiding this comment

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

let's call this TemplateParam

Copy link
Contributor Author

@norkans7 norkans7 Jan 17, 2024

Choose a reason for hiding this comment

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

I was trying to make a distinction between that and

type TemplateParam struct {
	Type_ string `json:"type"`
}

That we'll use in the template translations

But I just renamed that to TemplateParam

Copy link
Member

Choose a reason for hiding this comment

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

well they're definitely params now rather than variables...maybe it's ok for them to have same name as they'll be in different packages

@norkans7 norkans7 force-pushed the variables-params-alt branch from a388b6d to 25d01c8 Compare January 17, 2024 14:36
@rowanseymour rowanseymour merged commit db985db into main Jan 17, 2024
12 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jan 17, 2024
@norkans7 norkans7 deleted the variables-params-alt branch January 17, 2024 17:09
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