-
Notifications
You must be signed in to change notification settings - Fork 554
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
Use lite pressed fronts in Facia #18365
Conversation
PRbuilds results: Screenshots 💚 Exceptions 💚 A11y validation Apache Benchmark Load Testing 💚 Microdata Validation --automated message |
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.
Looks good to me. I just have one question.
Let's test this thoroughly in CODE.
@@ -218,13 +218,13 @@ trait FaciaController extends BaseController with Logging with ImplicitControlle | |||
|
|||
private def getPressedCollection(collectionId: String): Future[Option[PressedCollection]] = |
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.
Are we sure this function is not used by endpoints that requires the full pressed file? Same question below for getSomeCollections
?
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'm not certain. We need to list the endpoints require the full PressedPage.
For this PR, I've assumed that only /*path/show-more/*id.json
and /*path/deduped.json
require the full version.
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.
let's try to figure it out. Let me know if you need any help.
…r_show_more_and_lite
…r_show_more_and_lite
…at it is pressed in lite json
7faf937
to
841b605
Compare
6e137e7
to
5ab77b1
Compare
This reverts commit ef9f7d8.
7d334bb
to
ea53427
Compare
.toOption(storyCountTotal) | ||
.getOrElse(Math.min(Configuration.facia.collectionCap, storyCountTotal)) | ||
val storyCountVisible = Container.storiesCount(CollectionConfig.make(collection.collectionConfig), curated ++ backfill).getOrElse(storyCountMax) | ||
val hasMore = storyCountVisible < storyCountMax |
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.
storyCountVisible should probably be min(storyCountVisible, storyCountMax) to avoid showing more than max
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.
storyCountVisible
is either the number of stories necessary to fill the expected layout or storyCountMax
.
In theory no container layout requires more than the max cap
Seen on PROD (created by @QuarpT and merged by @TBonnin 14 minutes and 56 seconds ago)
|
What does this change?
Use the lite fronts pressed by facia-press in Facia.
Can merge this to master after #18364 is merged
What is the value of this and can you measure success?
Facia can process smaller Json files for most requests, more performant - we be able to handle a higher request rate.
Tested in CODE?
I will