Problem/Motivation
Longstanding core module statistics is being deprecated and removed from core, following #3413917: Deprecate the Statistics module, #3340834: [meta] Tasks to deprecate Statistics and other related issues.
Because statistics is still used by many sites, 5% to 9% depending on which numbers you want to, that means at least 800k*5% = 40k sites, presumably smaller ones not using data-grabbing third-party SaaS, it needs at the very least to be preserved.
Because it has received comparatively little attention over the years, it also needs to be improved, and there are multiple directions for that.
Proposed resolution
Create temporary project holding the core split until the core tasks reach the point where drupal.org/project/statistics can be createdcreate drupal.org/project/statistics when approved: created and unpublishedrepatriate work from the temporary repo to that new official projectmigrate remaining core issues related to statistics on the 11.*, 10.* and 9.* branches, but not earlier ones, or those related to the core removal process, to the new project- perform triage on core 7.* issues, moving those still relevant to the new project, and leaving others in place until final D7 EOL
perform triage on issues, priorizingbugs on 11.xbugs on 10.*bugs on 9.* (no remaining issue on 8.x)non-bug issues
define axes of development. Initial axes envisioned, in no particular order:scope extensionstracking of all (content) entity views canonical pagestracking of other view types, possibly per view modenon-entity tracking (e.g. landing pages)
collection extensionlongitudinal statistics for sites with enough traffic- longitudinal statistics for smaller sites with traffic low enough that stats cannot be collected often enough for lack of incoming requests and no external cron
support for offline data collection/shipping to decouple statistics and their rendering from core storagesupport for more granular collection, probably by roles only to avoid privacy issues for PII collectionconsider whether DNT support is relevant, probably relating to the GDPR module: #3445764: Assert behavior regarding DNT
UI improvements. Currently, UI is limited to exposing the node_counter to Viewsprovide a default Views reportonce longitudinal collection is implemented, provide Views integrationonce that is done, provide a default Views reportsupport offline rendering, to decouple UI from core workload
Merge request link
Not applicable. See project at https://www.drupal.org/project/statistics
Remaining tasks
Release 1.0.0-beta1EvaluateRelease 1.0.0https://www.drupal.org/project/statistics/releases/1.0.0
User interface changes
TBD, but at least a default Views page for current stats and later a default Views page for longitudinal stats.
API changes
None in 1.x. For 2.x, TBD, but probably a lot.
Data model changes
None in 1.x For 2.x, TBD, but probably a lot. A move to the extended K/V API is likely.
Release notes snippet
TBD.
| Comment | File | Size | Author |
|---|---|---|---|
| #13 | Capture d’écran 2024-02-23 à 14.17.46.png | 23.28 KB | fgm |
Comments
Comment #2
fgmComment #3
kgaut commentedI'm seeing a 404 error on https://drupal.org/project/statistics. Is-it normal ?
Comment #4
ressa@Kgaut: See #3341091-8: [11.x] [Meta] Tasks to remove Statistics.
Comment #5
longwave@Kgaut the "statistics" project name is currently reserved, we have asked the drupal.org administrators if this restriction can be removed so it can be used for the module in contrib.
Comment #6
fgmDetails on #3417997: Statistics path is no longer reserved.
Comment #7
drummThe proposed resolution is missing coordinating with the Drupal Association for packages.drupal.org adjustments, which needs to be done any time a module or theme moves into or out of core with the same name. Picking a different name for the contrib version would make this go a lot more smoothly for Composer.
If a new name can't be used, a new issue like #3308347: Ensure that ckeditor does not get special core treatment needs to be created, and updated when the module is ready to be installed on its own. There are still risks, see #3309838: Incorrect version of CKEditor being parsed from info.yml files and its related issues.
Reserving the name via project_issue module wasn't intended, but I'm glad it was, since these steps were being skipped. I'll look at getting every other core component's name reserved.
Comment #8
quietone commentedJust noting that Step 4 in this issue is covered by Step 5 in the Meta to remove statistics. #3341091: [11.x] [Meta] Tasks to remove Statistics
@drumm, I think you have identified a mistake in the documented process for removing an extension. Currently, the step to create an issue like #3308347: Ensure that ckeditor does not get special core treatment is in the set of steps to do for removal, not for deprecation.
Comment #9
quietone commentedAdding the deprecation issue because that can only be completed once there is a stable release of statistics in contrib.
Comment #10
andypostsomehow https://www.drupal.org/project/statistics still 404
Comment #11
quietone commentedThe packing issue is #3421792: Ensure that Statistics does not get special core treatment
Comment #12
drummIf https://www.drupal.org/project/statistics is not set up in the next day or two, I should re-reserve it, so it isn't taken by another project.
If a different name could be used, then #3421792: Ensure that Statistics does not get special core treatment would not be needed and we avoid any unexpected Composer behavior.
Comment #13
fgm@drumm : I am still not able to create the project node, see attached image.
Comment #14
drummThe project name, “Statistics” also needs to be unique for autocomplete fields, like the Project field in the issue update form on this page. You could call it something like “Statistics from core.” I did go ahead and delete the conflicting project, since it was a sandbox with no code, that was a bit spammy. So the “Statistics” name is also free now.
Comment #15
andypostIris alive https://www.drupal.org/project/statistics
So the last issue unblocked #3413917: Deprecate the Statistics module
Comment #16
quietone commented@fgm, thanks for taking on maintainership of statistics in contrib. :-)
The next step for deprecating statistics in core is to have a stable release of the contrib project. @fgm, do you have time to do that?
If needed there are instructions at Create the contrib project with a stable release.
Thanks.
Comment #17
fgm@quietone yes, that's my main goal for the DrupalCamp Rennes code sprint this week. I've set up a discussion with camp participants to have a variety of points of view to guide the plan.
Comment #18
fgmAfter the discussion at DrupalCamp Rennes, the contrib plan is now at #3436823: Plan for Statistics 1.x.
Comment #19
frondeau commentedHello the statistics team,
Will the new module set some more details as dates, referrers?
Where can I read the specifications?
Regards
Comment #20
fgm@frondeau : please follow up on #3436823: Plan for Statistics 1.x. The future is now being written so you can be part of it. If you are attending DrupalCamp Rennes, join us in the second contribution room.
Comment #21
fgm@quietone the current HEAD is now passing tests (except warnings on cspell), so it seems to be ready for 1.0.0, or at least 1.0.0-alpha1.
@vanessakovalsky and @hellosct1 also did a lot of triage on the remaining core issues at DrupalCamp Rennes.
Comment #22
quietone commented@fgm, that is great news! There is one more thing needed before we can tag a core release with a deprecated statistics module and that is a stable release of the contrib module. Can you do that?
Comment #23
fgmIMHO the module is ready to at least tag a 1.0.0-alpha1, but I'm a bit worried of tagging the 1.0.0 proper without third party review. Think I should do it nonetheless ? (and I fixed the cspell issues too) Build is broken by #3437434: Composer (next major) no longer works after 11.x updated to Symfony 7 but passed before that.
Comment #24
fgmComment #25
fgmStable version 1.0.0 released at https://www.drupal.org/project/statistics/releases/1.0.0
Comment #26
fgmComment #28
quietone commentedThis has been completed for some time. I am closing as fixed and have updated credit.