Skip to content

Whitelist table files not deleted when document is deleted #151

@egli

Description

@egli

When a document is deleted, the DB rows for local words are correctly removed via cascade, but the corresponding whitelist table files on disk are left behind as orphans.

Files affected: {tables-dir}/sbs-de-{grade}-white-{identifier}.mod (4 files per document)

Why it doesn't matter much: Document deletion is rare, and in practice it almost always happens before any local words have been added — so there are typically no whitelist files to clean up.

Fix: documents/delete-document should also call whitelists/tables/delete-local-tables (or equivalent) for the document's identifier before removing the DB record.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions