You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Connect GraphQL Endpoint to all magazine related blocks
Create a function with the query needed to retrieve all the articles's information.
Configure this function in order to allow optional parameters that query the DB and retrieve only the necessary list of articles.
Make all blocks that need articles work with this function.
Replace fetchMagazineArticles() function in magazine.service.js file
Delete unused logic from the blocks. FE: sorting or trimming of articles
Blocks affected:
related-articles
v2-article-cards
v2-stories-carousel
ALSO: magazine-articles block has this query already applied but should be moved to the magazine.service.js file so that all the logic behind this call is unified.
Acceptance Criteria
All blocks that use the magazine article list get them from the new DB endpoint and not from sharepoint's magazine-articles.xslx file
The blocks that don't need the whole list of articles retrieve only the ones needed by passing different params (fe: limit, truck, etc)
The function is available for all future blocks in the file magazine.service.js
All affected blocks work as before but pulling from the new endpoint
The text was updated successfully, but these errors were encountered:
Context/Description
Connect GraphQL Endpoint to all magazine related blocks
Create a function with the query needed to retrieve all the articles's information.
Configure this function in order to allow optional parameters that query the DB and retrieve only the necessary list of articles.
Make all blocks that need articles work with this function.
Replace
fetchMagazineArticles()
function inmagazine.service.js
fileDelete unused logic from the blocks. FE: sorting or trimming of articles
Blocks affected:
related-articles
v2-article-cards
v2-stories-carousel
ALSO:
magazine-articles
block has this query already applied but should be moved to the magazine.service.js file so that all the logic behind this call is unified.Acceptance Criteria
magazine-articles.xslx
filemagazine.service.js
The text was updated successfully, but these errors were encountered: