Whether deployment identifier is used as current_release value should be configurable

Created on 30 November 2022, about 2 years ago
Updated 27 July 2023, over 1 year ago

Problem/Motivation

Since version 4.0.11 the toolbar item includes a random string of characters in parentheses to the left of the environment name. This appears to be where the release state information would appear. We don't set this state in our site and the random string of characters never appeared before version 4.0.11.

Steps to reproduce

Update to 4.0.11 and don't set or unset a environment_indicator.current_release version state.

Proposed resolution

Not sure how to solve this in the code.

When I set a release state with the recommended drush command on the environment indicator settings screen, the random characters go away and the release version I set appears. (drush sset environment_indicator.current_release v1.2.44)

When I change the following code from src/ToolbarHandler.php to what is shown below (to only output the environment name), the random string no longer appears, so I believe this is the code causing the issue.

  public function getTitle(): string {
    $environment = $this->activeEnvironment->get('name');
    //$release = $this->getCurrentRelease();
    return $environment;
  }
πŸ› Bug report
Status

Needs work

Version

4.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States timwood Rockville, Maryland

Live updates comments and jobs are added and updated live.
  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024