question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[docs] add docs for jinja Formula/math in numeric fields

See original GitHub issue

Hey all, I want to raise the discussion as I didn’t find a documented solution and the obvious ways do not work.

Is it possible to pass formulas as configuration values? A typical example would be duration_seconds = 24*60*60 or factor = 1/60. Yes, one could write it out but the mathematical expression often holds additional value or is more accurate (second example).

I read about “computed values” but wasn’t able to make that work for the example.

Thanks and all the best

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:12 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
rochacbrunocommented, Mar 3, 2021

@ThomDietrich reopened! lets work on a docs session for this.

1reaction
ThomDietrichcommented, Mar 3, 2021

Wait, don’t just close the ticket.

If I had to ask and you needed four comments to get to this revelation, maybe this should be documented?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Use equations in a document - Google Docs Editors Help
You can insert mathematical equations into your documents. Insert an equation. Open a document in Google Docs. Click where you want to put...
Read more >
Jinja2 filters — Ansible Documentation - Read the Docs
This filter can be used similar to the default jinja2 random filter (returning a random item from a sequence of items), but can...
Read more >
REST Resource: documents | Google Docs
Can be used in update requests to specify which revision of a document to apply updates to and how the request should behave...
Read more >
Using Arithmetic Functions - S-Docs for Salesforce
S-Docs templates support arithmetic functions for both static numbers and numeric fields. All functions should be written using standard ...
Read more >
Google Docs: Redefining Document Collaboration - G2
It means, whenever you sent X number of attachments to friends or co-workers, you were basically creating (X + 1) copies of it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found