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

🤖 backported "Properly highlight models as the data source" #39799

Conversation

metabase-bot[bot]
Copy link
Contributor

@metabase-bot metabase-bot bot commented Mar 7, 2024

Backport of #39792.
Manual conflict resolution.

frontend/src/metabase/query_builder/components/DataSelector/DataSelector.jsx was quite different from the one in master, so I had to carefully apply only the related changes.

Luckily, a related E2E test was backported as well, and that should give us some confidence that the things are working as expected.

@metabase-bot metabase-bot bot added the was-backported apply this to PRs that are themselves backports label Mar 7, 2024
* [HDS] Prep/cleanup steps for Highlighting the data source (#39681)

* Rename `DATA_BUCKET` key to `MODELS`

* Rename misleading method

`isSavedQuestionSelected` is too narrow because we can also have
other saved entities, such as models (and soon metrics) as the selected source.

* Fix type for `selectedTableId`

* Extract `sourceId`

* Rename saved question instances to saved entity

* Rename related components

* Show models correctly in the data source picker (#39686)

* Show models correctly in the data source picker

* Address review comments

* Destructure props

* Add E2E reproduction for #39699

* Prevent accessing potentially stale value

Closes #39699
@nemanjaglumac nemanjaglumac force-pushed the backport-8a4e14cd21d799527722a856b790d4959dc48a5e branch from 08f9a69 to 56d4c48 Compare March 7, 2024 19:20
Copy link

replay-io bot commented Mar 7, 2024

Status Complete ↗︎
Commit 56d4c48
Results
⚠️ 2 Flaky
2300 Passed

@nemanjaglumac nemanjaglumac requested review from ranquild and a team March 7, 2024 19:58
@nemanjaglumac nemanjaglumac merged commit 26d2282 into release-x.49.x Mar 7, 2024
106 checks passed
@nemanjaglumac nemanjaglumac deleted the backport-8a4e14cd21d799527722a856b790d4959dc48a5e branch March 7, 2024 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
was-backported apply this to PRs that are themselves backports
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants