Blueprint examples in Blueprints Catalog widget not up to date

Description

Blueprints Catalog widget in Cloudify Catalog page uses http://repository.cloudifysource.org/cloudify/blueprints/4.4/examples.json file as a base to present list of blueprint examples to the user.

All the examples in that file are taken from https://github.com/cloudify-examples/ we can see:

So it is written there that we should use use https://github.com/cloudify-community/blueprint-examples .

Steps to Reproduce

Environment:
OS (CLI), HA cluster, cloud provider
------------------------------------

Steps to reproduce:
------------------
1.
2.
3.

Expected result:
---------------

Actual result:
-------------

Why Propose Close?

None

Activity

Show:
Trammell -
December 11, 2019, 11:22 AM

I also updated here, where we can manage it. Although I think recommends that we just read the available examples from our release pages.

Barak Azulay
December 11, 2019, 12:40 PM

thanks for the fast response , please open a Jira to commit it in one of the repos and copy it to s3 as a part of the build.

Can you take it from here ? (should be an easy fix)

Jakub Niezgoda
December 11, 2019, 12:43 PM


Can you add some HTTP headers to GET response on http://repository.cloudifysource.org/cloudify/blueprints/5.0.5/examples.json ? I would need probably the same as for http://repository.cloudifysource.org/cloudify/wagons/plugins.json - all 3 starting from Access-Control-* as right now that file is downloaded by client-side.

  1. According to what Trammell mentioned - yes, I think the solution for the future (post-5.0.5) should be to use GitHub API and fetch all the data from releases pages. Implementation should not be very hard, but we need to decide how to expose it to the user (in widget configuration). Second thing would be to develop a way of updating it before release (because the endpoint/link should provide list of blueprints examples working with specific release.

  2. I think that it is worth to mention here that we are using similar solution (JSON file) in Plugins Catalog: http://repository.cloudifysource.org/cloudify/wagons/plugins.json
    Don’t we need to provide list of plugins per version as well? Right now we are providing the same list of plugins for different Cloudify versions.

 

Trammell -
December 11, 2019, 12:58 PM

It is a file hosted in s3. I’m not sure how I could chnage the HTTP headers that they are sending?

Jakub Niezgoda
December 11, 2019, 1:04 PM

Assignee

Jakub Niezgoda

Reporter

Jakub Niezgoda

Labels

None

Severity

Medium

Target Version

5.0.5

Premium Only

no

Found In Version

5.0

QA Owner

None

Bug Type

unknown

Customer Encountered

No

Customer Name

None

Release Notes

yes

Priority

None

Epic Link

Priority

Blocker
Configure