Skip to content

Comments

About page, configurable cli download links#6783

Merged
openshift-bot merged 2 commits intoopenshift:masterfrom
fabianofranz:484_download_cli_from_console
Feb 3, 2016
Merged

About page, configurable cli download links#6783
openshift-bot merged 2 commits intoopenshift:masterfrom
fabianofranz:484_download_cli_from_console

Conversation

@fabianofranz
Copy link
Member

Adds an "About" page to the web console with server version information and configurable download links for the CLI tools (if provided).

I wanted to make the download URL's flexible enough to allow you to either specify multiple links pointing directly to the client packages (for each platform, for example), or you could point to an external page that links the actual packages (the GitHub releases page, for example). So the configuration takes both the URL and title. Examples of valid configurations would be:

cli: {
  downloadURL: {
    "Linux (32 bits)": "https://<cdn>/cli-v1.1.1-e1d9873-linux-32bit.tar.gz",
    "Linux (64 bits)": "https://<cdn>/cli-v1.1.1-e1d9873-linux-64bit.tar.gz",
    "Windows": "https://<cdn>/cli-v1.1.1-e1d9873-windows.zip",
    "Mac OS X": "https://<cdn>/cli-v1.1.1-e1d9873-mac.zip"
  }
}

or

cli: {
  downloadURL: {
    "Latest Release": "https://<cdn>/openshift-origin-client-tools/releases"
  }
}

About page

openshift web console

Fixes #2281
Fixes #3493
Fixes #4344
Fixes #4885

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, this seems super specific. Won't there be other things that need customizing on that page as well, like product name and other links? Plumbing all of that through config seems like the hard way to do that

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We may want to reduce the amount of info in that page, but an entry in the config file for CLI download links is a specific requirement from online. Links for docs already use the filters mechanism used everywhere on the web console.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@liggitt we've talked with @brenton and @danmcp about specifically letting administrators put in their own download links so they can host oc themselves, so this is more than just per product config, its really administrative config

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we also don't expose doc links in config... I would expect doc links and cli download links to use the same config mechanism... I just don't want such a bespoke setting for something so general

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is the only thing left in this PR, waiting for @jwforres confirmation about where we want this config.

@fabianofranz
Copy link
Member Author

@jwforres @spadgett

@jwforres
Copy link
Member

try the openshift icon in red

@jwforres
Copy link
Member

... hit enter too soon...

check with @luciddreamz for what the right red is for the openshift icon

@jwforres
Copy link
Member

the download links blend together a bit, maybe stacking them vertically, or having a gray pipe between them

@spadgett
Copy link
Member

@sspeiche FYI

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder, if this is the about page for Origin, then we may want to have the link go to openshift.org
Likewise, at some point we may want to specific links to the offering page for Enterprise and Dedicated?.

Though I think for an initial pass, it would be fine just defaulting to openshift.com as it has redirects already

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, at least for now the idea was to point to openshift.com which links every other product and project.

@sspeiche
Copy link
Contributor

It all looks great. Only thing I'm not sure of is how we are directing users to get help, provide feedback or report problems. Would this come in the about page or a separate menu item or ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this have to be served in a separate file? don't really want lots of individual requests for config data

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agree with @liggitt why wouldn't this be in config.js ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All config.js entries are something you can change to customize some behavior, while version info is always generated by the master, not part of the set of configs an installation could change. Didn't seem to fit well. But I could buy having it in config to save a request, I think.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed, version is now being server in config.js, in a separate object as it was before to keep what's really configurable as a separate structure.

@fabianofranz fabianofranz force-pushed the 484_download_cli_from_console branch from 2d31599 to ee40083 Compare January 22, 2016 18:12
@fabianofranz
Copy link
Member Author

the download links blend together a bit, maybe stacking them vertically, or having a gray pipe between them

@jwforres yeah, my first version was vertical and for some reason I changed, moved back which looks better

@fabianofranz
Copy link
Member Author

check with @luciddreamz for what the right red is for the openshift icon

@luciddreamz using #c00 until we confirm what's the right color

@fabianofranz
Copy link
Member Author

It all looks great. Only thing I'm not sure of is how we are directing users to get help, provide feedback or report problems. Would this come in the about page or a separate menu item or ?

@sspeiche I think the design review in the works by @sg00dwin includes that, it has a "?" drop-down that include links to docs, this About page, and probably other stuff. Anyone else could confirm?

@luciddreamz
Copy link
Contributor

@fabianofranz the OpenShift logo is #CD202C:
screen shot 2016-01-22 at 1 21 03 pm

@jwforres
Copy link
Member

There would be a place to add other links there, we need to think about
"Report a problem" we had a lot of issues trying to do that in v2 because
different products and even different user plans had different ways to
report problems.

