[DRAFT] Sitemaps for reports and FECForms - working prototypes #5958
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Reports (about the FEC):
DocumentPage
descendants ofDocumentFeedPage
and use the file_url as the sitemap locentry
lastmod
entry is the last time that DocumentPage was updatedReports about the FEC
private to remove then from Wagtail sitemap in favor of indexing the PDFs themselves with the report sitemap.FECForms:
wagtaildocuments.document
model where the file name starts withfecfrm
lastmod
is when the doc was created in Wagtail. Not sure if there is a way to get the last time a document was changed.FYI- This branch has a dev deploy task in tasks.py.
FYI- The only file you need for the sitemaps is
urls.py
, Ignore changes to the other four files:models.py
,document_page.html
,document.html
,filters.py
, those changes were WIP for other related issues.Related issue: #5918
Required reviewers
(Include who is required to review prior to merge. For example: One designer and two front end developer reviews are required prior to merge)
Impacted areas of the application
General components of the application that this PR will affect:
Screenshots
(Include a screenshot of the new/updated features in context (“in the wild”). If it is an interface change, include both before and after screenshots)
Related PRs
Related PRs against other branches:
How to test
(Include any information that may be helpful to the reviewer(s). This might include links to sample pages to test or any local environmental setup that is unusual such as environment variable (never credentials), API version to point to, etc)
System architecture updates (if applicable)
(If this pull request changes our current system diagram, include a description of those changes here and create a new ticket to update the system diagram)