Skip to content

Commit 7f46e43

Browse files
committed
Overhaul publication feeds, closes #195 #193 #183 #218 #156 #177 #194 #182
Adds enhanced publication feeds, offering both GeoRSS and Atom formats with regional filtering. This change introduces a new, cached feed implementation with validation fixes, geometry filtering, and author attribution. It also provides HTML pages for easy feed subscription. - Implements global and regional publication feeds in GeoRSS and Atom formats. - Adds caching to improve feed performance and reduce server load, with a configurable cache duration. - Provides HTML pages for users to easily discover and subscribe to feeds. - Introduces GeoRSS namespace declarations and validation fixes for standards compliance. - Includes author and source information in feed entries. The old feed URLs are redirected to the new API v1 endpoints for backwards compatibility.
1 parent 2d376ef commit 7f46e43

File tree

16 files changed

+1178
-121
lines changed

16 files changed

+1178
-121
lines changed

.claude/settings.local.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@
1313
"Bash(python manage.py makemigrations:*)",
1414
"Bash(source:*)",
1515
"Bash(python manage.py shell:*)",
16-
"Bash(python manage.py:*)"
16+
"Bash(python manage.py:*)",
17+
"Bash(python -m py_compile:*)"
1718
],
1819
"deny": [],
1920
"ask": []
2021
}
21-
}
22+
}

optimap/settings.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@
4949

5050
DATA_DUMP_RETENTION = int(os.getenv("OPTIMAP_DATA_DUMP_RETENTION", 3))
5151

52+
# Feed configuration
53+
FEED_CACHE_HOURS = int(os.getenv("OPTIMAP_FEED_CACHE_HOURS", 24))
54+
5255
AUTHENTICATION_BACKENDS = [
5356
'django.contrib.auth.backends.ModelBackend',
5457
"sesame.backends.ModelBackend",

0 commit comments

Comments
 (0)