On Friday, January 22, 2016, Fabiano Franz notifications@github.com wrote:

It all looks great. Only thing I'm not sure of is how we are directing
users to get help, provide feedback or report problems. Would this come in
the about page or a separate menu item or ?

@sspeiche https://github.com/sspeiche I think the design review in
the works by @sg00dwin https://github.com/sg00dwin includes that, it
has a "?" drop-down that include links to docs, this About page, and
probably other stuff. Anyone else could confirm?


Reply to this email directly or view it on GitHub
#6783 (comment).

@fabianofranz fabianofranz force-pushed the 484_download_cli_from_console branch from ee40083 to 82cc646 Compare January 22, 2016 18:35
@fabianofranz
Copy link
Member Author

@luciddreamz thanks! updated

@fabianofranz fabianofranz force-pushed the 484_download_cli_from_console branch 2 times, most recently from 9a5d590 to 3d40aa0 Compare January 22, 2016 20:52
@fabianofranz fabianofranz force-pushed the 484_download_cli_from_console branch 3 times, most recently from 45353bd to b6f4372 Compare January 26, 2016 16:10
@jwforres
Copy link
Member

Ok result of a number of discussions is that we are going to do this as an extension JS. So we need a JS API for providing custom download links, think about how you would do the same thing for help links (and if possible go ahead and implement it cause we need it soon).

OOTB in origin I'm guessing we wouldn't provide a CLI download link since the only place they exist today is in the release in github which includes ALL the binaries.

So if we dont have any CLI download links available, then maybe tweak the text in the CLI section?

@fabianofranz
Copy link
Member Author

@jwforres ok, thanks, I'll adjust this to use JS extensions. No CLI download links available were already a supported scenario, the About page adjusts to it.
@spadgett do we already use extension JS somewhere in the code? Could you point me to it?

@spadgett
Copy link
Member

Ok result of a number of discussions is that we are going to do this as an extension JS.

It seems odd to ask admins to write JS code to set one URL :-/

@spadgett
Copy link
Member

do we already use extension JS somewhere in the code? Could you point me to it?

Not yet, but here is the help topic:

https://docs.openshift.org/latest/install_config/web_console_customization.html

Let me know if you have trouble.

@fabianofranz
Copy link
Member Author

@spadgett thanks!

@fabianofranz fabianofranz force-pushed the 484_download_cli_from_console branch 2 times, most recently from 8bc7d71 to eb58a81 Compare January 27, 2016 18:58
@jwforres jwforres mentioned this pull request Jan 29, 2016
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't pass the whole version struct to the template, just put the version string in the struct given to the template. that removes the need to make this package depend on the version packages, and gives us compiler checks on the use of the GitVersion field

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, fixed.

@fabianofranz fabianofranz force-pushed the 484_download_cli_from_console branch 5 times, most recently from 529490f to b596e68 Compare February 1, 2016 17:42
@fabianofranz
Copy link
Member Author

Waiting to rebase when the console ui restructure lands.

@fabianofranz fabianofranz force-pushed the 484_download_cli_from_console branch from b596e68 to 5602e1d Compare February 2, 2016 14:06
@fabianofranz
Copy link
Member Author

Rebased, [merge].

@openshift-bot
Copy link
Contributor

[Test]ing while waiting on the merge queue

@jwforres jwforres added the lgtm Indicates that a PR is ready to be merged. label Feb 2, 2016
@spadgett
Copy link
Member

spadgett commented Feb 2, 2016

@fabianofranz looks like you need to clean / install assets

@fabianofranz fabianofranz force-pushed the 484_download_cli_from_console branch 3 times, most recently from c08864c to 9d756e1 Compare February 3, 2016 02:43
@jwforres
Copy link
Member

jwforres commented Feb 3, 2016

@fabianofranz java/bindata.go is wrong looks like it needs to be updated, it just got updated yesterday, in general you shouldn't ever be checking in java/bindata.go

@fabianofranz
Copy link
Member Author

@jwforres meh, I removed and didn't notice it was there again. :/

@fabianofranz fabianofranz force-pushed the 484_download_cli_from_console branch from 9d756e1 to 2501295 Compare February 3, 2016 14:37
@openshift-bot
Copy link
Contributor

Evaluated for origin test up to 2501295

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test FAILURE (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/770/)

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_requests_origin/4841/) (Image: devenv-rhel7_3324)

@jwforres
Copy link
Member

jwforres commented Feb 3, 2016

[merge]

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to 2501295

openshift-bot pushed a commit that referenced this pull request Feb 3, 2016
@openshift-bot openshift-bot merged commit 24d652e into openshift:master Feb 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/web lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants