Skip to content

Name history: publications - #341

Draft
vangberg wants to merge 2 commits into
name-historyfrom
name-history-publication-names-unlinkable
Draft

vangberg wants to merge 2 commits into
name-historyfrom
name-history-publication-names-unlinkable

Conversation

@vangberg

@vangberg vangberg commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

WIP

Abandoned soft-deletable attempt

Value flow

(no record) → PublicationName(unlinked_at: nil)

↓ Version#operation

'create'

Version#changeset

{}

↓ PublicHistory#changes_for(version)

{
  'linked' => [false, true]
}

Unlinked

PublicationName#unlinked_at

nil → '2026-10-08T12:00:00Z'

↓ Version#changeset — operation: 'update'

{
  'unlinked_at' => [nil, '2026-10-08T12:00:00Z']
}

↓ PublicHistory#changes_for(version)

{
  'linked' => [true, false]
}

Emended

PublicationName#emends

false → true

↓ Version#changeset — operation: 'update'

{
  'emends' => [false, true]
}

↓ PublicHistory#changes_for(version)

{
  'emends' => [false, true]
}

@vangberg
vangberg added this pull request to stack #342 October 8, 2026 07:18
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.

1 participant