Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Berdir created an issue. See original summary.

Berdir’s picture

Status: Active » Needs review
FileSize
18.74 KB
Berdir’s picture

Berdir’s picture

Was doing this on top of another issue, this should apply.

voleger’s picture

voleger’s picture

voleger’s picture

Issue tags: +@deprecated, +Kill includes
andypost’s picture

Status: Needs review » Reviewed & tested by the community

Looks ready

larowlan’s picture

Status: Reviewed & tested by the community » Needs work
+++ b/core/includes/bootstrap.inc
@@ -750,14 +751,15 @@ function drupal_maintenance_theme() {
+ * @deprecated in drupal:8.8.0 and is removed from drupal:9.0.0.

+++ b/core/lib/Drupal/Core/Config/ConfigInstaller.php
@@ -701,9 +702,17 @@ protected function drupalGetProfile() {
+   * @deprecated in drupal:8.8.0 and is removed from drupal:9.0.0.

+++ b/core/lib/Drupal/Core/Form/FormSubmitter.php
@@ -147,9 +148,17 @@ public function redirectForm(FormStateInterface $form_state) {
+   * @deprecated in drupal:8.8.0 and is removed from drupal:9.0.0.

Hi, we need deprecation tests for at least drupal_installation_attempted, the others are a bit trickier because they're protected.

Other than that, looks good!

voleger’s picture

Status: Needs work » Needs review
FileSize
21.23 KB
790 bytes

Here the legacy test.

kim.pepper’s picture

Looking good! Just a couple of nits:

  1. +++ b/core/includes/bootstrap.inc
    @@ -750,14 +751,15 @@ function drupal_maintenance_theme() {
    + * @deprecated in drupal:8.8.0 and is removed from drupal:9.0.0.
    + * Use \Drupal\Core\Installer\InstallerKernel::installationAttempted() instead.
    

    Nit: indentation.

  2. +++ b/core/lib/Drupal/Core/Form/FormSubmitter.php
    @@ -147,9 +148,17 @@ public function redirectForm(FormStateInterface $form_state) {
    +    @trigger_error(__NAMESPACE__ . '::drupalInstallationAttempted() is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Installer\InstallerKernel::installationAttempted() instead. See https://www.drupal.org/node/3035275', E_USER_DEPRECATED);
    

    You can just use __METHOD__ to get the same result.

  3. +++ b/core/lib/Drupal/Core/Installer/InstallerKernel.php
    @@ -66,4 +66,19 @@ public function getInstallProfile() {
    +    return isset($GLOBALS['install_state']) && empty($GLOBALS['install_state']['installation_finished']);
    

    It's a shame we can't replace these globals? Is there another issue for that?

voleger’s picture

#11.1 - fixed
#11.2 - thanks, changed
#11.3 - that is out of scope of this issue. There are no specific issue exist for used globals, but there are few issues where replace other existing globals with alternative storage.

Status: Needs review » Needs work

The last submitted patch, 12: 3052703-12.patch, failed testing. View results

voleger’s picture

Status: Needs work » Needs review

Non-relative fail

kim.pepper’s picture

Status: Needs review » Reviewed & tested by the community

Lgtm

larowlan’s picture

Status: Reviewed & tested by the community » Fixed

The follow-up is #1530756: [meta] Use a proper kernel for the installer - long standing open issue to get rid of said globals in the installer.

Confirmed that the new test is running.

Committed 2732b8e and pushed to 8.8.x. Thanks!

Published the change record.

Onwards and upwards 🚀

  • larowlan committed 2732b8e on 8.8.x
    Issue #3052703 by voleger, Berdir, kim.pepper: Deprecate...

Status: Fixed » Closed (fixed)

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

penyaskito’s picture

+++ b/core/lib/Drupal/Core/Config/ConfigInstaller.php
@@ -701,9 +702,17 @@ protected function drupalGetProfile() {
+   * @see https://www.drupal.org/node/3035275
...
+    @trigger_error(__METHOD__ . '() is deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Installer\InstallerKernel::installationAttempted() instead. See https://www.drupal.org/node/3035275', E_USER_DEPRECATED);

+++ b/core/lib/Drupal/Core/Form/FormSubmitter.php
@@ -147,9 +148,17 @@ public function redirectForm(FormStateInterface $form_state) {
+   * @see https://www.drupal.org/node/3035275

This is a pointed to the wrong change record. Should be https://www.drupal.org/node/3052704

Opening a new issue: #3098521: drupal_installation_attempted() deprecation referencing wrong change record