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

Alerting: Add export mute timings feature to the UI. #79395

Merged
merged 5 commits into from Dec 13, 2023

Conversation

soniaAguilarPeiron
Copy link
Member

@soniaAguilarPeiron soniaAguilarPeiron commented Dec 12, 2023

What is this feature?

This PR adds export for all mute timings and for a single mute timing.

Why do we need this feature?

After the new export endpoints for exporting mute timings where added to the provisioning api, we want to provide same functionality to the ui.

Who is this feature for?

All users.

Special notes for your reviewer:

export-mute-timings.mp4

Please check that:

  • It works as expected from a user's perspective.
  • If this is a pre-GA feature, it is behind a feature toggle.
  • The docs are updated, and if this is a notable improvement, it's added to our What's New doc.

@soniaAguilarPeiron soniaAguilarPeiron added this to the 10.3.x milestone Dec 12, 2023
@soniaAguilarPeiron soniaAguilarPeiron self-assigned this Dec 12, 2023
@soniaAguilarPeiron soniaAguilarPeiron requested a review from a team as a code owner December 12, 2023 13:02
@soniaAguilarPeiron soniaAguilarPeiron requested review from gillesdemey, VikaCep and konrad147 and removed request for a team December 12, 2023 13:02
@soniaAguilarPeiron soniaAguilarPeiron marked this pull request as draft December 12, 2023 13:02
@soniaAguilarPeiron soniaAguilarPeiron marked this pull request as ready for review December 12, 2023 16:49
Copy link
Contributor

@VikaCep VikaCep left a comment

Choose a reason for hiding this comment

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

Great work!

exportMuteTimings: build.query<string, { format: ExportFormats }>({
query: ({ format }) => ({
url: `/api/v1/provisioning/mute-timings/export/`,
params: { format: format },
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
params: { format: format },
params: { format },

exportMuteTiming: build.query<string, { format: ExportFormats; muteTiming: string }>({
query: ({ format, muteTiming }) => ({
url: `/api/v1/provisioning/mute-timings/${muteTiming}/export/`,
params: { format: format },
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
params: { format: format },
params: { format },

@soniaAguilarPeiron soniaAguilarPeiron enabled auto-merge (squash) December 13, 2023 07:45
@soniaAguilarPeiron soniaAguilarPeiron merged commit 106903b into main Dec 13, 2023
15 checks passed
@soniaAguilarPeiron soniaAguilarPeiron deleted the alerting/export-mutetimings branch December 13, 2023 07:53
@summerwollin summerwollin modified the milestones: 10.3.x, 10.3.0 Jan 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants