nuclearspike / kivalens

KivaLens refresh. Using webpack and function/hook components in React
MIT License
1 stars 0 forks source link

Port RSS feeds from kivalensjs #7

Open jfoo1984 opened 2 years ago

jfoo1984 commented 2 years ago

RSS Feeds need to be ported from nuclearspike/kivalensjs into a functional component

jfoo1984 commented 2 years ago

@nuclearspike Where are RSS feeds in kivalensjs?

nuclearspike commented 2 years ago

Currently in ./cluster.js line 819. All it does is take the JSON of the criteria (removing anything user-specific) and passes it as the last param of the url.

EX: http://www.kivalens.org/rss/%7B%22feed%22%3A%7B%22name%22%3A%22Example%22%2C%22link_to%22%3A%22kiva%22%7D%2C%22loan%22%3A%7B%22country_code%22%3A%22KE%2CPH%2CTJ%22%2C%22country_code_all_any_none%22%3A%22none%22%7D%7D

You can get to it on the site when setting criteria, it's one of the tabs.

Currently, it's limited and won't use any of the Portfolio Balancing tools because it requires a download from Kiva before it works. I would like to have the new version use Redis to store the last DL of the summary data for a given user. The initial req would take a bit longer waiting on that response from Kiva but then subsequent pulls for that url would be cached for maybe an hour?

That is a limitation that I've run across of number of users being confused about and I wish it didn't have.