Skip to content

[Fleet] Enable agent policy "Host name format" selector by default#154563

Merged
hop-dev merged 2 commits intoelastic:mainfrom
hop-dev:enable-fqdn-mode
Apr 6, 2023
Merged

[Fleet] Enable agent policy "Host name format" selector by default#154563
hop-dev merged 2 commits intoelastic:mainfrom
hop-dev:enable-fqdn-mode

Conversation

@hop-dev
Copy link
Copy Markdown
Contributor

@hop-dev hop-dev commented Apr 6, 2023

Summary

This pull request enables the feature flag which hid the host name format selector in agent policies.

The host name selector can be used in any agent policy, go to the agent policy settings tab then scroll to the bottom.

Feature flag was disabled by default in #152592

Enabling the feature flag by default also means we can remove references to it in the code now. (we keep the flag reference so that nobodies config is invalidated)

Before:
Screenshot 2023-04-06 at 15 34 57

After:
Screenshot 2023-04-06 at 15 31 53

@ghost
Copy link
Copy Markdown

ghost commented Apr 6, 2023

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

@hop-dev hop-dev self-assigned this Apr 6, 2023
@hop-dev hop-dev added release_note:enhancement Team:Fleet Team label for Observability Data Collection Fleet team labels Apr 6, 2023
@hop-dev hop-dev changed the title [Fleet] Enable FQDN mode selector by default + remove feature flag references [Fleet] Enable Host name format selector by default + remove FQDN feature flag references Apr 6, 2023
@@ -558,93 +557,91 @@ export const AgentPolicyAdvancedOptionsContent: React.FunctionComponent<Props> =
/>
</EuiFormRow>
</EuiDescribedFormGroup>
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

best viewed with "hide whitespace" I've just removed the conditional render of the component here

@hop-dev hop-dev marked this pull request as ready for review April 6, 2023 14:38
@hop-dev hop-dev requested a review from a team as a code owner April 6, 2023 14:38
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/fleet (Team:Fleet)

Copy link
Copy Markdown
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.

🚀

@hop-dev hop-dev enabled auto-merge (squash) April 6, 2023 14:41
@hop-dev hop-dev changed the title [Fleet] Enable Host name format selector by default + remove FQDN feature flag references [Fleet] Enable agent policy "Host name format" selector by default Apr 6, 2023
@kibana-ci
Copy link
Copy Markdown

💚 Build Succeeded

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
fleet 942.2KB 942.2KB -31.0B
Unknown metric groups

ESLint disabled line counts

id before after diff
securitySolution 433 436 +3

Total ESLint disabled count

id before after diff
securitySolution 513 516 +3

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @hop-dev

@hop-dev hop-dev merged commit b9d38be into elastic:main Apr 6, 2023
@kibanamachine
Copy link
Copy Markdown
Contributor

💔 All backports failed

Status Branch Result
8.7 Backport failed because of merge conflicts

Manual backport

To create the backport manually run:

node scripts/backport --pr 154563

Questions ?

Please refer to the Backport tool documentation

@hop-dev
Copy link
Copy Markdown
Contributor Author

hop-dev commented Apr 6, 2023

💚 All backports created successfully

Status Branch Result
8.7

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

