equinor / septic-config-generator

SEPTIC config generator
MIT License
4 stars 0 forks source link

feat: add filter to extract values from hashmap #214

Closed einarsi closed 8 months ago

einarsi commented 8 months ago

The values filter lets us extract just the values from a source-row, neglecting the key. This lets us easily filter the rows we are interested in without using a nested if.

{% for v in flowline | values | selectattr("Flowline", "endingwith", "a") %}
  do something
{% endfor %}
github-actions[bot] commented 8 months ago

Test Results

39 tests  +3   39 :white_check_mark: +3   0s :stopwatch: ±0s  1 suites ±0    0 :zzz: ±0   1 files   ±0    0 :x: ±0 

Results for commit e7dc8e9a. ± Comparison against base commit 784c5329.

:recycle: This comment has been updated with latest results.

codecov[bot] commented 8 months ago

Codecov Report

Attention: Patch coverage is 93.42105% with 5 lines in your changes are missing coverage. Please review.

Project coverage is 74.46%. Comparing base (784c532) to head (e7dc8e9).

Files Patch % Lines
src/renderer.rs 93.42% 5 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #214 +/- ## ========================================== + Coverage 73.86% 74.46% +0.60% ========================================== Files 10 10 Lines 1404 1457 +53 ========================================== + Hits 1037 1085 +48 - Misses 367 372 +5 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.