ThreeSixtyGiving / grantvis

GrantVis - Visual 360Giving Data explorer
https://grantvis.threesixtygiving.org
GNU General Public License v3.0
0 stars 0 forks source link

views: Add new redirect helper to support legacy links #229

Closed michaelwood closed 9 months ago

michaelwood commented 9 months ago

This adds support for /?funder=orgid&funder=orgid and refactors support for /data?funder=orgid&funder=orgid to make it re-usable in two places.

One improvement for future would be to add something on insights itself to let people know they're using an old style link. The 360-ds has an alert tag that could be used https://cdn.threesixtygiving.org/components/detail/alert-tag--default (not particularly pretty but that might be part of the point!).

@mariongalley @KDuerden

github-actions[bot] commented 9 months ago

Pull Request Test Coverage Report for Build 7667703669


Changes Missing Coverage Covered Lines Changed/Added Lines %
insights/init.py 1 4 25.0%
insights/redirect_helpers.py 2 6 33.33%
<!-- Total: 3 10 30.0% -->
Files with Coverage Reduction New Missed Lines %
insights/init.py 1 73.68%
<!-- Total: 1 -->
Totals Coverage Status
Change from base Build 7661332689: -5.8%
Covered Lines: 30
Relevant Lines: 46

💛 - Coveralls
michaelwood commented 9 months ago

Deployed