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

[UII] Convert deployment mode selector to radio group #208859

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

jen-huang
Copy link
Contributor

@jen-huang jen-huang commented Jan 29, 2025

Summary

Closes https://github.com/elastic/ingest-dev/issues/4507. This PR converts the drop down selector in policy editor for Agentless/Agent-based to a radio group.

Closes #208861. This PR also fixes an issue where Agent-based option was still available even when integration only specifies agentless deployment mode.

The selector used by the custom editor for CSPM integration was already converted to radios in #208645. This PR handles the conversion for the generic editor used by other agentless integrations such as elastic_connectors. It also makes minor formatting changes to the CSPM one to bring the two visually in line:

Generic:
image

CSPM:
image

Checklist

Check the PR satisfies following conditions.

Reviewers should verify this PR satisfies this list as well.

@jen-huang jen-huang added release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) labels Jan 29, 2025
@jen-huang jen-huang self-assigned this Jan 29, 2025
@jen-huang jen-huang requested review from a team as code owners January 29, 2025 23:27
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #105 / serverless search UI index details page - search solution developer search index details page API key details should show api key

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
cloudSecurityPosture 523.7KB 523.5KB -189.0B
fleet 1.7MB 1.7MB -16.0B
total -205.0B

History

cc @jen-huang

defaultMessage="Agentless"
/>{' '}
<EuiBetaBadge
label="Beta"
Copy link
Contributor

Choose a reason for hiding this comment

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

a bit unrelated, I'm wondering when the Beta badge is planned to be removed?

Copy link
Contributor

@juliaElastic juliaElastic left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@seanrathier seanrathier left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thanks for aligning the UIs

@@ -86,6 +86,11 @@ export function useSetupTechnology({
const orginalAgentPolicyRef = useRef<NewAgentPolicy>({ ...newAgentPolicy });
const [currentAgentPolicy, setCurrentAgentPolicy] = useState(newAgentPolicy);

const allowedSetupTechnologies = useMemo(() => {
Copy link
Contributor

Choose a reason for hiding this comment

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

I like this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[UII] Agent-based deployment mode doesn't get disabled if it is not available
4 participants