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

[ML] Edit transform retention policy fails with default field value #122913

Closed
pheyos opened this issue Jan 13, 2022 · 1 comment · Fixed by #123450
Closed

[ML] Edit transform retention policy fails with default field value #122913

pheyos opened this issue Jan 13, 2022 · 1 comment · Fixed by #123450
Assignees
Labels
bug Fixes for quality problems that affect the customer experience Feature:Transforms ML transforms :ml v8.1.0

Comments

@pheyos
Copy link
Member

pheyos commented Jan 13, 2022

Found in version

  • 7.16.2
  • Could also reproduce in main / 8.1

Browser

  • Chrome

Steps to reproduce

  • Create a transform without retention policy
  • Edit the transform and add a retention policy while not changing the pre-filled / default value of the Field dropdown

Expected result

  • The transform update can be saved correctly

Actual result

  • An error occurs during transform update as the field is not sent in the request:
    Bad Request: [request body.retention_policy.time.field]: expected value of type [string] but got [undefined]
    
    image

Additional information

  • Workaround: The user has to select a different value from the dropdoiwn first and the re-select the initial value to make it work.
  • If there's no other time field available, it seems there's no workaround for this issue on the UI side and the user would have to use the ES API.
  • The wizard component for retention policy is not affected and works fine with the initial value
@pheyos pheyos added bug Fixes for quality problems that affect the customer experience :ml Feature:Transforms ML transforms labels Jan 13, 2022
@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui (:ml)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Transforms ML transforms :ml v8.1.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants