Skip to content

Stop dropping pending tag names from the shared selector callback#25541

Open
crazytonyli wants to merge 2 commits intotrunkfrom
bugfix/2060-missing-tags
Open

Stop dropping pending tag names from the shared selector callback#25541
crazytonyli wants to merge 2 commits intotrunkfrom
bugfix/2060-missing-tags

Conversation

@crazytonyli
Copy link
Copy Markdown
Contributor

Description

Fixes https://linear.app/a8c/issue/CMM-2060

The first commit simply formats the Swift code. The core change is one line, in the second commit. See the code comments for the root cause.

The shared tag selector filtered out pending (`id == 0`) terms before notifying its parent, which silently dropped user-typed tag names if the user published before the async search/create completed. Normal posts publish tag names directly through `RemotePostCreateParameters`, and the custom-post REST flow resolves IDs at save time via `TermResolutionService.resolveIDs(for:)`, so neither consumer needs the filter. Drop it so the parent always observes the user's full selection, and replace the old test that locked in the broken contract with one that asserts the callback fires synchronously with the pending term.
@crazytonyli crazytonyli added this to the 26.9 milestone May 7, 2026
@crazytonyli crazytonyli requested a review from jkmassel May 7, 2026 23:58
@wpmobilebot
Copy link
Copy Markdown
Contributor

App Icon📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
App NameWordPress
ConfigurationRelease-Alpha
Build Number32168
VersionPR #25541
Bundle IDorg.wordpress.alpha
Commitf67070a
Installation URL080conoeng0co
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

@wpmobilebot
Copy link
Copy Markdown
Contributor

App Icon📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
App NameJetpack
ConfigurationRelease-Alpha
Build Number32168
VersionPR #25541
Bundle IDcom.jetpack.alpha
Commitf67070a
Installation URL5uo9802cvaoa8
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants