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

Web: Migrate metrics_view to explore resources #5724

Conversation

AdityaHegde
Copy link
Collaborator

@AdityaHegde AdityaHegde commented Sep 18, 2024

Builds on top of #5722

Adds a basic yaml editing experience for explore.

@AdityaHegde AdityaHegde changed the base branch from main to begelundmuller/explore-resources-breaking September 18, 2024 13:51
@AdityaHegde AdityaHegde force-pushed the adityahegde/explore-metrics-ui-split branch from 9b21984 to 27499d2 Compare September 18, 2024 14:54
@AdityaHegde AdityaHegde force-pushed the adityahegde/explore-metrics-ui-split branch from c15acf2 to 5d80175 Compare September 26, 2024 10:58
@AdityaHegde AdityaHegde force-pushed the adityahegde/explore-metrics-ui-split branch from 03dc315 to c83bc01 Compare September 26, 2024 11:39
@ericpgreen2 ericpgreen2 changed the title feat: Refactor StateManagers to use explore Web: Migrate metrics_view to explore resources Sep 26, 2024
@AdityaHegde AdityaHegde marked this pull request as ready for review September 27, 2024 11:41
@AdityaHegde AdityaHegde force-pushed the adityahegde/explore-metrics-ui-split branch from 6f78f95 to c80db41 Compare September 27, 2024 11:41
@github-actions github-actions bot temporarily deployed to production September 30, 2024 14:11 Inactive
@AdityaHegde AdityaHegde merged commit de4dcb8 into begelundmuller/explore-resources-breaking Oct 1, 2024
6 checks passed
@AdityaHegde AdityaHegde deleted the adityahegde/explore-metrics-ui-split branch October 1, 2024 09:55
AdityaHegde added a commit that referenced this pull request Oct 1, 2024
* Migrate `metrics_view` to `explore` resources (breaking)

* Self review

* Roll back docs changes

* Web: Migrate `metrics_view` to `explore` resources (#5724)

* Refactor StateManagers to use explore

* Replace useMetricsView - Pass 1

* Use explore in state defaults

* Add basic explore editor

* Replace metricViewName with exploreName where applicable in rill dev

* Update bookmarks

* Fix navigation on cloud

* Fix alerts and reports

* Migrate Public URLs

* Redirect old Explore URLs to `.../explore/[name]`

* Migrate embeds

* Fix syncDimensions

* Fix eslint

* Fix `svelte-check`

* `metricViewName` -> `metricsViewName`

* `useMetricsView` -> `useMetricsViewValidSpec`

* `useDashboard` -> `useMetricsView`

* `useDashboardStore` -> `useExploreStore`

* `useMetaMeasure` -> `useMetricsViewSpecMeasure`

* Add two `+page.ts` files to `tsc` whitelist

* Fix "Function called outside component initialization"

* Add Metrics View icon

* `MetricsExplorerIcon` -> `ExploreIcon`

* Fix unit tests - Pass 1

* Fix unit tests - Pass 2

* Fix unit tests - Pass 3

* Fix tsc

* Revise new files from "Add" button

* Better organization of `features/explores`, `features/metrics-views`

* Refactor `new-files.ts` to account for files bootstrapped from another resource

* Add "Create Explore dashboard" button to Metrics Workspace

* Nits

* "Generate dashboard" -> "Generate metrics"

* "DashboardMenuItems" -> "MetricsViewMenuItems"

* `useValidExplore` -> `useExploreValidSpec`

* `useValidDashboards` -> `useValidExplores`

* Add YAML syntax highlighting to `ExploreEditor`

* Partially fix Preview mode's Explore CTAs

* Explore E2E pass 1 - Fix model and explore editing

* Explore E2E pass 2 - Fix metrics editing in tests

* Explore E2E pass 3 - Fix metrics editor experience

* Fix eslint

* Explore E2E pass 3 - Fix incorrect test migration

* Avoid using useMetricsView

* Fix resource->resource navigation buttons

* Use the right icons

* Update e2e tests

* Fix missing icon

* Fix navigation through top nav bar

* Restore migration for billing table

---------

Co-authored-by: Eric P Green <[email protected]>

---------

Co-authored-by: Aditya Hegde <[email protected]>
Co-authored-by: Eric P Green <[email protected]>
k-anshul pushed a commit that referenced this pull request Oct 15, 2024
* Migrate `metrics_view` to `explore` resources (breaking)

* Self review

* Roll back docs changes

* Web: Migrate `metrics_view` to `explore` resources (#5724)

* Refactor StateManagers to use explore

* Replace useMetricsView - Pass 1

* Use explore in state defaults

* Add basic explore editor

* Replace metricViewName with exploreName where applicable in rill dev

* Update bookmarks

* Fix navigation on cloud

* Fix alerts and reports

* Migrate Public URLs

* Redirect old Explore URLs to `.../explore/[name]`

* Migrate embeds

* Fix syncDimensions

* Fix eslint

* Fix `svelte-check`

* `metricViewName` -> `metricsViewName`

* `useMetricsView` -> `useMetricsViewValidSpec`

* `useDashboard` -> `useMetricsView`

* `useDashboardStore` -> `useExploreStore`

* `useMetaMeasure` -> `useMetricsViewSpecMeasure`

* Add two `+page.ts` files to `tsc` whitelist

* Fix "Function called outside component initialization"

* Add Metrics View icon

* `MetricsExplorerIcon` -> `ExploreIcon`

* Fix unit tests - Pass 1

* Fix unit tests - Pass 2

* Fix unit tests - Pass 3

* Fix tsc

* Revise new files from "Add" button

* Better organization of `features/explores`, `features/metrics-views`

* Refactor `new-files.ts` to account for files bootstrapped from another resource

* Add "Create Explore dashboard" button to Metrics Workspace

* Nits

* "Generate dashboard" -> "Generate metrics"

* "DashboardMenuItems" -> "MetricsViewMenuItems"

* `useValidExplore` -> `useExploreValidSpec`

* `useValidDashboards` -> `useValidExplores`

* Add YAML syntax highlighting to `ExploreEditor`

* Partially fix Preview mode's Explore CTAs

* Explore E2E pass 1 - Fix model and explore editing

* Explore E2E pass 2 - Fix metrics editing in tests

* Explore E2E pass 3 - Fix metrics editor experience

* Fix eslint

* Explore E2E pass 3 - Fix incorrect test migration

* Avoid using useMetricsView

* Fix resource->resource navigation buttons

* Use the right icons

* Update e2e tests

* Fix missing icon

* Fix navigation through top nav bar

* Restore migration for billing table

---------

Co-authored-by: Eric P Green <[email protected]>

---------

Co-authored-by: Aditya Hegde <[email protected]>
Co-authored-by: Eric P Green <[email protected]>
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