Give story ideas the same workshop links as stories - #2586
Merged
Merged
Conversation
maebeale
marked this pull request as ready for review
September 30, 2026 21:11
maebeale
force-pushed
the
maebeale/workshop-links-naming
branch
2 times, most recently
from
October 3, 2026 20:47
904f277 to
1a8cb21
Compare
Mirrors the merged stories<->workshops many-to-many onto story ideas: a StoryIdeaWorkshop join (story_ideas_workshops table) with the same normalization, duplicate-link detection, and unique index; multi-workshop editing on the idea form (remote-select + free-text, with the legacy single link surfaced read-only); join-aware display on the idea page; and promoting an idea now copies every one of its workshop links (not just the legacy pair) onto the new story. The importer writes the idea join too. Legacy workshop_id/external_workshop_title columns are kept as a safety copy; display falls back to them when an idea has no join rows. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
maebeale
force-pushed
the
maebeale/workshop-links-naming
branch
from
October 3, 2026 22:03
1a8cb21 to
7dd0e90
Compare
A WordPress-export row whose title already exists now refreshes that story's metadata (org, windows type, author, workshop links, publish/feature flags) but leaves its body and original created_at/by alone — no duplicate, no new idea. The preview and summary surface updated rows distinctly from created ones.
maebeale
added a commit
that referenced
this pull request
Oct 4, 2026
Rebased onto main (stories↔workshops many-to-many #2587/#2586, co-author on story ideas #2597). The importer now: - Links the row's workshop through the story_workshops / story_idea_workshops join (matched Workshop or free-text external title), keeping the legacy copy - Credits both authors on the promoted StoryIdea too (the idea gained co_author, which requires the first author), each with NULL-by-default credit - Drops the dead "refresh existing / stories_updated" UI from the preview, since this importer makes a [COPY N] story rather than updating in place Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
maebeale
added a commit
that referenced
this pull request
Oct 5, 2026
Rebased onto main (stories↔workshops many-to-many #2587/#2586, co-author on story ideas #2597). The importer now: - Links the row's workshop through the story_workshops / story_idea_workshops join (matched Workshop or free-text external title), keeping the legacy copy - Credits both authors on the promoted StoryIdea too (the idea gained co_author, which requires the first author), each with NULL-by-default credit - Drops the dead "refresh existing / stories_updated" UI from the preview, since this importer makes a [COPY N] story rather than updating in place Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 suggested review level: 5 Inspect 🔬 new join model + migration mirroring the merged stories side, plus an importer upsert
Builds on the merged stories↔workshops many-to-many (#2587) and gives story ideas the same treatment, plus makes the WordPress story importer update existing stories instead of skipping them.
What you can do now
How it's modeled (mirrors the stories side)
StoryIdeaWorkshoponstory_ideas_workshops— samenormalizes, duplicate-link detection (link_not_already_present), and a unique index on the (idea, workshop, title) triple.StoryIdea#workshop_title+StoryIdeaDecorator(links, count, legacy reference), the "Name (from the Workshop)" wording, and a plural label.story_ideas.workshop_id/external_workshop_titlecolumns stay as a safety net; the form surfaces them read-only.Notes for the reviewer
story_ideas/story_idea_workshop_fields) — an unqualified name 406'd there.StoryIdeaWorkshop#submitted_rowsonly reads the idea side (ideas aren't linked from workshop pages).Testing
StoryIdeaWorkshopmodel spec mirrors the stories one (duplicate rules, unique-index backstop).🤖 Generated with Claude Code