Skip to content
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

Category filters should always be multi-selectable #28096

Merged
merged 2 commits into from
Feb 7, 2023

Conversation

tsmacdonald
Copy link
Member

@tsmacdonald tsmacdonald commented Feb 6, 2023

[Fixes #27393]

Description

Context on Slack: https://metaboat.slack.com/archives/C04DAKFDTCZ/p1675699779860499

How to verify

See bug ticket

Upload a demo video or before/after screenshots if sensible or remove the section

image

Checklist

  • 😬 Tests have been added/updated to cover changes in this PR

This change is Reviewable

@tsmacdonald tsmacdonald requested review from a team and calherries February 6, 2023 16:23
@tsmacdonald tsmacdonald added the backport Automatically create PR on current release branch on merge label Feb 6, 2023
@deploysentinel
Copy link

deploysentinel bot commented Feb 6, 2023

No failed tests 🎉

@codecov
Copy link

codecov bot commented Feb 6, 2023

Codecov Report

Base: 66.38% // Head: 66.40% // Increases project coverage by +0.01% 🎉

Coverage data is based on head (d038c00) compared to base (caa9d6e).
Patch coverage: 68.30% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #28096      +/-   ##
==========================================
+ Coverage   66.38%   66.40%   +0.01%     
==========================================
  Files        3296     3297       +1     
  Lines       95502    95558      +56     
  Branches    12160    12172      +12     
==========================================
+ Hits        63402    63454      +52     
+ Misses      27081    27080       -1     
- Partials     5019     5024       +5     
Flag Coverage Δ
back-end 85.40% <ø> (-0.01%) ⬇️
front-end 48.83% <68.30%> (+0.05%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
frontend/src/metabase-lib/parameters/constants.ts 100.00% <ø> (ø)
...etabase/dashboard/components/DashCard/DashCard.tsx 1.31% <ø> (ø)
...Card/DashCardActionButtons/ChartSettingsButton.tsx 0.00% <ø> (ø)
...rd/DashCardActionButtons/DashCardActionButtons.tsx 0.00% <ø> (ø)
.../components/view/sidebars/ChartSettingsSidebar.jsx 85.71% <ø> (ø)
...izations/components/ChartSettingsWidget.styled.tsx 80.00% <ø> (ø)
...se/visualizations/components/ObjectDetail/utils.ts 82.75% <ø> (ø)
...ns/components/settings/ChartSettingFieldPicker.jsx 68.42% <0.00%> (ø)
...omponents/settings/ChartSettingFieldsPartition.jsx 6.52% <0.00%> (ø)
...rtSettingsListColumns/ChartSettingsListColumns.tsx 0.00% <0.00%> (ø)
... and 23 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@github-actions
Copy link

github-actions bot commented Feb 7, 2023

Notifying subscribers in CODENOTIFY files for diff 791a617...d038c00.

Notify File(s)
@alxnddr frontend/src/metabase/visualizations/components/ObjectDetail/utils.ts

@tsmacdonald tsmacdonald merged commit 78ce799 into master Feb 7, 2023
@tsmacdonald tsmacdonald deleted the category-multi-select-27393 branch February 7, 2023 10:53
tsmacdonald added a commit that referenced this pull request Feb 7, 2023
* Category filters should always be multi-selectable

[Fixes #27393]
metabase-bot bot added a commit that referenced this pull request Feb 7, 2023
* Category filters should always be multi-selectable

[Fixes #27393]

Co-authored-by: Tim Macdonald <tim@metabase.com>
chalenge added a commit to faros-ai/metabase that referenced this pull request Mar 14, 2023
* docs - add section to dashboard subscriptions on permissions (metabase#27662) (metabase#27736)

* add section to dashboard subscriptions on permissions

* feedback from Luiz

Co-authored-by: Jeff Bruemmer <jeff.bruemmer@gmail.com>

* docs - data model admin settings (metabase#27648) (metabase#27739)

Co-authored-by: Natalie <nat@metabase.com>

* note on breadcrumbs (metabase#27726) (metabase#27753)

Co-authored-by: Jeff Bruemmer <jeff.bruemmer@gmail.com>

* Upgrading storybook to latest stable version (metabase#27679) (metabase#27758)

Co-authored-by: Luis Paolini <paoliniluis@gmail.com>

* docs - notes on allowed domains (metabase#27771) (metabase#27773)

Co-authored-by: Jeff Bruemmer <jeff.bruemmer@gmail.com>

* docs - update jwt (metabase#27755) (metabase#27778)

Co-authored-by: Natalie <nat@metabase.com>

* 🍒 Backport repros from 2023-01-20 (metabase#27818)

* Repro metabase#27768: CC dashboard filter appears disconnected (metabase#27791)

* Repro metabase#25189: CC referencing a base column dropped in nested question (metabase#27798)

* Repro metabase#26826: Dashboard alien card (metabase#27805)

* Fix `LogoBadge` `dark` prop value (metabase#27796) (metabase#27822)

Co-authored-by: Anton Kulyk <kuliks.anton@gmail.com>

* Fix the test (metabase#27826) (metabase#27834)

Co-authored-by: Alexander Polyankin <alexander.polyankin@metabase.com>

* Fix failing bigquery test (metabase#27837) (metabase#27840)

Bigquery was checking that we can set a project-id in the db details of
a bigquery database. Normally this comes from the json token:

```
export MB_BIGQUERY_CLOUD_SDK_TEST_SERVICE_ACCOUNT_JSON='{
  "type": "service_account",
  "project_id": "metabase-bigquery-driver", // <- ordinarily source of truth
  "private_key_id": "keykeykeykeykeykeykeykey",
  "private_key": "-----BEGIN PRIVATE KEY----- ...."
```

The db details normally connects to project-id
"metabase-bigquery-driver" and this test swaps out to
"bigquery-public-data" with a schema filter on chicago_taxi_trips.

to prove it works it selects from that dataset:

```
(mt/first-row
  (mt/run-mbql-query taxi_trips
    {:filter [:= [:field (mt/id :taxi_trips :unique_key) nil]
                 "67794e631648a002f88d4b7f3ab0bcb6a9ed306a"]}))
```

The test fails because this row seems to no longer be in the
results. The query isn't failing, it's just returning no rows (and
presumably because the row with this id from 2014 is no longer in the
dataset.)

I ran the same with with a limit 4, see it's working and grab one of
those rows and use the id as in the filter clause.

old: "67794e631648a002f88d4b7f3ab0bcb6a9ed306a" ("2014-01-12T00:45:00Z")
new: "ff0b96c0cada768361b1c9341e11905254644afb" ("2016-09-20T07:15:00Z")

Co-authored-by: dpsutton <dan@dpsutton.com>

* 🍒 Release workflow: handle the auto-adjustment of latest tag on Docker Hub (metabase#27811) (metabase#27848)

* docs - update timezones (metabase#27870) (metabase#27874)

Co-authored-by: Natalie <nat@metabase.com>

* manual backport of "docs - sumif" (metabase#27875)

* 🍒 Triggers docs update upon a release (metabase#27028) (metabase#27872)

* CI: Fix snowplow schema check (metabase#27884) (metabase#27888)

For some reasons, snowplow/igluctl as the service container in GitHub Action
workflow does not work anymore. Therefore, just invoke it directly with
`docker run`.

Co-authored-by: Ariya Hidayat <ariya@metabase.com>

* docs - update can't view or edit (metabase#27909) (metabase#27917)

Co-authored-by: Natalie <nat@metabase.com>

* Simplify dockerfile (metabase#27463) (metabase#27914)

Simplify the main Dockerfile removing custom circleci images

Co-authored-by: Luis Paolini <paoliniluis@gmail.com>

* docs - dash sub update (metabase#27925) (metabase#27933)

Co-authored-by: Jeff Bruemmer <jeff.bruemmer@gmail.com>

* backport subscription fix to 45 (metabase#27939)

* docs - update converttimezone (metabase#27930) (metabase#27949)

Co-authored-by: Natalie <nat@metabase.com>

* update links (metabase#27948) (metabase#27950)

Co-authored-by: Jeff Bruemmer <jeff.bruemmer@gmail.com>

* docs - update sql and error troubleshooting (metabase#27964) (metabase#27978)

Co-authored-by: Natalie <nat@metabase.com>

* db docs (metabase#27999)

* Backport metabase#27849 (metabase#27945)

* docs - fix typo (metabase#28007) (metabase#28011)

Co-authored-by: Natalie <nat@metabase.com>

* Include numThreadsAwaitingCheckoutDefaultUser in conn pool stats (metabase#28015) (metabase#28030)

This includes the stats in

```clojure
prometheus=> (troubleshooting/connection-pool-info)
{:connection-pools {"metabase-postgres-app-db" {:numConnections 4,
                                                :numIdleConnections 4,
                                                :numBusyConnections 0,
                                                :minPoolSize 1,
                                                :maxPoolSize 15,
                                                :numThreadsAwaitingCheckoutDefaultUser 0},
                    "db-52-postgres-clean" {:numConnections 1,
                                            :numIdleConnections 1,
                                            :numBusyConnections 0,
                                            :minPoolSize 1,
                                            :maxPoolSize 15,
                                            :numThreadsAwaitingCheckoutDefaultUser 0}}}
```

And thus ultimately in c3p0 stats:

```
_# HELP c3p0_num_threads_awaiting_checkout_default_user C3P0 Number of threads awaiting checkout
_# TYPE c3p0_num_threads_awaiting_checkout_default_user gauge
c3p0_num_threads_awaiting_checkout_default_user{database="metabase-postgres-app-db",} 0.0
c3p0_num_threads_awaiting_checkout_default_user{database="db-52-postgres-clean",} 0.0
```

Co-authored-by: dpsutton <dan@dpsutton.com>

* update api docs (metabase#28070)

* Fix zoom in drilldown for FKs (metabase#28022) (metabase#28085)

Co-authored-by: Alexander Polyankin <alexander.polyankin@metabase.com>

* Enable and fix broken "edit history metadata" E2E tests (metabase#27889) (metabase#28086)

* Fix test filename

* Fix tests

---------

Co-authored-by: Cal Herries <39073188+calherries@users.noreply.github.com>
Co-authored-by: Anton Kulyk <kuliks.anton@gmail.com>

* db pages (metabase#28104)

* Category filters should always be multi-selectable (metabase#28096) (metabase#28115)

* Category filters should always be multi-selectable

[Fixes metabase#27393]

Co-authored-by: Tim Macdonald <tim@metabase.com>

* Fix ObjectDrill on queries with joined tables (metabase#28076) (metabase#28107)

* fix zoom on joined tables

* specs

* relocate section, fix link (metabase#28122) (metabase#28123)

Co-authored-by: Jeff Bruemmer <jeff.bruemmer@gmail.com>

* Removing / fixing warnings when updating a dashboard filter and when you have incorrect link templates (metabase#28174) (metabase#28213)

Co-authored-by: Nick Fitzpatrick <nick@metabase.com>

* [Docs] Migrate down command (metabase#28219)

* docs - clickhouse partner (metabase#28223) (metabase#28231)

* clickhouse from community to partner driver

* format

Co-authored-by: Jeff Bruemmer <jeff.bruemmer@gmail.com>

* docs - migrate down docker (metabase#28226) (metabase#28235)

Co-authored-by: Jeff Bruemmer <jeff.bruemmer@gmail.com>

* docs - update field filters (metabase#28232) (metabase#28237)

Co-authored-by: Natalie <nat@metabase.com>

* Manual backport of various (blocked) Cypress changes (metabase#28222)

* [CI] Remap and update QA databases ports in Cypress tests (metabase#27886)

* Replace E2E repro for metabase#22822 with the FE unit test (metabase#28041)

* Repro metabase#26571: Do not show x-rays if feature is disabled (metabase#28130)

* Repro metabase#25988: Cannot reference nested question as native subquery (metabase#28135)

* Repro metabase#25715: Blank admin panel page for `null` database details (metabase#28138)

* [E2E] Make sure we can add Mongo using its connection string (metabase#28087)

* Backport "no native drill fallback when embedded" (metabase#28264)

* no native drill fallback when embedded (metabase#28243)

* docs - update embedding comparison (metabase#28276) (metabase#28308)

Co-authored-by: Natalie <nat@metabase.com>

* Fix links (metabase#28339) (metabase#28340)

Co-authored-by: Jeff Bruemmer <jeff.bruemmer@gmail.com>

* docs - update signed embedding parameters (metabase#28317) (metabase#28390)

Co-authored-by: Natalie <nat@metabase.com>

* Backport E2E reproductions (metabase#28398)

* Repro metabase#25156: Handle invalid x-axis scale (metabase#28260)
* Repro metabase#27873: Missing group by column from the joined table (metabase#28262)
* Repro metabase#28218: Cannot reference native question with semicolon (metabase#28265)
* Repro metabase#28193: Cannot use custom column with models (metabase#28330)

[ci skip]

* [CI] Fix syntax in rerun workflows logic (metabase#28400) (metabase#28401)

[ci skip]

* 🍒 Various CI fixes and improvements from `master` (metabase#28399)

* 🍒 Backport more flake fixes (metabase#28421)

* [E2E] Fix `notifications` flake (metabase#28408)

* [E2E] Fix native field filter related flakes (metabase#28410)

* Upgrade `babel-loader` to 9.1.2 (metabase#28430)

Node 18 was breaking `build-static-viz` prior to this commit.
`Error: error:0308010C:digital envelope routines::unsupported`

* [CI] Fix Google related drivers classpath test (metabase#28412) (metabase#28429)

---------

Co-authored-by: metabase-bot[bot] <109303359+metabase-bot[bot]@users.noreply.github.com>
Co-authored-by: Jeff Bruemmer <jeff.bruemmer@gmail.com>
Co-authored-by: Natalie <nat@metabase.com>
Co-authored-by: Luis Paolini <paoliniluis@gmail.com>
Co-authored-by: Nemanja Glumac <31325167+nemanjaglumac@users.noreply.github.com>
Co-authored-by: Anton Kulyk <kuliks.anton@gmail.com>
Co-authored-by: Alexander Polyankin <alexander.polyankin@metabase.com>
Co-authored-by: dpsutton <dan@dpsutton.com>
Co-authored-by: Ariya Hidayat <ariya@metabase.com>
Co-authored-by: Noah Moss <32746338+noahmoss@users.noreply.github.com>
Co-authored-by: Cal Herries <39073188+calherries@users.noreply.github.com>
Co-authored-by: Tim Macdonald <tim@metabase.com>
Co-authored-by: Aleksandr Lesnenko <alxnddr@users.noreply.github.com>
Co-authored-by: Nick Fitzpatrick <nick@metabase.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport Automatically create PR on current release branch on merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pre-existing category filters were not migrated to new ones
5 participants