Project

General

Profile

Actions

Bug #14223

closed

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

Added by Raymond Hoh over 1 year ago. Updated about 1 year 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.


Related issues

Related to CUNY Academic Commons - Bug #15134: Broken site image/iconResolvedRaymond Hoh2022-01-04

Actions
Actions #2

Updated by Boone Gorges over 1 year ago

  • Target version changed from 1.18.8 to 1.18.9
Actions #3

Updated by Boone Gorges over 1 year ago

  • Target version changed from 1.18.9 to 1.18.10
Actions #4

Updated by Boone Gorges over 1 year ago

  • Target version changed from 1.18.10 to 1.18.11
Actions #5

Updated by Boone Gorges over 1 year ago

  • Target version changed from 1.18.11 to 1.18.12
Actions #6

Updated by Boone Gorges over 1 year ago

  • Target version changed from 1.18.12 to 1.18.13
Actions #7

Updated by Boone Gorges over 1 year ago

  • Target version changed from 1.18.13 to 1.18.14
Actions #8

Updated by Boone Gorges about 1 year ago

  • Target version changed from 1.18.14 to 1.18.15
Actions #9

Updated by Boone Gorges about 1 year ago

  • Target version changed from 1.18.15 to 1.18.16
Actions #10

Updated by Boone Gorges about 1 year ago

  • Target version changed from 1.18.16 to 1.18.17
Actions #11

Updated by Boone Gorges about 1 year ago

  • Target version changed from 1.18.17 to 1.18.18
Actions #12

Updated by Boone Gorges about 1 year ago

  • Target version changed from 1.18.18 to 1.18.19
Actions #13

Updated by Raymond Hoh about 1 year 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.

Actions #14

Updated by Boone Gorges about 1 year ago

  • Status changed from Staged for Production Release to Resolved
Actions #15

Updated by Raymond Hoh about 1 year 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.

Actions #16

Updated by Colin McDonald about 1 year 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.

Actions #17

Updated by Matt Gold about 1 year ago

really interesting data point!

Actions #18

Updated by Raymond Hoh 9 months ago

  • Related to Bug #15134: Broken site image/icon added
Actions

Also available in: Atom PDF