-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Date foreign key references produce duplicates in filter and group by dialogs #15563
Labels
.Frontend
Priority:P2
Average run of the mill bug
Querying/GUI
Query builder catch-all, including simple mode
Querying/Remapping
Remapped display values, whether human-readable values or Field->Field remappings
.Regression
Bugs that were previously fixed and/or bugs unintentionally shipped with new features.
.Reproduced
Issues reproduced in test (usually Cypress)
Type:Bug
Product defects
Comments
flamber
added
.Regression
Bugs that were previously fixed and/or bugs unintentionally shipped with new features.
Priority:P2
Average run of the mill bug
Querying/GUI
Query builder catch-all, including simple mode
.Frontend
and removed
.Needs Triage
labels
Apr 12, 2021
Looks like this is also fixed by PR #15582 (already merged to release-x.39.x branch). |
rlotun
moved this from Blockers for 39
to Closed Issues and PRs
in 39 and 38.x Planning Board
Apr 13, 2021
nemanjaglumac
added a commit
that referenced
this issue
Apr 14, 2021
camsaul
added
the
Querying/Remapping
Remapped display values, whether human-readable values or Field->Field remappings
label
Jan 21, 2022
This was referenced Jan 11, 2024
This was referenced Feb 6, 2024
Open
This was referenced Feb 13, 2024
This was referenced Feb 29, 2024
This was referenced Apr 4, 2024
Merged
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
.Frontend
Priority:P2
Average run of the mill bug
Querying/GUI
Query builder catch-all, including simple mode
Querying/Remapping
Remapped display values, whether human-readable values or Field->Field remappings
.Regression
Bugs that were previously fixed and/or bugs unintentionally shipped with new features.
.Reproduced
Issues reproduced in test (usually Cypress)
Type:Bug
Product defects
Describe the bug
Joins defined in the data model using a datetime as the key are giving duplicated rows in filter and group by menus.
We have date fields in our data that we use as a foreign key to a date table, primary key is a date. We model this in the Metabase data model. Previously this has work well for us but I've just upgraded a test instance to v0.39.0-rc1 and now we're seeing some strange behaviour in the UI with multiple duplicate fields being displayed.
The resulting summary is correct for each month and the generated query seems to be correct as I'd expect.
Logs
Nothing of interest
To Reproduce
Orders > Created At
to be the entity keyReviews > Created At
to be a foreign key referencing the 'Orders > Created At'Expected behavior
Dates should be able to be used as primary and foreign keys without causing UI issues.
Screenshots
These are from our data, not Sample Dataset.
In v0.38.1 the group by options for these fields looks like this:
Now in v0.39.0-rc1 it looks like this:
When selecting any one of these repeats they all get highlighted
Information about your Metabase Installation:
Severity
Makes the grouping and filtering dialogs harder to use, more importantly it just looks wrong. Functionality still works fine.
Additional context
Other relationships seems to be fine, it's just dates that are causing this.
The text was updated successfully, but these errors were encountered: