IP address fields missing from fieldTypeMap

Open Beginner friendly
#181 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
typescript
Domain
frontend

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.

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:

  1. IP fields get type: undefined when mapped through fieldTypeMap
  2. They are excluded from type-filtered field pickers
  3. 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.).

Dominant language
TypeScript
Stars
76
Forks
44
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from quickwit-oss/quickwit-datasource

All issues in quickwit-oss/quickwit-datasource

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.