When you are installing Drupal it doesn't tell you which version you are installing. The installation profile selection screen just says, "Drupal."
This could be made more explicit and also give the version of Drupal you are about to install. For example: Drupal 7.X (in my case it's HEAD). Although you will always be installing the same version of Drupal from the same code base, it would be nice if the installer told you which version you were about to install.
Beta phase evaluation
| Issue category | Task - this is not a bug but some functionality that should be added before release |
|---|---|
| Unfrozen changes | Unfrozen because it only changes markup and CSS |
| Comment | File | Size | Author |
|---|---|---|---|
| #56 | Screen Shot 2015-10-04 at 10.28.54 PM.png | 35.87 KB | webchick |
| #46 | 478994-46.patch | 2.77 KB | valthebald |
| #43 | Screenshot 2015-09-10 11.56.58.jpg | 347.96 KB | lewisnyman |
| #43 | please_state_the-478994-43.patch | 30.83 KB | lewisnyman |
| #43 | interdiff.txt | 552 bytes | lewisnyman |
Comments
Comment #1
sun.core commentedComment #2
valthebaldI am not sure where installed version should be displayed, but right before installation task list seemed a good initial place. It looks like this:
Comment #3
enhdless commentedPatch no longer applies, needs rerolling.
Comment #4
valthebaldComment #5
lucastockmann commentedRerolled the patch.
Comment #6
mgiffordI like this idea, but it needs some formatting help.
Comment #7
internetdevels commentedAdded version when installing Drupal and theming.
Comment #8
valthebaldPatch from #7 did not apply to CSS (wrong selector)
Here's modified patch
Comment #10
valthebaldMy bad, outdated HEAD here.
Patch from #7 is just fine (including visual part)
Comment #11
xanoDoes this not cause problems for distributions?
Comment #12
valthebald#11: Since distributions can use their own themes during install, I don't see a problem
Comment #13
xanoRight, but can't we do this right from the start and instead of hardcoding Drupal, we get the install profile name and its version instead, if that's different from either standard or minimal. We shouldn't force distributions to ship with a custom theme because something as simple as this if we can help it.
Comment #14
webchickYeah, we do not want to actually put the string "Drupal" anywhere, especially un-translated.
Comment #15
xanoLet's see what this does. Does this need to be translated?
Comment #18
xanoRe-testing, because it works fine through Simplytest. Maybe it's a testbot hiccup.
Comment #20
xanoI cannot reproduce the failures locally when running tests through run-tests.sh.
Comment #21
valthebaldReplaced 'Drupal' with drupal_install_profile_distribution_name(). With the last patch, installation looks as following:

Comment #22
valthebald@webchick, task list is preceded by (untranslated) 'Installation tasks', so I left 'Installing ' untranslated
Comment #23
xanoThis doesn't work with install profiles either, because it uses the Drupal version and not that of the install profile.
Comment #24
valthebald#23: Agree. Here's a version that displays profile's versions, falls back to Drupal::VERSION
Also, I've changed display to reduce occupied screen space:

On small screens version is not displayed.
I am not sure what would be better: add another function drupal_install_profile_distribution_version() as in attached patch, (and this function is almost identical to drupal_install_profile_distribution_name()), or add function that will return all profile info, falling back to some reasonable defaults.
Comment #26
valthebald#25 should be ignored, 'cause the last patch is #24, not #21
Comment #27
alansaviolobo commentedreroll.
css got messed up, so i deleted that part.
Comment #28
mgiffordThe CSS was important though. @valthebald's had the priority right I think. This just doesn't look right:
Comment #29
valthebaldAdded back CSS (for the sake of responsiveness version string is hidden for the screens narrower than 48em)
Comment #30
aspilicious commentedThis needs at least a newline before and after the @return
Comment #31
valthebaldComment #32
mgiffordThis looks better for sure.
I tried it in a mobile and noticed that the version wasn't included there. Just wanted to confirm that this was intentional.
With clarification on that we should be good to go I think.
Comment #33
sushantpasteI think this all looks good.
Here is the new reviewed patch (there was error related to checkPlain function in core/includes/theme.inc ) please review if this looks fine.
Comment #34
sushantpasteScreenshot attached how it looks like after applying patch #33.
Comment #35
valthebald@sushantpaste: can you also add an interdiff from the previous patch?
Comment #36
valthebald@mgifford: hiding the version on narrow screen is intentional (not enough space)
Comment #37
sushantpaste@valthebald Here is the updated patch.
Comment #38
valthebaldunnecessary extra spaces on lines 118 and 119
use of SafeMarkup:checkPlain() is deprecated (in favor of twig autoescape)
Comment #39
sushantpaste@valthebald : Thanks I think now its all good to go, changing status to RTBC
Comment #40
alexpottDo we really want to put the semver version in front of everyones faces? I can see how it is useful to say "Drupal 8" and maybe even "Drupal 8.3"... calling in a product manager for review.
Comment #41
valthebald@alexpott: I think the whole idea was to display exact version that is being installed. Install screens between last 3 major versions (6-7-8.0) can be visually distinguished without adding version number at all.
Comment #42
webchickI would agree. I think the primary reason for this is to get support, etc. so the more detailed the answer to "what version are you using?" is, the better.
I'm not sure about the design though, so assigning to Lewis, as the Seven maintainer.
Comment #43
lewisnymanThanks. I tweaked the design by increasing the font size to Seven's minimum (13px), and changed the color to be a little more subtle, so the heirachy of the title is stronger.
I also removed the
display: nonefor mobile devices because there is no supporting evidence for the assumption that mobile users do not need this information. There were also some syntax errors in the CSS. Can we make sure issues that include CSS are tagged so they can be reviewed? Thanks!One more question, do we also want to include this value on the update.php page?
Comment #46
valthebaldPatch at #43 couldn't be applied (it's too big, some files included by mistake maybe?), I applied changes from interdiff to patch #38
Comment #47
mgiffordLooks good. I think if we want this on the Update page we should create a new issue and deal with it there.
I'm glad that the version is now being displayed if installed from a mobile device. Thanks for catching that @LewisNyman.
Comment #51
valthebaldFell due to today's problems with the testbot, retesting
Comment #53
valthebaldI dare put it back to RTBC, because the issue changed its status only due to testbot failure
Comment #55
lewisnymanComment #56
webchickLookin' good!
Committed and pushed to 8.0.x. Thanks!