Skip to content

AO3-7096 Track when a collection's anonymous/unrevealed settings were…#5324

Merged
brianjaustin merged 3 commits intootwcode:masterfrom
connie-feng:AO3-7096-collection_settings_updated_at
Oct 11, 2025
Merged

AO3-7096 Track when a collection's anonymous/unrevealed settings were…#5324
brianjaustin merged 3 commits intootwcode:masterfrom
connie-feng:AO3-7096-collection_settings_updated_at

Conversation

@connie-feng
Copy link
Copy Markdown
Contributor

Issue

https://otwarchive.atlassian.net/browse/AO3-7096

Purpose

This PR adds audit tracking for a collection’s anonymous and unrevealed settings, recording when they were last updated to aid database administration and troubleshooting.

  • Adds a migration to add unrevealed_updated_at and anonymous_updated_at columns to the CollectionPreferenceTable
  • New columns are always initialized to the same timestamp as created_at
  • When the anonymous or unrevealed setting is changed, the corresponding timestamps are updated to match the updated_at timestamp

Credit

Connie Feng, she/her
(JIRA account)

@github-actions github-actions bot added Has Migrations Contains migrations and therefore needs special attention when deploying Awaiting Review labels Aug 17, 2025
@connie-feng connie-feng marked this pull request as ready for review August 17, 2025 17:10
Copy link
Copy Markdown
Contributor

@Bilka2 Bilka2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for working on this!

Copy link
Copy Markdown
Contributor

@Bilka2 Bilka2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@brianjaustin brianjaustin merged commit 17f32a4 into otwcode:master Oct 11, 2025
29 checks passed
Cubostar pushed a commit to Cubostar/otwarchive that referenced this pull request Oct 14, 2025
otwcode#5324)

* AO3-7096 Track when a collection's anonymous/unrevealed settings were updated

* AO3-7096 Default timestamps to nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Has Migrations Contains migrations and therefore needs special attention when deploying Reviewed: Ready to Merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants