-
Notifications
You must be signed in to change notification settings - Fork 37
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
[SDPAP-7477]remove call to function getExposedItemsToLoadField #1305
[SDPAP-7477]remove call to function getExposedItemsToLoadField #1305
Conversation
@@ -20,8 +20,7 @@ export default { | |||
mixins: [breakpoint], | |||
props: { | |||
src: { | |||
type: String, | |||
required: true |
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.
@yeniatencio this doesn't look relevant to the pr, can you explain why this is here?
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.
@dylankelly , When selecting layout grid view and card display style Thumbnail in BE for the content collection component and if any of the results has no image then it will throw this error.
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.
it seems like the src should be required for the image, you've fixed the issue by removing the required prop but the ResponsiveImg component shouldn't be rendered at all. @lambry can I get you to look at this and provide some feedback?
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.
Hey @dylankelly @yeniatencio,
In this instance looks like the card component is being passed an empty object and we aren't checking this is valid, we just assume an object means it's a real image. We might need to update the below check to make sure the object actually has a source, or potentially update the mapping. This sounds like a separate ticket though.
Cheers
Hi @dylankelly, @yeniatencio - I just noticed this PR in passing. The change here will break places where an exposed items per page is required, like on https://www.health.vic.gov.au/search?q=eye.
from here to set the value. Instead, try using
This should be achievable in the back-end by updating the JSON configuration for the content collection, without needing this PR. |
@yeniatencio In talking this through with @alan-cole , I don't think we should proceed with this PR. It looks like there has been some confusion here. The required change to add a defined number of results is needed for Ripple 2 only. By removing the ability to change the number of results we would break existing functionality in Ripple 1 (See link Alan provided). @lambry we might need to pickup this ticket for Ripple 2. Sorry for the confusion. |
Hi @dylankelly , I was going to close this pr too and Yes agree with you. I have already deleted the variable from this pr that I was using with my BE pr. Thanks guys. |
Motivation and Context
This change is required to remove the items per page dropdown box where it gives the option to select the number of pages shown. This option is being added in BE content collection by selecting numbers of results shown. 3, 6, 9.
JIRA issue: https://digital-vic.atlassian.net/browse/SDPAP-7477
BE link: https://nginx-php.pr-272.content-reference-sdp-vic-gov-au.sdp4.sdp.vic.gov.au/
FE link: https://app.pr-1305.ripple.sdp4.sdp.vic.gov.au/
Changed
Screenshots
How Has This Been Tested?
Types of changes
Checklist