fix(sitemap): use repository updates for repositories lastmod - #5587
Utkarsh3725 wants to merge 1 commit into
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (2)
Summary by CodeRabbit
WalkthroughThe static sitemap now derives ChangesRepository sitemap timestamp
Estimated code review effort: 1 (Trivial) | ~5 minutes Change: Bug fix · Severity of issue fixed: Low ✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|



What
Fixes the
/repositoriesstatic sitemap entry so itslastmodis based on the latestRepository.updated_atvalue.Why
Closes #5259.
Previously
/repositorieswas missing from the static sitemap model mapping, so it fell back todatetime.now(UTC)on every sitemap generation.Testing
/repositories.python3 -m py_compile backend/src/apps/sitemap/views/static.py backend/tests/unit/apps/sitemap/views/static_test.pygit diff --checkCould not run the focused pytest locally because Poetry is not installed in the environment.