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

Add Schedule strategy to Admin > Performance #41230

Merged
merged 51 commits into from
Apr 13, 2024
Merged

Add Schedule strategy to Admin > Performance #41230

merged 51 commits into from
Apr 13, 2024

Conversation

rafpaf
Copy link
Contributor

@rafpaf rafpaf commented Apr 10, 2024

Closes #41424

Adds a Schedule strategy to the Admin / Performance page

image

Loom

As discussed with @luizarakaki, rather than modify the legacy SchedulePicker to work with this use case, I made a new version of it - a Schedule component - that uses Mantine and a better (though imperfect) approach to localization. For now, the dropdowns are not vertically aligned in this Schedule picker - something I can try to remedy later if that is important.

Tests for the Schedule component will be added in a follow-up PR.

@rafpaf rafpaf added the no-backport Do not backport this PR to any branch label Apr 10, 2024
@rafpaf rafpaf self-assigned this Apr 10, 2024
@rafpaf rafpaf changed the base branch from master to perf/mqd-seconds April 10, 2024 20:43
Base automatically changed from perf/mqd-seconds to master April 11, 2024 21:35
@rafpaf rafpaf added this to the 0.50 milestone Apr 11, 2024
@rafpaf rafpaf linked an issue Apr 11, 2024 that may be closed by this pull request
@rafpaf rafpaf removed a link to an issue Apr 11, 2024
@rafpaf rafpaf added the .Team/AdminWebapp Admin and Webapp team label Apr 11, 2024
@rafpaf rafpaf requested a review from a team April 12, 2024 19:17
@rafpaf rafpaf marked this pull request as ready for review April 12, 2024 19:26
Copy link

replay-io bot commented Apr 12, 2024

Status Complete ↗︎
Commit 719d009
Results
⚠️ 9 Flaky
2398 Passed

Copy link
Contributor

@sloansparger sloansparger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

top notch work Raffi, really appreciate the thorough tests

frontend/src/metabase/admin/performance/utils.ts Outdated Show resolved Hide resolved
frontend/src/metabase/admin/performance/utils.ts Outdated Show resolved Hide resolved
frontend/src/metabase/admin/performance/utils.ts Outdated Show resolved Hide resolved
frontend/src/metabase/components/Schedule/Schedule.tsx Outdated Show resolved Hide resolved
frontend/src/metabase/components/Schedule/Schedule.tsx Outdated Show resolved Hide resolved
@rafpaf rafpaf merged commit 8006c2c into master Apr 13, 2024
107 checks passed
@rafpaf rafpaf deleted the perf/schedule branch April 13, 2024 03:13
Copy link
Contributor Author

rafpaf commented Apr 13, 2024

Merge activity

crisptrutski pushed a commit that referenced this pull request Apr 15, 2024
Adds a Schedule strategy to the Admin / Performance page

![image](https://github.com/metabase/metabase/assets/130925/d78ff74d-df1c-477a-b157-a0c3f21a861b)

[Loom](https://www.loom.com/share/5623cd5d772e417ba2e58c29ae1b8c14?sid=9844f0db-5bb1-4d35-af9b-206d263f5516)

As discussed with @luizarakaki, rather than modify the legacy `SchedulePicker` to work with this use case, I made a new version of it - a `Schedule` component - that uses Mantine and a better (though imperfect) approach to localization. For now, the dropdowns are not vertically aligned in this Schedule picker - something I can try to remedy later if that is important.

Tests for the Schedule component will be added in a follow-up PR.
@rafpaf rafpaf linked an issue Apr 15, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-backport Do not backport this PR to any branch .Team/AdminWebapp Admin and Webapp team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Schedule strategy to Admin > Performance [Cache] Support Schedule strategy
2 participants