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

Reference: https://www.drupal.org/core/beta-changes
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
CommentFileSizeAuthor
#56 Screen Shot 2015-10-04 at 10.28.54 PM.png35.87 KBwebchick
#46 478994-46.patch2.77 KBvalthebald
#43 Screenshot 2015-09-10 11.56.58.jpg347.96 KBlewisnyman
#43 please_state_the-478994-43.patch30.83 KBlewisnyman
#43 interdiff.txt552 byteslewisnyman
#38 interdiff-478994-37-38.txt1.19 KBvalthebald
#38 interdiff-478994-31-38.txt1.25 KBvalthebald
#38 478994-38.patch2.86 KBvalthebald
#37 display-installed-core-version-478994-37.patch3.01 KBsushantpaste
#34 DrupalVersion.png52.02 KBsushantpaste
#33 display-installed-core-version-478994-33.patch3.07 KBsushantpaste
#32 WhichVersionDrupal.png70.13 KBmgifford
#31 interdiff-478994-29-31.txt771 bytesvalthebald
#31 478994-31.patch3.29 KBvalthebald
#29 interdiff-478994-27-29.txt547 bytesvalthebald
#29 478994-29.patch3.36 KBvalthebald
#28 Screenshot from 2015-02-08 09:34:30.png77.45 KBmgifford
#27 please_state_the-478994-27.patch2.69 KBalansaviolobo
#24 478994-24.png27.76 KBvalthebald
#24 478994-24.patch2.94 KBvalthebald
#21 478994-21.png31.38 KBvalthebald
#21 478994-21.patch1.02 KBvalthebald
#15 drupal_478994_15.patch1.07 KBxano
#8 478994-8.patch1.03 KBvalthebald
#7 1003x601-Selection_14_01_2014_001.png250.37 KBinternetdevels
#7 install_system-display_installed_core_version-478994-7.patch1.02 KBinternetdevels
#6 Screen Shot 2014-01-09 at 3.37.55 PM.png166.36 KBmgifford
#5 install_system-display_installed_core_version-478994-5.patch537 byteslucastockmann
#2 display-installed-core-version-478994.patch525 bytesvalthebald
#2 478994.png19.43 KBvalthebald

Comments

sun.core’s picture

Version: 7.x-dev » 8.x-dev
valthebald’s picture

Status: Active » Needs review
StatusFileSize
new19.43 KB
new525 bytes

I am not sure where installed version should be displayed, but right before installation task list seemed a good initial place. It looks like this:

478994.png

enhdless’s picture

Issue summary: View changes
Status: Needs review » Needs work

Patch no longer applies, needs rerolling.

valthebald’s picture

Issue tags: +Needs reroll
lucastockmann’s picture

Status: Needs work » Needs review
StatusFileSize
new537 bytes

Rerolled the patch.

mgifford’s picture

Status: Needs review » Needs work
StatusFileSize
new166.36 KB

I like this idea, but it needs some formatting help.

screenshot of install page with patch.

internetdevels’s picture

Status: Needs work » Needs review
Issue tags: -Needs reroll
StatusFileSize
new1.02 KB
new250.37 KB

Added version when installing Drupal and theming.

valthebald’s picture

StatusFileSize
new1.03 KB

Patch from #7 did not apply to CSS (wrong selector)
Here's modified patch

Status: Needs review » Needs work

The last submitted patch, 8: 478994-8.patch, failed testing.

valthebald’s picture

Status: Needs work » Reviewed & tested by the community

My bad, outdated HEAD here.
Patch from #7 is just fine (including visual part)

xano’s picture

Does this not cause problems for distributions?

valthebald’s picture

#11: Since distributions can use their own themes during install, I don't see a problem

xano’s picture

Right, 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.

webchick’s picture

Status: Reviewed & tested by the community » Needs work

Yeah, we do not want to actually put the string "Drupal" anywhere, especially un-translated.

xano’s picture

Status: Needs work » Needs review
StatusFileSize
new1.07 KB

Let's see what this does. Does this need to be translated?

Status: Needs review » Needs work

The last submitted patch, 15: drupal_478994_15.patch, failed testing.

Status: Needs review » Needs work

The last submitted patch, 15: drupal_478994_15.patch, failed testing.

xano’s picture

Re-testing, because it works fine through Simplytest. Maybe it's a testbot hiccup.

The last submitted patch, 15: drupal_478994_15.patch, failed testing.

xano’s picture

I cannot reproduce the failures locally when running tests through run-tests.sh.

valthebald’s picture

Status: Needs work » Needs review
StatusFileSize
new1.02 KB
new31.38 KB

Replaced 'Drupal' with drupal_install_profile_distribution_name(). With the last patch, installation looks as following:
Installing 8.x-dev

valthebald’s picture

@webchick, task list is preceded by (untranslated) 'Installation tasks', so I left 'Installing ' untranslated

xano’s picture

Status: Needs review » Needs work

This doesn't work with install profiles either, because it uses the Drupal version and not that of the install profile.

valthebald’s picture

