Repository navigation
Render an activity once when an update moves it into, out of, or between part groupings - #5967
Merged
Merged
Conversation
added 3 commits
October 22, 2026 16:23
An update with the same ID that leaves, joins, or moves between HowTo groupings stayed in its previous grouping and was inserted again, so it was rendered twice.
Collaborator
Author
|
William Wong (@compulim), a question for a follow-up (this PR deliberately leaves livestream activities alone): A livestream session in a HowTo grouping can get a later revision with another
We recommend A. OK to go with A? |
2 of 11 tasks
Eugene (OEvgeny)
marked this pull request as ready for review
October 23, 2026 06:18
Eugene (OEvgeny)
requested review from
William Wong (compulim),
Chris Whitten (cwhitten) and
Thomas Durnford (tdurnford)
as code owners
October 23, 2026 06:18
William Wong (compulim)
approved these changes
Oct 23, 2026
1 of 11 tasks
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.
Changelog Entry
Fixed
Description
When an update moved an activity out of, into, or between HowTo part groupings,
upsert()added it by its new grouping but never removed it from its previous place. It now removes the previous revision (and an emptied grouping) before inserting the update.Design
deleteActivityByLocalId()for non-livestream activities whose HowTo grouping ID changed, instead of a second removal path insideupsert(); updates within the same grouping are untouched.Specific Changes
sort/upsert.ts: remove the previous revision when its HowTo grouping changedupsert.howTo.spec.ts: leave a grouping, move to another (emptied one dropped), join a grouping, same grouping unchangedupsert.howToWithLivestream.spec.ts: a re-sent final or older revision withoutisPartOfkeeps the session finalized and renders once.changelog/<PR#>-<slug>.mdReview Checklist
z-index)package.jsonandpackage-lock.jsonreviewed