Create new database storage for the tracker module

Created on 20 April 2021, about 3 years ago
Updated 23 April 2024, about 2 months ago

Problem/Motivation

A number of functions in the file tracker.module have database queries in them. As they are not in a backend overridable service they cannot be overridden. For the contrib database driver for MongoDB this is a problem.

Proposed resolution

Move the code in the functions from the file tracker.module to a backend overridable service. 3 helper method can then be deprecated (_tracker_add(), _tracker_calculate_changed() and _tracker_remove()).

Remaining tasks

TBD

User interface changes

None

API changes

A new service called "tracker.storage" with the new methods: add(), remove(), removeNode(), calculateChanged() and updateAll().
A number of helper methods are deprecated: _tracker_add(), _tracker_calculate_changed() and _tracker_remove()

Data model changes

None

Release notes snippet

TBD

✨ Feature request
Status

Needs work

Version

1.0

Component
TrackerΒ  β†’

Last updated 17 days ago

No maintainer
Created by

πŸ‡³πŸ‡±Netherlands daffie

Live updates comments and jobs are added and updated live.
  • Contributed project blocker

    It denotes an issue that prevents porting of a contributed project to the stable version of Drupal due to missing APIs, regressions, and so on.

  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

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.69.0 2024