You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(metadata): preserve string arrays in in-memory filters - #21065
Manual in/not in selections send string arrays from the frontend, but the backend incorrectly converted them into empty arrays, causing in to match nothing and not in to lose its exclusions. Preserve valid string arrays and make conditions containing non-string array members match nothing, while retaining existing comma-separated string handling.
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: 7422d843-6ecc-49a7-bdf5-ccc82a7588a3
📥 Commits
Reviewing files that changed from the base of the PR and between 012a59e and 6f62f1e.
📒 Files selected for processing: 2
internal/service/metadata_filter.go
internal/service/metadata_filter_test.go
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
📝 Walkthrough
The change updates conversion of in and not in metadata filter values. It preserves arrays containing only strings, sets arrays with non-string members to nil, and leaves other non-string values unchanged. New tests cover array inputs and manual filtering.
Changes: Metadata membership filters
Layer / File(s)
Summary
Membership value conversion and validation internal/service/metadata_filter.go, internal/service/metadata_filter_test.go
convertToMetaCondition preserves string arrays for in and not in, and sets arrays with non-string members to nil. Tests cover array matching, literal comma-containing values, invalid array members, and manual not in filtering without dataset IDs.
Manual in/not in metadata filters now keep their string-array selections instead of turning them into empty arrays. No concrete merge-blocking risk was found.
Pre-merge checks: 4 · 1
Failed checks: 1 warning
Check name
Status
Explanation
Resolution
Docstring Coverage
Docstring coverage is 33.33% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 6 functions across 2 files.
Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed checks: 4 passed
Check name
Status
Explanation
Title check
The title clearly identifies the metadata fix and the preservation of string arrays in in-memory filters.
Description check
The description clearly explains the problem, intended behavior, invalid-input handling, and preservation of existing comma-separated string handling. It omits the template's "### Summary" heading, bu…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Description check
Explanation
The description clearly explains the problem, intended behavior, invalid-input handling, and preservation of existing comma-separated string handling. It omits the template's "### Summary" heading, but the required content is present.
Fix all pre-merge checks with AI
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
A rabbit checks the list of strings And hops past values with odd things “In” and “not in” now parse with care Comma-bound words stay whole in there The test burrow finds each case Then leaves a neat and quiet trace
Comment @coderabbitai help to get the list of available commands.
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
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.
Manual in/not in selections send string arrays from the frontend, but the backend incorrectly converted them into empty arrays, causing in to match nothing and not in to lose its exclusions. Preserve valid string arrays and make conditions containing non-string array members match nothing, while retaining existing comma-separated string handling.