-
Bug
-
Resolution: Done
-
Major
-
None
-
None
-
5
Current implementation of Download Manager "Available Products" REST endpoint allows to get info for only one product (eg. https://developers.redhat.com/download-manager/rest/available/eap), or for all products in one request (https://developers.redhat.com/download-manager/rest/available). Endpoint returns product name, featuredArtifact (which contain info for "download latest") and info about all versions for each requested product (or all products in one request).
The endpoint is used on two main types of RHD download pages:
- main "Downloads" page with all products - http://developers.redhat.com/downloads/
- product specific Download page, eg. http://developers.redhat.com/products/eap/download/
As it is expected that number of products and number of product versions will increase, we should improve it to be able return more optimized data to decrease size of data transferred over internet and decrease page show times (mainly on mobile devices).
Two desired improvements:
- allow to define list of products to get data for in one request, eg url in form of https://developers.redhat.com/download-manager/rest/available/eap,datagrid,fuse
- allow to define number of versions returned in data - this allows to load only "latest" downoads for general Download page (eg https://developers.redhat.com/download-manager/rest/available?nv=0), or only necessary number of versions to be shown on product download page (eg https://developers.redhat.com/download-manager/rest/available/eap?nv=3)
- blocks
-
DEVELOPER-2601 Optimize download data loading for RHD Download pages
- Done
- relates to
-
CGW-306 Loading of Product and ProductVersion objects overload DB
- Done