Project

General

Profile

Bug #14223

Non-public site visibility change should update all related site activity visibility to hidden

Added by Raymond Hoh 7 months ago. Updated 15 days ago.

Status:
Resolved
Priority name:
Normal
Assignee:
Category name:
BuddyPress (misc)
Target version:
Start date:
2021-03-23
Due date:
% Done:

0%

Estimated time:

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.

History

#2 Updated by Boone Gorges 6 months ago

  • Target version changed from 1.18.8 to 1.18.9

#3 Updated by Boone Gorges 6 months ago

  • Target version changed from 1.18.9 to 1.18.10

#4 Updated by Boone Gorges 5 months ago

  • Target version changed from 1.18.10 to 1.18.11

#5 Updated by Boone Gorges 5 months ago

  • Target version changed from 1.18.11 to 1.18.12

#6 Updated by Boone Gorges 4 months ago

  • Target version changed from 1.18.12 to 1.18.13

#7 Updated by Boone Gorges 4 months ago

  • Target version changed from 1.18.13 to 1.18.14

#8 Updated by Boone Gorges 3 months ago

  • Target version changed from 1.18.14 to 1.18.15

#9 Updated by Boone Gorges 3 months ago

  • Target version changed from 1.18.15 to 1.18.16

#10 Updated by Boone Gorges 2 months ago

  • Target version changed from 1.18.16 to 1.18.17

#11 Updated by Boone Gorges about 2 months ago

  • Target version changed from 1.18.17 to 1.18.18

#12 Updated by Boone Gorges about 1 month ago

  • Target version changed from 1.18.18 to 1.18.19

#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.

#14 Updated by Boone Gorges 22 days ago

  • Status changed from Staged for Production Release to Resolved

#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.

#17 Updated by Matt Gold 15 days ago

really interesting data point!

Also available in: Atom PDF