quickwit-oss / quickwit-oss/quickwit-datasource
IP address fields missing from fieldTypeMap
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 76
- Forks
- 44
- PR merge metrics
- No merged PRs in 30d
Description
Problem
Quickwit's _field_caps endpoint reports IP address fields as type ip (see field_capability.rs FieldCapabilityEntryType::Ip), but the plugin's fieldTypeMap in src/utils/index.ts does not include an ip entry. This means:
- IP fields get
type: undefinedwhen mapped throughfieldTypeMap - They are excluded from type-filtered field pickers
- They may not appear in autocomplete suggestions
Scope
Not present in the OTEL log index currently, but quickwit supports IpAddr fields and the _field_caps mapping exists. Any index using IP fields would be affected.
Fix
Add ip to fieldTypeMap:
export const fieldTypeMap: Record<string, string> = {
// ... existing entries ...
ip: 'ip',
};
May also need filter/query handling for IP-specific syntax (CIDR ranges, etc.).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in src/utils/index.ts and inspect fieldTypeMap, then compare its entries with the IP type reported by field_capability.rs. Add the missing mapping and check the type-filtered field pickers and autocomplete paths; done means IP fields are mapped instead of undefined and are included where appropriate.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 72/100