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

[HDS] Prep/cleanup steps for Highlighting the data source #39681

Merged
merged 6 commits into from
Mar 6, 2024

Conversation

nemanjaglumac
Copy link
Member

@nemanjaglumac nemanjaglumac commented Mar 6, 2024

This PR is only a cleanup phase that should support the work on #39542.

The problematic part in the DataSelector was that it was never designed to truly work with models 100%. The naming of many related components suggests this. Everything was revolving around a "saved question". In this PR I renamed methods and the components to reflect the fact there can be multiple different entities that are saved.

Currently, those are saved questions and (saved) models. But pretty soon we will have metrics as well (see #37358).

Since we're also moving from the use of the term "dataset" to "model" in more places in the code, I updated some of this references as well (see DATA_BUCKET for example).

Other than that, no code logic was changed in this PR.
Everything should still work the same, and all tests should pass.

Note

Keep in mind this merges into a feature branch. Not master.

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

replay-io bot commented Mar 6, 2024

Status Complete ↗︎
Commit 97a0c1d
Results
⚠️ 3 Flaky
2342 Passed

@nemanjaglumac nemanjaglumac merged commit 7669cd5 into highlight-data-source Mar 6, 2024
106 checks passed
@nemanjaglumac nemanjaglumac deleted the hds/prep-cleanup branch March 6, 2024 20:50
nemanjaglumac added a commit that referenced this pull request Mar 7, 2024
* 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
nemanjaglumac added a commit that referenced this pull request 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 added a commit that referenced this pull request 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 added a commit that referenced this pull request 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

Co-authored-by: Nemanja Glumac <31325167+nemanjaglumac@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants