Ideas for Arc XP

Allow for content-api-collections to return last_updated_date so blocks fed through a collection can show the last updated time of an article

We noticed that the content-api-collections content source, hence the GET /collections endpoint, does not return last_updated_date in the content_elements objects. This is causing us some issues because we need this value in our top table list component, independently of the content source used. It comes with the content-api, story-feed-query, story-feed-sections… so we were surprised it did not come in the collections content source. Is there a specific reason for it to work that way? Could it be added in the response, so our blocks can work the same way, independently of the content source we use?

We are expecting to receive the same information in the collections content source as in the story ones, because they are all part of the ANS schema. They can be used in the same blocks, when configuring content through custom fields. Since there is only supposed to be one schema (ANS), we do not validate if the data is coming or not in the response. It would be additional work, and already a loss of performance at that stage.

Additionally, fetching the individual information of each story that comes in the response of the collections content sources would add even more to the performance loss and it would cause many more network requests, which we want to avoid.

In my opinion, just adding this field in the response of the /collections endpoint would be the best scenario since this endpoint enters in the ANS schema and it is expected to return the same information type as the other endpoints of this schema.

Thanks!

  • Marc Gendron
  • Feb 1 2024
  • Future consideration
  • Attach files
  • Cassidy Rase commented
    16 Feb 16:23

    Hi, Marc! Thank you for raising this. We're moving this to future consideration while we explore making an update.