Problem/Motivation

In #1446956: Remove the accesslog from statistics access log was removed, but looks like we missed some of the settings.

Proposed resolution

Remove the settings and the schema.

Remaining tasks

User interface changes

API changes

Data model changes

Comments

timmillwood created an issue. See original summary.

timmillwood’s picture

Status: Active » Needs review
StatusFileSize
new1.13 KB

Initial patch

Status: Needs review » Needs work

The last submitted patch, 2: access_log.patch, failed testing.

timmillwood’s picture

Status: Needs work » Needs review
StatusFileSize
new4.8 KB
new3.67 KB

Fixing failing tests and adding upgrade path.

Seems overkill to have an upgrade path test, also because so many other tests fail if the upgrade path isn't there.

timmillwood’s picture

Assigned: tedbow » Unassigned
mallezie’s picture

Status: Needs review » Needs work

Looks good to me.
One question. Do we always go (in drupal minor versions) from
statistics_update_8002
To
statistics_update_8300

(What when we have D8.10 coming out?).
Could be question is unrelated however. (Setting at needs work however for that one)

timmillwood’s picture

Status: Needs work » Needs review

Mallezie, yes it's documented at https://www.drupal.org/node/2535316

mallezie’s picture

Status: Needs review » Reviewed & tested by the community

Thanks, (learned something new).
Then this looks great.

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed 230c5bf and pushed to 8.3.x. Thanks!

diff --git a/core/modules/statistics/statistics.install b/core/modules/statistics/statistics.install
index e2b692c..f232e1d 100644
--- a/core/modules/statistics/statistics.install
+++ b/core/modules/statistics/statistics.install
@@ -85,4 +85,4 @@ function statistics_update_8002() {
  */
 function statistics_update_8300() {
   \Drupal::configFactory()->getEditable('statistics.settings')->clear('access_log')->save();
-}
\ No newline at end of file
+}

Fixed missing new line on commit.

  • alexpott committed 230c5bf on 8.3.x
    Issue #2834796 by timmillwood: Remove statistics access_log settings
    
alexpott’s picture

Updated https://www.drupal.org/node/1900384 to link to this issue too.

jibran’s picture

StatusFileSize
new4.98 KB

Uploaded the patch for 8.2.x so that I can use it with 8.2.x. Please ignore this comment.

jibran’s picture

StatusFileSize
new4.84 KB

Please ignore the comment.

Status: Fixed » Closed (fixed)

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