metabase / metabase/metabase

Use ObjectID as time/date for MongoDB

Open
#2,987 2 comments 9 reactions 0 assignees View on GitHub
Administration/Metadata & Sync Database/Mongo Querying/Processor Type:New Feature
Dominant language
Clojure
Stars
49.3k
Forks
6.8k
Avg merge
1d 13h
Merged PRs (30d)
653

Description

Feature request
In MongoDB the ObjectID contains a timestamp. This timestamp defaults to the time the ObjectID was created and thus is a very good way to keep track of creation date without adding another field.

Unfortunately, Metabase considers this field to be strictly an id, and thus can't group, select nor display the field as a date (i.e. group by month, select later than date X and show it as a human readable date).

Contributor guide

Open the contributing guide

Research direction

The issue names no files, tests, or entry points. Start by locating MongoDB field handling in Metabase and trace how fields are typed, grouped, filtered, and displayed; the work is done when an ObjectID timestamp can be treated as a human-readable date for those operations.

Written by the indexing model from the issue text.

Assessment

Tech stack
clojure, mongodb
Domain
data-visualization, databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.