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.

Question: How do I specify a rule which compares two facts?

See original GitHub issue

Ex: Say the facts are { "avg_def_density_tolerance_hit": "yes", "tot_developers": 900, "tot_defects": 1003, "open_stories": 12 } And I want to write a rule that will pass if tot_defects > open_stories

Suggestion: If this is not easy to implement or you’d rather not support it, please consider enhancing the addOperator method to pass in the complete rule and all the facts: that way others can add the logic necessary.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

taurenkcommented, Mar 19, 2017

Thanks for the quick fix, @CacheControl. Everything seems to be working great now.

CacheControlcommented, Mar 19, 2017

@taurenk thanks for reporting this, I’ve published a bug fix in 1.5.1. Looks like there was a gap in our test suite, which has now been remedied. Please let me know if you run in to any other issues.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Comparing and Contrasting - UNC Writing Center
This handout will help you determine if an assignment is asking for comparing and contrasting, generate similarities and differences, and decide a focus....
Read more >
Comparing Numbers (Rules to Compare Numbers & Examples)
This rule is applicable when two numbers are having the same number of digits. In such cases, we need to check the digit...
Read more >
Rule -based reasoning applies a rule directly to a set of facts. ... case (component 2), compares the facts of the precedential case...
Read more >
Illogical Comparisons: The Weirdest Topic on SAT Writing
Illogical comparisons happen when you compare things that aren't equal. Make sure you have strategies for this weird SAT grammar rule!
Read more >
Excel: Compare two columns for matches and differences
Use a formula to determine which cells to format. Create a rule with a simple formula like =$B2=$A2 (assuming that row 2 is...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found