sourcecred/src
Brian Litwin 42669cd160
PagerankTable: Replace topLevelFilter with NodeType in props (#1103)
The motivation for this change is to make it easier
to access the selected Node's `name` prop for #576,
in which we plan to show a Card displaying summary
stats for the selected node. With only the `topLevelFilter`
available, it's trickier than it needs to be to find out
a node type's `name`.

Test Plan:
* Yarn test passes.
* Visual/Manual inspection of table doesn't surface any issues.
* Updated `it("filter defaults to defaultNodeFilter if available")`
to `it("selectedNodeType defaults to defaultNodeType if available")`.
* Verified that the above new test is failable in several ways by
mangling the tests to test for the wrong node type and mangling the
code to set the wrong node type.
* Since we factored out 'topLevelFilter' and 'defaultNodeFilter',
running `git grep -i topLevelFilter` and `git grep -i defaultNodeFilter`
turns up empty, just to make sure those terms aren't hanging
around to confuse anybody in the future.
* I don't think changing the `prop` parameter warrants any
additional tests, as the current tests verify that the prop
is passed in correctly.

This was at @decentralion's suggestion, following the Contributing
Guideline's Kent Beck quote of making the easy change to make the
change we were originally after (#576) easier. 🙌
2019-02-21 14:27:18 -05:00
..
analysis Report Markov Chain convergence statistics (#1053) 2019-02-12 19:28:53 -07:00
assets/logo Add logo variants for CredBot and Discourse (#717) 2018-08-29 15:15:10 -07:00
cli core: allow repo ID registry to store metadata (#1003) 2018-11-09 17:28:39 -08:00
core Add a test helper function for converged graphs (#1093) 2019-02-18 13:10:55 -07:00
explorer PagerankTable: Replace topLevelFilter with NodeType in props (#1103) 2019-02-21 14:27:18 -05:00
graphql Update reaction types (#1068) 2019-01-24 06:24:22 -05:00
homepage redirect routing for prototype (#1030) 2019-02-10 14:30:28 -07:00
plugins PagerankTable: Replace topLevelFilter with NodeType in props (#1103) 2019-02-21 14:27:18 -05:00
tools Make `yarn test` more quiet (#1037) 2019-01-05 18:16:29 -08:00
util MapUtil: provide exact output from `toObject` (#993) 2018-11-01 18:55:14 -07:00
webutil link: verify that routes have trailing slash (#1001) 2018-11-08 20:53:30 -08:00