metabase / metabase

The simplest, fastest way to get business intelligence and analytics to everyone in your company :yum:
https://metabase.com
Other
38.95k stars 5.18k forks source link

Filters for Histogram Bin Values Don't Update with Bin Size Changes After Applying Filters #42942

Open FilmonK opened 6 months ago

FilmonK commented 6 months ago

Describe the bug

The filters for histogram bin values when drilling through don't reflect the updated bin size after applying a filters I CAN'T reproduce this in master.

To Reproduce

  1. Use Orders table Summarize using Count and bin the Total column 1



  1. There are bins with increments of 2
2



Drilling through to values also reflects this

3



  1. Add a filter with a high enough value that will alter the bin size 4



Bin increments are .75 at this time

5



However when drilling through to see the values, we have the original bin size of 2 for the filters

6

Expected behavior

For the filter values to correctly reflect the expected bin size.

Logs

No response

Information about your Metabase installation

{
  "browser-info": {
    "language": "en-US",
    "platform": "MacIntel",
    "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36",
    "vendor": "Google Inc."
  },
  "system-info": {
    "file.encoding": "UTF-8",
    "java.runtime.name": "OpenJDK Runtime Environment",
    "java.runtime.version": "11.0.22+7",
    "java.vendor": "Eclipse Adoptium",
    "java.vendor.url": "https://adoptium.net/",
    "java.version": "11.0.22",
    "java.vm.name": "OpenJDK 64-Bit Server VM",
    "java.vm.version": "11.0.22+7",
    "os.name": "Mac OS X",
    "os.version": "13.5.1",
    "user.language": "en",
    "user.timezone": "America/Chicago"
  },
  "metabase-info": {
    "databases": [
      "h2",
      "postgres",
      "snowflake",
      "bigquery-cloud-sdk"
    ],
    "hosting-env": "unknown",
    "application-database": "postgres",
    "application-database-details": {
      "database": {
        "name": "PostgreSQL",
        "version": "15.3"
      },
      "jdbc-driver": {
        "name": "PostgreSQL JDBC Driver",
        "version": "42.7.2"
      }
    },
    "run-mode": "prod",
    "version": {
      "date": "2024-05-13",
      "tag": "v1.49.10",
      "hash": "9e8fc83"
    },
    "settings": {
      "report-timezone": null
    }
  }
}

Severity

P2 - Not able to reproduce in master

Additional context

No response

kamilmielnik commented 6 months ago

I can reproduce in 0.49.11. Cannot reproduce in master at c09ec3ddeb. Cannot reproduce in release-x.50.x at 242315dcfd.