Add support for multiple product releases#1306
Open
ryanwhitney wants to merge 14 commits into
Open
Conversation
This was referenced Jun 2, 2026
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.
Description
Fixes #1205.
productsnippet thatreleasesnippets FK toreleasesnippets are automatically associated to a product if there is an existing product with matchingrepo_full_name(i.e.freedomofpress/securedrop) when the webhook is firedreplay_release_webhookmanagement command for testing webhooks locallyIncludes both database and data migrations:
SecureDropproduct snippet and backfills existing releases with itAfter this PR, we'll need to:
page.release_titleon/newsto be plural ("Current releases")Type of change
Testing
I think the easiest way to test this is to use the new management command, which can be deleted afterwards if no longer needed:
Testing:
replay_release_webhookcommand with a new repo likefreedomofpress/securedrop-inboxfreedomofpress/securedrop-inboxPost-deployment actions
In case this PR needs any admin changes or run a management command after deployment, mention it here:
Checklist
General checks
If you made changes to directory listing:
If you made changes to contact form
If you made changes to scanner
/api/v1/directoryreturns directory entries and scan results as expectedIf it's a major change
If you made any frontend change
If the PR involves some visual changes in the frontend, it is recommended to add a screenshot of the new visual.