8000 [BUGFIX] Fix BE/FE misalignement on threshold datamodel #1389 by AntoineThebaud · Pull Request #1404 · perses/perses · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[BUGFIX] Fix BE/FE misalignement on threshold datamodel #1389 #1404

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

Merged
merged 1 commit into from
Aug 30, 2023

Conversation

AntoineThebaud
Copy link
Contributor
@AntoineThebaud AntoineThebaud commented Aug 30, 2023

Description

Changed casing for thresholds mode to kebab-case on frontend side, to align with the backend datamodel. (This was basically missed in #1262).

This fixes #1389.

Checklist

  • Pull request has a descriptive title and context useful to a reviewer.
  • Pull request title follows the [<catalog_entry>] <commit message> naming convention using one of the following catalog_entry values: FEATURE, ENHANCEMENT, BUGFIX, BREAKINGCHANGE, IGNORE.
  • All commits have DCO signoffs.

Signed-off-by: AntoineThebaud <antoine.thebaud@yahoo.fr>
@AntoineThebaud AntoineThebaud force-pushed the antoinethebaud/fix-1389 branch from 6689744 to d7ea42e Compare August 30, 2023 13:57
async toggleThresholdModes(mode: 'Absolute' | 'Percent') {
await this.container.getByRole('button', { name: mode === 'Percent' ? 'percent' : 'absolute' }).click();
async toggleThresholdModes(mode: 'absolute' | 'percent') {
await this.container.getByRole('button', { name: mode === 'percent' ? 'Percent' : 'Absolute' }).click();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

the display remains with capitalized string, hence this selector.

Copy link
Member
@Gladorme Gladorme left a comment

Choose a reason for hiding this comment

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

LGTM

@AntoineThebaud AntoineThebaud merged commit 6b3fe7c into main Aug 30, 2023
@AntoineThebaud AntoineThebaud deleted the antoinethebaud/fix-1389 branch August 30, 2023 14:22
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.

Can't save dashboard when setting up a threshold in percentage
2 participants
0