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

Ext PRs test 1: inside .github/ #2

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

peppercoffee
Copy link

Important

If you are merging into master, please add either a backport or a no-backport label to this PR. You will not be able to merge until you do this step. Refer to the section Do I need to backport this PR? in the Metabase Branching Strategy document for more details.

Warning

If that is your first contribution to Metabase, please sign the Contributor License Agreement (unless it's a tiny documentation change). Also, if you're attempting to fix a translation issue, please submit your changes to our POEditor project instead of opening a PR.

Closes https://github.com/metabase/metabase/issues/[issue_number]

Description

Describe the overall approach and the problem being solved.

How to verify

Describe the steps to verify that the changes are working as expected.

  1. New question -> Sample Dataset -> ...
  2. ...

Demo

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

Checklist

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

nemanjaglumac pushed a commit that referenced this pull request Nov 13, 2023
…ions to dashboards in public collections (metabase#35135)

* Prepare to consolidate variables

* Hide personal collections in question picker (metabase#35136)

* Only shows public collections when adding questions to a dashboard in
public collection

* Fix dashboard crashing when updating

* Address review

* Fix type error

* Fix conflicts between FE's generated `is_personal` and BE's

* Hide public collections in dashboard picker (metabase#35137)

* Fix typo

* Hides public collections in DashboardPicker

When selecting a dashboard for a question in personal collection

* Fix not calling `useCollectionQuery` unnecessarily

Eventhough in this case it won't make any difference, because
`useCollectionQuery` is cached, we still shouldn't do that.

* Handle recently viewed dashboard

* Refactor default import and fix respective tests

* Refactor moving files closer to their usage

* Hide create a new dashboard option

When the question is in a personal collection and is opening public
collection in the dashboard picker. This only happens when users are
opening the root collection as other public collections won't be
visible.

* Hide items in ItemPicker

When the question is in personal collection and users are opening a
public collection. This only happens when users are opening the root
collection because other public collections are not visible.

* Make the boolean more readable

* Remove unused export

* Fix failed unit tests

* Avoid circular dependency

* Simplify dashboard collection type

* Simplify selectors

* Address review: improves hook name

* Review: Avoid using `ComponentProps`

* Review: Avoid using `useEffect` to call callback

* Fix dashboard picker for private questions not searching

* Review: convert a hook without hook usage to function

* Negate the boolean to positive name to make it easier to read

* Remove unrelated import and matches card to dashboard API types

* Handle moving dashboards to a different collection type (metabase#35138)

* Fix typo

* Hides public collections in DashboardPicker

When selecting a dashboard for a question in personal collection

* Fix not calling `useCollectionQuery` unnecessarily

Eventhough in this case it won't make any difference, because
`useCollectionQuery` is cached, we still shouldn't do that.

* Handle recently viewed dashboard

* Refactor default import and fix respective tests

* Refactor moving files closer to their usage

* Hide create a new dashboard option

When the question is in a personal collection and is opening public
collection in the dashboard picker. This only happens when users are
opening the root collection as other public collections won't be
visible.

* Hide items in ItemPicker

When the question is in personal collection and users are opening a
public collection. This only happens when users are opening the root
collection because other public collections are not visible.

* Make the boolean more readable

* Remove unused export

* Fix failed unit tests

* Avoid circular dependency

* Simplify dashboard collection type

* Simplify selectors

* Address review: improves hook name

* Review: Avoid using `ComponentProps`

* Review: Avoid using `useEffect` to call callback

* Fix dashboard picker for private questions not searching

* Review: convert a hook without hook usage to function

* Negate the boolean to positive name to make it easier to read

* Remove unrelated import and matches card to dashboard API types

* Handle moving dashboards to a different collection type

Move between personal/public collections

* Add dashboard picker tests (metabase#35141)

* Fix removing FE key since BE key is hydrated

* Add some basic tests

* Add more test cases

* Add test #1, and #2

* Modify setup argument to prepare for new tests

* Completed the unit tests

* Removed comments used during development

* Revert test util changes because I don't need it

* Make asserting breadcrumbs easier to read

* remove outdated comment

* Make test code cleaner

* add missing unit tests

* Prepare to add unit tests

* Fix conflict from master

* Add question picker tests (metabase#35142)

* Fix removing FE key since BE key is hydrated

* Add some basic tests

* Add more test cases

* Add test #1, and #2

* Modify setup argument to prepare for new tests

* Completed the unit tests

* Removed comments used during development

* Revert test util changes because I don't need it

* Make asserting breadcrumbs easier to read

* remove outdated comment

* Make test code cleaner

* add missing unit tests

* Prepare to add unit tests

* Fix conflict from master

* Add a unit test file

* Removes PropType error

* Added the rest of the test

* Fix type error from upstream change

* Add E2E tests (metabase#35171)

* Fix removing FE key since BE key is hydrated

* Add some basic tests

* Add more test cases

* Add test #1, and #2

* Modify setup argument to prepare for new tests

* Completed the unit tests

* Removed comments used during development

* Revert test util changes because I don't need it

* Make asserting breadcrumbs easier to read

* remove outdated comment

* Make test code cleaner

* add missing unit tests

* Prepare to add unit tests

* Fix conflict from master

* Add a unit test file

* Removes PropType error

* Added the rest of the test

* Fix type error from upstream change

* Add E2E test for question picker

* Add E2E test for dashboard picker for new questions

* Add E2E test for dashboard picker for existing questions

* Revert util to fix failed tests

* Remove commented code during development

* Fix E2E without modifying a shared util

* Make E2E tests less prone to flakiness
@nemanjaglumac nemanjaglumac force-pushed the master branch 3 times, most recently from 60614f9 to 54d7a3b Compare May 16, 2024 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants