alan-turing-institute / AutSPACEs

Code respository for AutSPACEs: the Autistica/Turing citizen science platform
MIT License
34 stars 18 forks source link

adds rss/atom feeds for public experiences #654

Closed gedankenstuecke closed 4 months ago

gedankenstuecke commented 4 months ago

Closes #610

This PR adds both an Atom & RSS feed on the public experiences page, properly linked behind the scenes in the head of the website as appropriate to facilitate automatic discovery of it.

It also includes a link to the feed on that page in order to highlight this flag beyond automated discovery. Furthermore, the feed links automatically mirror the current view including the trigger inclusion choices, so that people can subscribe to a feed that includes only those topics they are comfortable reading about.

github-actions[bot] commented 4 months ago

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  server/apps/main
  feeds.py
  urls.py
  views.py
  server/apps/main/tests
  test_views.py
Project Total  

This report was generated by python-coverage-comment-action

gedankenstuecke commented 4 months ago

Okay, I just added the tests as well to keep our coverage up, @helendduncan I think this would also be ready for review now! 🚀

gedankenstuecke commented 4 months ago

I think that's a good idea, especially as the website itself should in the metadata announce the presence of an RSS feed, so that it's accessible by just linking to the view experiences page!