sourcecred/src
Dandelion Mané c0c79fd608
Refactor `addressFilterer` for using PluginFilter (#316)
Given that we have reified the type `PluginFilter` as a consistent way
to filter nodes and edges by plugin and type, we should also have
re-usable logic for that end.

This commit adds `addressFilterer`, which takes a `PluginFilter` and
returns a function that checks whether a given address matches the
filter. Right now, only the `nodes` function uses it.

For added safety, `addressFilterer` does runtime validation that the
required `plugin` property was set.

Test plan: See included unit tests.
2018-05-29 14:10:39 -07:00
..
app Remove the artifact plugin (#303) 2018-05-25 19:29:36 -07:00
cli Merge `merge`s (#297) 2018-05-25 13:55:44 -07:00
core Setup `src/core2` as graph refactor staging area (#304) 2018-05-28 10:52:28 -07:00
core2 Refactor `addressFilterer` for using PluginFilter (#316) 2018-05-29 14:10:39 -07:00
graphql Fix all lint errors, adding a lint CI step (#175) 2018-04-30 14:52:28 -07:00
plugins Remove the artifact plugin (#303) 2018-05-25 19:29:36 -07:00
tools Merge `merge`s (#297) 2018-05-25 13:55:44 -07:00
util Add data versioning utilities (#292) 2018-05-21 11:21:05 -07:00