Status: Needs work » Needs review
StatusFileSize
new2.94 KB
new27.76 KB

#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:
Installing 8.x-dev
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.

The last submitted patch, 21: 478994-21.patch, failed testing.

valthebald’s picture

#25 should be ignored, 'cause the last patch is #24, not #21

alansaviolobo’s picture

StatusFileSize
new2.69 KB

reroll.
css got messed up, so i deleted that part.

mgifford’s picture

Issue summary: View changes
Status: Needs review » Needs work
StatusFileSize
new77.45 KB

The CSS was important though. @valthebald's had the priority right I think. This just doesn't look right:

valthebald’s picture

Issue summary: View changes
Status: Needs work » Needs review
StatusFileSize
new3.36 KB
new547 bytes

Added back CSS (for the sake of responsiveness version string is hidden for the screens narrower than 48em)

aspilicious’s picture

Status: Needs review » Needs work
+ * Loads the installation profile, extracting its defined version.
+ * @return string The distribution version defined in the profile's .info.yml file. Defaults to
+ * The distribution version defined in the profile's .info.yml file. Defaults to
+ * \Drupal::VERSION if none is explicitly provided by the installation profile.
+ * @see install_profile_info()
+ */

This needs at least a newline before and after the @return

valthebald’s picture

Status: Needs work » Needs review
StatusFileSize
new3.29 KB
new771 bytes
  1. Added new lines before and after @return block
  2. Shortened @return docblock to fit 80 chars line
  3. Removed duplicate 'defaults to...' part
mgifford’s picture

Issue summary: View changes
StatusFileSize
new70.13 KB

This looks better for sure.

install screen

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.

sushantpaste’s picture

I 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.

sushantpaste’s picture

StatusFileSize
new52.02 KB

Screenshot attached how it looks like after applying patch #33.

valthebald’s picture

@sushantpaste: can you also add an interdiff from the previous patch?

valthebald’s picture

@mgifford: hiding the version on narrow screen is intentional (not enough space)

sushantpaste’s picture

@valthebald Here is the updated patch.

valthebald’s picture

StatusFileSize
new2.86 KB
new1.25 KB
new1.19 KB
--- a/core/includes/install.inc
+++ b/core/includes/install.inc
+ * @return string  Distribution version defined in the profile's .info.yml file.
+ * Defaults to  \Drupal::VERSION if no version is explicitly provided

unnecessary extra spaces on lines 118 and 119

+++ b/core/includes/theme.inc
@@ -1436,7 +1436,9 @@ function template_preprocess_install_page(&$variables) {
+  $distribution_version = SafeMarkup::checkPlain(drupal_install_profile_distribution_version());
   $variables['site_name'] = $distribution_name;
+  $variables['site_version'] = $distribution_version;
 }

use of SafeMarkup:checkPlain() is deprecated (in favor of twig autoescape)

sushantpaste’s picture

Status: Needs review » Reviewed & tested by the community

@valthebald : Thanks I think now its all good to go, changing status to RTBC

alexpott’s picture

Do 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.

valthebald’s picture

@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.

webchick’s picture

Assigned: Unassigned » lewisnyman
Status: Reviewed & tested by the community » Needs review
Issue tags: -Needs product manager review

I 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.

lewisnyman’s picture

Assigned: lewisnyman » Unassigned
Issue summary: View changes
Issue tags: +frontend, +CSS, +Usability
StatusFileSize
new552 bytes
new30.83 KB
new347.96 KB

Thanks. 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: none for 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?

Status: Needs review » Needs work

The last submitted patch, 43: please_state_the-478994-43.patch, failed testing.

The last submitted patch, 43: please_state_the-478994-43.patch, failed testing.

valthebald’s picture

Status: Needs work » Needs review
StatusFileSize
new2.77 KB

Patch at #43 couldn't be applied (it's too big, some files included by mistake maybe?), I applied changes from interdiff to patch #38

mgifford’s picture

Status: Needs review » Reviewed & tested by the community

Looks 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.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 46: 478994-46.patch, failed testing.

Status: Needs work » Needs review

valthebald queued 46: 478994-46.patch for re-testing.

Status: Needs review » Needs work

The last submitted patch, 46: 478994-46.patch, failed testing.

valthebald’s picture

Status: Needs work » Needs review

Fell due to today's problems with the testbot, retesting

valthebald queued 46: 478994-46.patch for re-testing.

valthebald’s picture

Status: Needs review » Reviewed & tested by the community

I dare put it back to RTBC, because the issue changed its status only due to testbot failure

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 46: 478994-46.patch, failed testing.

lewisnyman’s picture

Status: Needs work » Reviewed & tested by the community
webchick’s picture

Category: Feature request » Task
Issue summary: View changes
Status: Reviewed & tested by the community » Fixed
StatusFileSize
new35.87 KB

Lookin' good!

Version number displayed next to Drupal name

Committed and pushed to 8.0.x. Thanks!

  • webchick committed 7b1ad46 on 8.0.x
    Issue #478994 by valthebald, sushantpaste, LewisNyman, InternetDevels,...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.