Skip to content

Log ocaid on record disassociation#12787

Merged
mekarpeles merged 1 commit into
internetarchive:masterfrom
jimchamp:log-ocaids-on-unlink
May 21, 2026
Merged

Log ocaid on record disassociation#12787
mekarpeles merged 1 commit into
internetarchive:masterfrom
jimchamp:log-ocaids-on-unlink

Conversation

@jimchamp
Copy link
Copy Markdown
Collaborator

Logs the ocaid and affected edition keys on valid /api/unlink.json requests.

Technical

Testing

Screenshot

Stakeholders

Copilot AI review requested due to automatic review settings May 21, 2026 17:34
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds server-side logging to the /api/unlink endpoint to record which Internet Archive identifier (OCAID) is being disassociated and which edition keys are affected, improving auditability of unlink operations.

Changes:

  • Log the ocaid and the set of affected edition_keys when processing an authenticated unlink request.

Comment thread openlibrary/plugins/openlibrary/api.py
@mekarpeles mekarpeles merged commit 32761b3 into internetarchive:master May 21, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants