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

Load template translations params #1206

Merged
merged 2 commits into from
Jan 22, 2024
Merged

Load template translations params #1206

merged 2 commits into from
Jan 22, 2024

Conversation

norkans7
Copy link
Contributor

No description provided.

Copy link

codecov bot commented Jan 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (ff8b2a7) 87.72% compared to head (1d62cfe) 87.73%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1206   +/-   ##
=======================================
  Coverage   87.72%   87.73%           
=======================================
  Files         260      260           
  Lines       10870    10876    +6     
=======================================
+ Hits         9536     9542    +6     
  Misses        915      915           
  Partials      419      419           

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

Content_ string `json:"content" validate:"required"`
Locale_ i18n.Locale `json:"locale" validate:"required"`
Namespace_ string `json:"namespace"`
VariableCount_ int `json:"variable_count"`
Copy link
Member

Choose a reason for hiding this comment

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

Can't we get rid of variable count? Isn't it just len(params["body"]) ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes those are the same, I have not seen where that variable is used actually, I guess probably with the flow_editor, so we can cleanup that once we are sure it is not relied on

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 get rid of it here if the engine doesn't need it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay

@norkans7 norkans7 requested a review from rowanseymour January 22, 2024 14:39
@rowanseymour rowanseymour merged commit 1336945 into main Jan 22, 2024
7 checks passed
@rowanseymour rowanseymour deleted the load-template-param branch January 22, 2024 14:43
@github-actions github-actions bot locked and limited conversation to collaborators Jan 22, 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