Consolidate popup title projections into cached repository helper - #1340
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
Walkthrough
ChangesPopup title choice resolution
Estimated code review effort: 3 (Moderate) | ~25 minutes Mergeability Score: ⚪ Minimal · up to The PR centralizes popup title projection behind a cached helper while preserving existing filtering, ordering, aliases, defaults, and raw-title behavior. No actionable merge-blocking risk remains after normal checks and review. Sequence Diagram(s)sequenceDiagram
participant Caller
participant popup_selectlist
participant PopupsRepository
participant WordPressPosts
Caller->>popup_selectlist: provide select-list arguments
popup_selectlist->>WordPressPosts: query published popup IDs
WordPressPosts-->>popup_selectlist: cached or queried popup IDs
popup_selectlist->>PopupsRepository: request popup title choices
PopupsRepository->>WordPressPosts: read or populate title mapping
WordPressPosts-->>PopupsRepository: popup IDs and titles
PopupsRepository-->>popup_selectlist: filtered title choices
popup_selectlist-->>Caller: ordered popup choices
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8435e7c943
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
ee7b318 to
5ea8089
Compare
3ad90bb to
4284bcd
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5ea8089e9d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5ea8089e9d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
d132703 to
698dd44
Compare
|
@codex review |
|
Codex Review: Didn't find any major issues. Another round soon, please! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@codex review |
|
Codex Review: Didn't find any major issues. 👍 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Summary
posts_resultsandthe_poststitle mutations through a compatibility fallback only when non-core query-result filters are active and filtering is not suppressed.popup_maker/popup_title_choicesfilter.the_titleformatting so stored popup titles are not mutated in the normal fast path.Query behavior
the_postscallback does not disable the fast path.suppress_filters=truekeeps the raw projection path.last_changedvalue, so title updates cannot return stale choices.Validation
developfull PHPUnit: 1,041 tests, 2,391 assertions, 16 skippedgit diff --check: passposts_resultsandthe_postsmutation regressions