elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.73k stars 8.14k forks source link

[Fleet]: Space Field Validation Fails on creating a new policy #192547

Open harshitgupta-qasource opened 1 week ago

harshitgupta-qasource commented 1 week ago

Kibana Build details:

VERSION: 8.16.0 SNAPSHOT
BUILD: 78156
COMMIT: 6ef9f6c640a86180e92945b1e729ab11709cad3b

Host OS: All

Preconditions:

  1. 8.16.0 or above Kibana should be available.
  2. Agent Policy should be created.
  3. Two or more space should be created.

Steps to reproduce:

  1. Log in to the Default Space.
  2. Go to the Agents Tab.
  3. Click Add Agent and create a new policy.
  4. Click on Advanced Settings.
  5. Scroll down to the Spaces section and open the dropdown list.
  6. Enter any value in the Spaces field.
  7. Notice that a warning icon appears.
  8. Save the policy.
  9. Observe that the policy is saved successfully, and the space field validation does not work as expected.

Screen-cast

https://github.com/user-attachments/assets/eb2fe7d4-26df-4756-a92f-1eb24c7ef444

Whats Working Fine Invalid data is not added to the agent policy.

Feature: https://github.com/elastic/ingest-dev/issues/1664

elasticmachine commented 1 week ago

Pinging @elastic/fleet (Team:Fleet)

harshitgupta-qasource commented 1 week ago

@amolnater-qasource Kindly review

amolnater-qasource commented 1 week ago

Secondary Review for this ticket is Done.