BP doc titles/dates messed up
Something strange is afoot with BP Docs. I just went to edit the Doc I had created in our CAC team group to keep track of course sites on the Commons. When I was in the editing window, I noticed that the slug had a series of numbers added to it -- course-sites-on-the-cuny-academic-commons--2-2-2-2-2-2-2-2-2-2
So, I made my changes to the file, clicked the silent checkbox, and removed the 2s from the slug.
Then, all of the files in the team group took on the name of that doc. Please see attached screenshot.
#4 Updated by Boone Gorges almost 4 years ago
The following Docs were affected. I've fixed them all by deleting the most recent, problematic revisions, and then setting their post_modified dates to correspond to the last legitimate revision date.
2035 | | 2039 | | 1860 | | 1852 | | 2033 | | 1864 | | 2001 | | 1960 | | 1846
The only thing not automatically restored by this process is the slug. This information doesn't appear to be saved anywhere. It doesn't affect usability, and they're all old Docs for internal purposes, so I'm not going to spend more time on it.
I'm now going to try to figure out what happened.
#5 Updated by Boone Gorges almost 4 years ago
I found the root issue, which is fixed in https://github.com/cuny-academic-commons/cac/commit/ff5ba906a8c3595e0160509c662bc6b8861625aa and has been deployed as a hotfix. This should prevent future instances.
It appears very likely that this issue arose after the last BP Docs update, which modified the way that Doc saves work. I haven't yet determined the full story of why it broke. It seems to have something to do with our buddypress-docs-in-group configuration, but that's all I've currently got. Since the urgent part of this issue is resolved, I'm going to set aside this question for the next few days.