Repository navigation
refactor(views): share optional filter set construction - #14850
Merged
Merged
Conversation
Contributor
[Low impact] The PR appears safe to merge; the shared helper preserves the existing selection behavior. SummaryEleven analysis views now share
Reviews (1) · Last reviewed commit: "refactor(views): share optional filter s..." · Reviewed by Greptile |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This was referenced Nov 27, 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.
Summary
Eleven analysis views now use the same helper to turn an optional selection into a set. Removing the local copies saves 15 production lines net.
Problem and expected behavior
An omitted selection leaves the collection unfiltered. An explicitly empty selection matches no rows. Repeated selections do not duplicate output rows, and paging preserves the order and count of matching rows.
Change and scope
Put
filterSetbeside the row-selection functions. Replace the eleven local constructors and reuse it for the Android JNI view's inline field and index selections. Each view still owns its matching, output projection, and pagination decisions.Contract and verification
Compared all eleven former functions against the shared implementation with omitted, empty, duplicate, string, and numeric selections. Compared the syntax trees of all eleven callers, including the arguments of 83 existing calls and both inline selectors. Checked row order and totals through the row-selection function. Scoped formatting and
git diff --checkpassed. Hosted CI passed on3d9838896. The portable suite selected 16 tests and passed all 16.Author readiness
Human owner: @vincentkoc
Author checklist (completed by the PR author before requesting review)
type(scope): outcome.REA_runtime setting with a default, floor, and maximum, unless a fixed ceiling has a stated reason. See Adding a runtime setting.