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] Saved object syncing can throw an error with datafeed ID update #191196

Open
jgowdyelastic opened this issue Aug 23, 2024 · 1 comment
Open
Assignees
Labels
bug Fixes for quality problems that affect the customer experience :ml

Comments

@jgowdyelastic
Copy link
Member

When syncing or initialising AD saved objects, if a job which lives in a different space is missing the datafeed ID but the datafeed exists, syncing will throw an error.

To reproduce:

  • Create a new space (space2)
  • PUT a job using the es api
  • In space2, Run sync in the UI so that the saved object for this job is created, but without a datafeed ID
  • PUT the datafeed using the es api
  • In the default space, open the sync flyout and see that it wants to fix this new job to add the datafeed ID.
  • Running sync throws an error which is shown in a toast.

This also affects the hourly auto sync task which only runs on the default space. Meaning it's not possible to update the datafeed ID for jobs that live exclusively in a non default space.

This is not a non-trivial fix as the saved objects client does not allow editing of SOs from other spaces. The is an old feature request to allow this

The work around is to run sync in the space which the jobs exist.

The datafeed ID updating code should catch the error and not cause the endpoint to return with a 500 error code.

@jgowdyelastic jgowdyelastic added bug Fixes for quality problems that affect the customer experience :ml v8.16.0 labels Aug 23, 2024
@jgowdyelastic jgowdyelastic self-assigned this Aug 23, 2024
@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 :ml
Projects
None yet
Development

No branches or pull requests

3 participants