-
Notifications
You must be signed in to change notification settings - Fork 560
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Render Showcase formatted feeds for pressed fronts #24038
Conversation
eebab9b
to
f1465f4
Compare
8273256
to
c57d6ae
Compare
…case modules while still using Rome as the framework.
This is almost certainly not what we what but shows we can get through the frontend ingress.
…e which contains Collections and Cards from the Fronts editor. Pivot to /showcase end point in facia. Begin sourcing Showcase fields from the PressedContent model rather than Trails. Provide a rough fixture for creating test PressedContent. Unroll changes to TrailsRSS which are no longer of interest to us.
… best place to pickup panel images from a Card.
…e to populate Showcase update fields. Last updated is a mandatory field in Showcase so we should be attempting to populate with good data.
…which cannot be made valid from the give content item.
We will need to adjust Rome's default behaviour to match this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are quite a few TODOs, are you planning to resolve them in a separate PR?
@@ -0,0 +1,2 @@ | |||
rss_1.0.item.ModuleGenerator.classes=common.GModuleGenerator,common.RssAtomModuleGenerator |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this need to be added to dev-build
and preview
too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oddly it does not appear to be needed; the classpath is probably leaking across into dev build and preview.
Preview might need to be revisited in a real environment but we well probably be doing something visual rather than rendering RSS in real preview. So not a blocker/
rss.getNamespace("media") should be("http://search.yahoo.com/mrss/") | ||
} | ||
|
||
"TrailsToShowcase" can "render feed with Single Story and Rundown panels" in { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test seems to be covering a lot of things, would it make sense to break it up?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll ok with this; this test is acting an 'yeah but does it actually render' integration test and I'm fining it useful in this form.
@@ -35,6 +35,7 @@ GET /most-relevant-container/*path.json | |||
GET /*path/show-more/*id.json controllers.FaciaController.renderShowMore(path, id) | |||
GET /rss controllers.FaciaController.renderRootFrontRss() | |||
GET /*path/rss controllers.FaciaController.renderFrontRss(path) | |||
GET /*path/showcase controllers.FaciaController.renderFrontShowcase(path) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might also need to be added to dev-build routes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in preview and dev-build.
…inclusion in the author tag rather than dc:creator Showcase's usage of the author tag is slightly off spec here.
We will almost certainly end up trying to override this with some visual.
…operties.maybeContent.metadata.webUrl Which is a full url rather than a URI.
…ain objects. Rather than Rome feed clases; sets up for preview of panels.
Seen on PROD (merged by @tonytw1 18 minutes and 31 seconds ago)
|
Render Showcase formatted feeds on a
/showcase
suffix for pressed fronts.Showcase is an extension of RSS.
We use a Rome RSS module to render the new
g
andatom
fields.Adds a new lastModified optional field to PressedCards.
Fronts tool collections are used to populate Single Story and Rundown Panels.
Each Showcase feed will have it's own front in the showcase priority in the Fronts tool.
Only fronts which have the magic
Standalone
andRundown
containers will render is Showcase feeds.What does this change?
Does this change need to be reproduced in dotcom-rendering ?
Screenshots
What is the value of this and can you measure success?
Can pass a live guardian showcase feed url to Showcase feed validator and have it pass.
Checklist
Does this affect other platforms?
Does this affect GLabs Paid Content Pages? Should it have support for Paid Content?
Does this change break ad-free?
Does this change update the version of CAPI we're using?
Accessibility test checklist
Tested