Bug #14223
closedNon-public site visibility change should update all related site activity visibility to hidden
0%
Description
If a Commons site changes their site visibility from public to a non-public option (under "Settings > Reading" in the admin dashboard), we should update all related activity data for blog posts and comments so they are hidden sitewide as well.
Should also write a script to handle existing blog activity to see which ones might need to be hidden. This might take awhile to run. A quick count query for blog post activity across all subdomain sites is ~65,000. For blog comments, that number is ~39,000.
Related: #14209.
Related issues
Updated by Boone Gorges over 3 years ago
- Target version changed from 1.18.8 to 1.18.9
Updated by Boone Gorges over 3 years ago
- Target version changed from 1.18.9 to 1.18.10
Updated by Boone Gorges over 3 years ago
- Target version changed from 1.18.10 to 1.18.11
Updated by Boone Gorges over 3 years ago
- Target version changed from 1.18.11 to 1.18.12
Updated by Boone Gorges over 3 years ago
- Target version changed from 1.18.12 to 1.18.13
Updated by Boone Gorges over 3 years ago
- Target version changed from 1.18.13 to 1.18.14
Updated by Boone Gorges over 3 years ago
- Target version changed from 1.18.14 to 1.18.15
Updated by Boone Gorges over 3 years ago
- Target version changed from 1.18.15 to 1.18.16
Updated by Boone Gorges over 3 years ago
- Target version changed from 1.18.16 to 1.18.17
Updated by Boone Gorges over 3 years ago
- Target version changed from 1.18.17 to 1.18.18
Updated by Boone Gorges about 3 years ago
- Target version changed from 1.18.18 to 1.18.19
Updated by Raymond Hoh about 3 years ago
- Status changed from New to Staged for Production Release
I've committed some code to switch all blog activity items to private (hide_sitewide = 1
) when a site switches to a private site visiblity setting. See https://github.com/cuny-academic-commons/cac/commit/2bd4db49b3a9ce590edb8b946d8f07772bd6ca7f.
I will run a script later in the evening to handle existing blog activity items that might need to be hidden.
Updated by Boone Gorges about 3 years ago
- Status changed from Staged for Production Release to Resolved
Updated by Raymond Hoh about 3 years ago
Just ran the CLI script to switch existing public blog activity items that needed to be hidden.
The numbers are interesting. Roughly 40% of the public blog post activity needed to be switched to hidden and 50% of public blog comment activity needed to be switched to be hidden.
An assumption can be made that once a public site's main purpose or goal is completed, the site's privacy setting usually switches to a private visibility setting afterwards.
Updated by Colin McDonald about 3 years ago
Thanks for this work and analysis, Ray. Interesting indeed. That's a lot of content moving to private. I wouldn't have thought that so many would change settings later in a site's life, but because it's privacy and largely an academic setting our users may be more vigilant on that front. I'm adding a couple more watchers here as an FYI.
Updated by Raymond Hoh almost 3 years ago
- Related to Bug #15134: Broken site image/icon added