-
Feature Request
-
Resolution: Done
-
Blocker
-
4.1.0.Beta2
-
Sprint 20141112
-
Documentation (Ref Guide, User Guide, etc.)
-
High
The web ui offers a large set of quickstarts/templates:
in a mail from clayton on the 4th of june:
For QuickStarts, brokers may choose to
a) enable community quickstarts
(the URL you saw below, set by COMMUNITY_QUICKSTART_URL being a URL in /etc/openshift/broker.conf)
b) enable their own list of quickstarts
(a different url, /broker/rest/quickstarts, configured from /etc/openshift/quickstarts.json)
c) disable the quickstarts link
(delete /etc/openshift/quickstarts.json)To correctly fetch the quickstarts for a server, retrieve the API document
/broker/rest/api
and look for the LIST_QUICKSTARTS link. If it is present, you may retrieve quickstarts. If it is absent, you should assume there are no quickstarts.
Retrieving the list of quickstarts, unlike other REST API feed calls, is very specific:
- API versioning is not supported
- Only JSON is supported
- The body of the response is slightly different than standard REST API feed results
- If you encounter a parse error or an unexpected data value you are required to handle it gracefully by omitting the entry - the API may change without warning (although hopefully not)
The format of the JSON response (in either a) or b) above) is:
{ data: [ quickstart: { id: "<string id>", href: "<absolute URL to a display URL for the quickstart>", name: "<name>", updated: "<last update date in seconds from the epoch>", summary: "<brief HTML body of the item>", body: "<full HTML body of the item>", cartridges: "<cartridge spec>", website: "<URL of metadata about the source of the quickstart or the technology>", tags: "<comma delimited list of tags>", language: "<display name of the type of quickstart>", initial_git_url: "<absolute URL or Git reference to source>", provider: "openshift|reviewed|partner|community", # default is community }, ] }
You should assume that arbitrary content could be injected into any of these fields and defend yourself against XSS appropriately. You should also assume that the structure could be changed at any time.
Cartridge spec:
The cartridge spec is defined as either:
a) a comma delimited list of cartridge name search conditions
b) a string containing a JSON arrayIf the leading character of the cartridge spec is '[', you must convert the cartridge spec to JSON and submit the value provided to the server on creation as the "cartridges" field.
Otherwise,
1) split the string by "," into "segments"
2) trim whitespace from each segment
3) split each segment by "|" into "matches" - these represent logical ORs
4) strip leading and trailing "*" characters
5) For each segment, return all cartridges that have a case-insensitive substring match on any of the "matches" in that segment for the user to select.See https://github.com/openshift/origin-server/blob/77e1d3a6476ecb9dad5be6dea80abf34ea8f6269/console/app/models/application_type.rb#L62
and https://github.com/openshift/origin-server/blob/77e1d3a6476ecb9dad5be6dea80abf34ea8f6269/console/app/models/application_type.rb#L173
- blocks
-
JBDS-2909 OpenShift Quickstarts
- Closed
-
JBDS-2776 Support quickstarts in OpenShift UI
- Closed
-
OSJC-65 openshift-java-client: allow users to list quickstarts
- Closed
-
JBIDE-17186 Application wizard: filtering is not unfolding trees
- Closed
-
JBIDE-17187 Application wizard: filtering is not matching label decorations
- Closed
- duplicates
-
JBIDE-12141 Application wizard: Provide support for creating OpenShift Instant Applications
- Closed
-
JBIDE-13432 Application wizard: Allow users to choose among known quickstarts
- Closed
-
JBIDE-10695 Application wizard: provide some doc/context for users to know what they do
- Closed
- is blocked by
-
JBIDE-15476 Allow users to provide downloadable cartidges
- Closed
-
OSJC-107 allow users to create applications without specifying (standalone- or embeddable) cartridge types
- Closed
-
OSJC-108 Should be able to add/remove cartridges from application via ICartridge
- Closed
-
OSJC-109 Quickstarts: should be able to get the alternatives for a given cartridge
- Closed
-
OSJC-111 Should have name for downloadable cartridge if there's an anchor in git-url
- Closed
-
JBIDE-14588 Create OpenShift Application from remote repository
- Closed
-
OSJC-112 Allow to provide unspecified cartridges (ICartridge) to ApplicationBuilder
- Closed
- is related to
-
JBIDE-10695 Application wizard: provide some doc/context for users to know what they do
- Closed
- relates to
-
JBDS-2838 OpenShift Usability
- Closed
-
JBIDE-16767 Application wizard, embed wizard: Support "Deploy Now" urls for "code anything"
- Closed
-
JBIDE-16876 Application wizard: page#1 needs fields disabled based on user actions
- Closed
-
JBIDE-15654 Application wizard: merge existing / new application forms into a single one
- Closed