hop-dev added a commit to hop-dev/kibana that referenced this pull request Apr 6, 2023
…ture flag references (elastic#154563)

## Summary

This pull request enables the feature flag which hid the host name
format selector in agent policies.

The host name selector can be used in any agent policy, go to the agent
policy settings tab then scroll to the bottom.

Feature flag was disabled by default in
elastic#152592

Enabling the feature flag by default also means we can remove references
to it in the code now. (we keep the flag reference so that nobodies
config is invalidated)

**Before:**
<img width="896" alt="Screenshot 2023-04-06 at 15 34 57"
src="https://user-images.githubusercontent.com/3315046/230411132-364a1b21-3007-4f20-af25-5e6208786120.png">

**After:**
<img width="925" alt="Screenshot 2023-04-06 at 15 31 53"
src="https://user-images.githubusercontent.com/3315046/230410428-879dc975-fb27-434e-bc91-d43185361b71.png">

(cherry picked from commit b9d38be)

# Conflicts:
#	x-pack/plugins/fleet/common/experimental_features.ts
hop-dev added a commit that referenced this pull request Apr 6, 2023
…DN feature flag references (#154563) (#154592)

# Backport

This will backport the following commits from `main` to `8.7`:
- [[Fleet] Enable Host name format selector by default + remove FQDN
feature flag references
(#154563)](#154563)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Mark
Hopkin","email":"mark.hopkin@elastic.co"},"sourceCommit":{"committedDate":"2023-04-06T15:31:29Z","message":"[Fleet]
Enable Host name format selector by default + remove FQDN feature flag
references (#154563)\n\n## Summary\r\n\r\nThis pull request enables the
feature flag which hid the host name\r\nformat selector in agent
policies.\r\n\r\nThe host name selector can be used in any agent policy,
go to the agent\r\npolicy settings tab then scroll to the
bottom.\r\n\r\nFeature flag was disabled by default
in\r\nhttps://github.com//pull/152592\r\n\r\nEnabling the
feature flag by default also means we can remove references\r\nto it in
the code now. (we keep the flag reference so that nobodies\r\nconfig is
invalidated)\r\n\r\n**Before:**\r\n<img width=\"896\" alt=\"Screenshot
2023-04-06 at 15 34
57\"\r\nsrc=\"https://user-images.githubusercontent.com/3315046/230411132-364a1b21-3007-4f20-af25-5e6208786120.png\">\r\n\r\n**After:**\r\n<img
width=\"925\" alt=\"Screenshot 2023-04-06 at 15 31
53\"\r\nsrc=\"https://user-images.githubusercontent.com/3315046/230410428-879dc975-fb27-434e-bc91-d43185361b71.png\">","sha":"b9d38be8e28a0855662b84cbcb814484728a2f3e","branchLabelMapping":{"^v8.8.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:enhancement","Team:Fleet","v8.8.0","v8.7.1"],"number":154563,"url":"https://github.com/elastic/kibana/pull/154563","mergeCommit":{"message":"[Fleet]
Enable Host name format selector by default + remove FQDN feature flag
references (#154563)\n\n## Summary\r\n\r\nThis pull request enables the
feature flag which hid the host name\r\nformat selector in agent
policies.\r\n\r\nThe host name selector can be used in any agent policy,
go to the agent\r\npolicy settings tab then scroll to the
bottom.\r\n\r\nFeature flag was disabled by default
in\r\nhttps://github.com//pull/152592\r\n\r\nEnabling the
feature flag by default also means we can remove references\r\nto it in
the code now. (we keep the flag reference so that nobodies\r\nconfig is
invalidated)\r\n\r\n**Before:**\r\n<img width=\"896\" alt=\"Screenshot
2023-04-06 at 15 34
57\"\r\nsrc=\"https://user-images.githubusercontent.com/3315046/230411132-364a1b21-3007-4f20-af25-5e6208786120.png\">\r\n\r\n**After:**\r\n<img
width=\"925\" alt=\"Screenshot 2023-04-06 at 15 31
53\"\r\nsrc=\"https://user-images.githubusercontent.com/3315046/230410428-879dc975-fb27-434e-bc91-d43185361b71.png\">","sha":"b9d38be8e28a0855662b84cbcb814484728a2f3e"}},"sourceBranch":"main","suggestedTargetBranches":["8.7"],"targetPullRequestStates":[{"branch":"main","label":"v8.8.0","labelRegex":"^v8.8.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/154563","number":154563,"mergeCommit":{"message":"[Fleet]
Enable Host name format selector by default + remove FQDN feature flag
references (#154563)\n\n## Summary\r\n\r\nThis pull request enables the
feature flag which hid the host name\r\nformat selector in agent
policies.\r\n\r\nThe host name selector can be used in any agent policy,
go to the agent\r\npolicy settings tab then scroll to the
bottom.\r\n\r\nFeature flag was disabled by default
in\r\nhttps://github.com//pull/152592\r\n\r\nEnabling the
feature flag by default also means we can remove references\r\nto it in
the code now. (we keep the flag reference so that nobodies\r\nconfig is
invalidated)\r\n\r\n**Before:**\r\n<img width=\"896\" alt=\"Screenshot
2023-04-06 at 15 34
57\"\r\nsrc=\"https://user-images.githubusercontent.com/3315046/230411132-364a1b21-3007-4f20-af25-5e6208786120.png\">\r\n\r\n**After:**\r\n<img
width=\"925\" alt=\"Screenshot 2023-04-06 at 15 31
53\"\r\nsrc=\"https://user-images.githubusercontent.com/3315046/230410428-879dc975-fb27-434e-bc91-d43185361b71.png\">","sha":"b9d38be8e28a0855662b84cbcb814484728a2f3e"}},{"branch":"8.7","label":"v8.7.1","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release_note:enhancement Team:Fleet Team label for Observability Data Collection Fleet team v8.7.1 v8.8.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants