VictoriaMetrics / VictoriaMetrics/victorialogs-datasource

Allow selecting multiple fields in query builder

Open
#720 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement vl-datasource
Dominant language
TypeScript
Stars
195
Forks
38
Avg merge
1d 7h
Merged PRs (30d)
6

Description

Use case

I need to search by user ID, but the system has several similar fields like userID, userId, user_id, user.id, context.user.id. Since it's unclear which one is correct, I have to create a query with all possible options, one by one, which is inconvenient.

Proposed solution

Allow selecting multiple fields, similar to how variables work in Grafana dashboards:

Image

So users would type "user" and click on "Selected" button to choose all existing fields that contain user inside. This should be transformed into (userID: 1234 or user_id: 1234 or user.id: 1234 or ....) and <reset of the query>

Alternatives considered

No response

Additional context

No response

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Start by locating the query builder and its field-selection controls in the repository, then compare their behavior with the variable-selection interaction described for Grafana dashboards. Done means users can select every matching field for a term and the builder produces an OR group combined with the rest of the query.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.