Opened 5 years ago

Closed 3 years ago

#585 closed Bug (fixed)

All Plugins should hook on SitesManager.deleteSite and delete the data for the newly deleted website

Reported by: matt Owned by:
Priority: low Milestone: Future releases
Component: Core Keywords:
Cc: Sensitive: no

Description

Steps

  • add hooks in SitesManager.deleteSite
  • review all existing data in the DB related to a given website
  • make sure all plugins listen to SitesManager.deleteSite and delete the website data from the DB

Change History (9)

comment:1 Changed 5 years ago by vipsoft (robocoder)

  • Milestone changed from 4- Stable release to 3- Surviving The Wild
  • Sensitive unset

comment:2 Changed 4 years ago by matt (mattab)

  • Milestone changed from 3 - Piwik 0.9 - Surviving The Wild to Features requests - after Piwik 1.0

comment:3 Changed 3 years ago by vipsoft (robocoder)

  • Milestone changed from Features requests 1.x or 2.x to 1.1 - Piwik 1.1

comment:4 Changed 3 years ago by matt (mattab)

  • Milestone changed from 1.1 - Piwik 1.1 to Features requests
  • Priority changed from major to normal

comment:5 Changed 3 years ago by matt (mattab)

  • Priority changed from normal to low

comment:6 Changed 3 years ago by timendum

I think "low" priority isn't appropriate.

Deleting a site from database cut many many mb! Just think about the visit_log, and shrinking visit_log leads to a optimized archive process, smaller archives tables, a quicker db, etc.

comment:7 Changed 3 years ago by vipsoft (robocoder)

(In [4028]) refs #585 - add SitesManager.deleteSite hook

comment:9 Changed 3 years ago by matt (mattab)

  • Resolution set to fixed
  • Status changed from new to closed

(In [4590]) Fixes #585 Now, every entity linked to a site is deleted when a site is deleted.
Only the logs and archives are not deleted, because it could result in severe data loss. Better deal with this later on..

Note: See TracTickets for help on using tickets.