All contributions

grafana/grafana

Grafana

An open observability and data visualisation platform that shows metrics, logs and traces from Prometheus, Loki, Elasticsearch, PostgreSQL and many other sources on dashboards.

Language
TypeScript
GitHub stars
78,050
Merged changes
1
Project site
grafana.com

What we changed

Matching fields by the name Time or time in transformations now hits only the field with that name, not every time field in the data frame, so Organize fields and Filter by name hide just that one field.

What this work shows

  • Grafana data transformations
  • Field matching in data frames
  • Unit tests with Jest
What was broken

Hiding time hid every time field

The Time and time fallback in nameMatcher.ts matched every field of type time. With two time fields, for example a second one made with Add field from calculation and Convert field type, Organize fields and Filter by name hid both instead of only the field named time.

How we fixed it

The fallback applies only when needed

The fallback now applies only when no field in the frame already has Time or time as its name or display name. A renamed time field still matches as before, and a new test in nameMatcher.test.ts failed before the fix.

#135263

Merged change 1

  1. #135263 Transformations: Fix field named Time matching all time fields Merged 28 October 2026

What it taught us

In a large TypeScript monorepo a logic fix must not break a fallback someone relies on: the renamed time field case still works, and a new test shows the difference.

More about this technology: TypeScript, React and Node

Other projects we write code for

Describe your project.

A free quote comes back within an hour during working hours.