D7: Uninstalling Quant modules doesn't remove data

Created on 5 February 2023, about 2 years ago
Updated 27 June 2023, almost 2 years ago

Problem/Motivation

If you install, configure, and then uninstall the quant modules, the data remains.

Steps to reproduce

  • Install Drupal 7
  • Enable and configure quant and quant_api modules
  • Use devel_generate to generate content including image files
  • Go to Seed tab (/admin/config/services/quant/seed)
  • Check: Export nodes (Article, Basic page), Export taxonomy terms, Export theme assets, Export Views, Custom routes (/node)
  • Click Save configuration button
  • Go to Queue tab and you should see items listed
  • Disable and uninstall quant and quant_api modules
  • Enable quant and quant_api modules
  • Go to Queue tab
  • Result: The items from the previous install are shown
  • Expected result: There shouldn't be any queue items
  • Note the same issue is for the Quant, Seed, API, and Token tabs. Any changes you made there before remain.
  • Proposed resolution

    Add hook_uninstall code to each module to remove variables set in the settings form. The queue table will be removed automatically.

    Remaining tasks

    1. Update code
    2. Review and test
    3. Commit :)

    User interface changes

    Old settings will be removed.

    API changes

    Data model changes

    Not really the data model, but old settings will be removed.

    πŸ› Bug report
    Status

    Fixed

    Version

    1.0

    Component

    Code

    Created by

    πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

    Live updates comments and jobs are added and updated live.
    Sign in to follow issues

    Comments & Activities

    Production build 0.71.5 2024