Non-public site visibility change should update all related site activity visibility to hidden
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.
#13 Updated by Raymond Hoh 23 days 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.
#15 Updated by Raymond Hoh 22 days 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.
#16 Updated by Colin McDonald 21 days 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.