:-( What's New asset type deprecation šŸ˜¢


(Douglas (@finnatic at @waikato)) #1

https://matrix.squiz.net/manuals/asset-listing/chapters/whats-new mentions:

Warning:
This asset type has been deprecated as of version 5.4.5.0. For more information, please view the Deprecations page.

and Iā€™ve read the original squizmap (11746, closed) which suggested that a search page could be made to workā€¦ :frowning:

In my experience, Iā€™ve found Whatā€™s New assets to be convenient and easy to setup. It is possible to do the same with search pages, but past experiences have left me jaded and thinking of them as a bit clunky with the extra settings required.

Iā€™d be hopeful that the intended replacement (rolling whatā€™s new functionality into asset listings) would be as easy as whatā€™s new assets are now.


#2

:cry: Oh no, Iā€™m going to commiserate with you on learning this.
I always reach for a Whatā€™s New asset to serve my recent updates, latest news feed etc. needs. Hopefully any replacement wonā€™t be trigger dependent.


(Douglas (@finnatic at @waikato)) #3

There seems to be a number of decisions being made at Squiz to simplify the asset choices we have. It would be appreciated to hear that explained at some point.


(Bart Banda) #4

A list of all deprecations can be found here: https://matrix.squiz.net/manuals/deprecations

Each one links to the Roadmap tracking idea which has more information on why itā€™s getting deprecated.

But yes, the overall goal is to reduce the complexity of the system and have less asset types that basically do the 90% of the same thing as their other counterparts and have more dynamic single asset types instead.


(Evan Wills) #5

Is there any documentation for creating a ā€œWhatā€™s newā€ type listings using a standard ā€œAsset listingā€ page?

Iā€™ve looked in the ā€œAsset listingā€ documentation and poked at creating one but was unable work out how to make it work.


(Douglas (@finnatic at @waikato)) #6

Iā€™ve assumed that the Whatā€™s New listing uses the date information to help restrict the list of assets returned from whatever query asset listings make to the underlying databases.

Building a replacement with the existing Asset Listing mechanism would seem to be less effective, but presumably you should be able to sort by the date fields available, and then perform some sort of similar restriction.

Hopefully the final replacement will have the same performance as the previous asset type, but with the functionality rolled into the asset listing asset type.


(John gill) #7

Itā€™s not possible to emulate Whatā€™s New with an Asset Listing, the date restriction code hasnā€™t been added yet (as of 5.5.4.2).

You can mostly emulate it with a Search Page (no Link Value Filtering), although it seems slightly slower than the equivalent Whatā€™s New Page (~15% in my test but that will probably depend heavily on the content).

Of course, if youā€™re a rebel you could forge ahead with Whatā€™s New assets and just create them via one of the APIs

js_api.createAsset({
  type_code:"page_whats_new",
  parent_id:1,
  asset_name:"lazarus",
  link_type: 1
})

Assuming that Asset Listings are actually going to gain the missing functionality before v6 lands, I donā€™t see what harm would come from continuing to create them. (Although it wouldnā€™t surprise me if they end up replacing Whatā€™s New assets with Search Pages instead of Asset Listings).


(Evan Wills) #8

@Douglass

Iā€™ve got no idea why I didnā€™t think of sorting by date then filtering. Thanks.