Fixed generic configuration item autocomplete and reflist autocomplet…#3852
Fixed generic configuration item autocomplete and reflist autocomplet…#3852IvanIlyichev merged 1 commit intomainfrom
Conversation
…e (were broken after domain model changes)
|
Caution Review failedThe pull request is closed. WalkthroughFilters and queried fields were refactored across autocomplete components: revision-based fields were removed in favor of top-level fields (e.g., label, description, isTemplate). A new baseListFilter excludes null modules. Single-editor runtime checks were simplified to rely on multi-editor logic. Item label rendering no longer includes version information. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor User
participant AutoComplete as Autocomplete Component
participant Query as Query Builder
participant API as Backend API
User->>AutoComplete: Type search term
AutoComplete->>Query: Build filter (baseListFilter + termFilter)
Note over Query: baseListFilter excludes null module<br/>termFilter matches name or module.name
Query->>API: Request items { id, name, module, label, description }
API-->>Query: Items (no revision/versionNo)
Query-->>AutoComplete: Mapped options
AutoComplete->>User: Render ItemLabel (no version)
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Suggested reviewers
Poem
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (3)
Tip 👮 Agentic pre-merge checks are now available in preview!Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.
Please see the documentation for more information. Example: reviews:
pre_merge_checks:
custom_checks:
- name: "Undocumented Breaking Changes"
mode: "warning"
instructions: |
Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).Please share your feedback with us on this Discord post. 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 |
…e (were broken after domain model changes)
Summary by CodeRabbit